public class DocBehavior extends AbstractModel
header, skipSign
Constructor and Description |
---|
DocBehavior() |
DocBehavior(DocBehavior source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getAppId()
Get 微信开放平台上查看appId
|
String |
getAppVersion()
Get 客户端app版本
|
Long |
getBehaviorTimestamp()
Get 行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
|
Long |
getBehaviorType()
Get 行为类型
|
String |
getBehaviorValue()
Get 行为值
|
String |
getCity()
Get 城市
|
String |
getCountry()
Get 国家,统一用简写,比如中国则填写CN
|
String |
getDeviceModel()
Get 机型
|
String |
getDistrict()
Get 区县
|
String |
getExtension()
Get json字符串,用于行为数据的扩展
|
String |
getIP()
Get 客户端ip
|
String |
getItemId()
Get 内容唯一ID,如 2824324234
|
Long |
getItemType()
Get 物料类型
|
String |
getNetwork()
Get 客户端网络类型
|
String |
getOsVersion()
Get 操作系统版本
|
String |
getPlatform()
Get 客户端平台,ios/android/h5
|
String |
getProvince()
Get 省
|
String |
getRecTraceId()
Get 会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 |
String |
getReferrerItemId()
Get 来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
|
String |
getSceneId()
Get 场景id,在控制台创建场景后获取。
|
String |
getSource()
Get 算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组 ● tencent 为腾讯算法 ● other 为其他算法 |
UserIdInfo[] |
getUserIdList()
Get 用户id列表
|
Long |
getVideoPlayDuration()
Get 回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
|
void |
setAppId(String AppId)
Set 微信开放平台上查看appId
|
void |
setAppVersion(String AppVersion)
Set 客户端app版本
|
void |
setBehaviorTimestamp(Long BehaviorTimestamp)
Set 行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
|
void |
setBehaviorType(Long BehaviorType)
Set 行为类型
|
void |
setBehaviorValue(String BehaviorValue)
Set 行为值
|
void |
setCity(String City)
Set 城市
|
void |
setCountry(String Country)
Set 国家,统一用简写,比如中国则填写CN
|
void |
setDeviceModel(String DeviceModel)
Set 机型
|
void |
setDistrict(String District)
Set 区县
|
void |
setExtension(String Extension)
Set json字符串,用于行为数据的扩展
|
void |
setIP(String IP)
Set 客户端ip
|
void |
setItemId(String ItemId)
Set 内容唯一ID,如 2824324234
|
void |
setItemType(Long ItemType)
Set 物料类型
|
void |
setNetwork(String Network)
Set 客户端网络类型
|
void |
setOsVersion(String OsVersion)
Set 操作系统版本
|
void |
setPlatform(String Platform)
Set 客户端平台,ios/android/h5
|
void |
setProvince(String Province)
Set 省
|
void |
setRecTraceId(String RecTraceId)
Set 会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 |
void |
setReferrerItemId(String ReferrerItemId)
Set 来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
|
void |
setSceneId(String SceneId)
Set 场景id,在控制台创建场景后获取。
|
void |
setSource(String Source)
Set 算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组 ● tencent 为腾讯算法 ● other 为其他算法 |
void |
setUserIdList(UserIdInfo[] UserIdList)
Set 用户id列表
|
void |
setVideoPlayDuration(Long VideoPlayDuration)
Set 回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public DocBehavior()
public DocBehavior(DocBehavior source)
public String getItemId()
public void setItemId(String ItemId)
ItemId
- 内容唯一ID,如 2824324234public Long getBehaviorType()
public void setBehaviorType(Long BehaviorType)
BehaviorType
- 行为类型public String getBehaviorValue()
public void setBehaviorValue(String BehaviorValue)
BehaviorValue
- 行为值public Long getBehaviorTimestamp()
public void setBehaviorTimestamp(Long BehaviorTimestamp)
BehaviorTimestamp
- 行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。public String getSceneId()
public void setSceneId(String SceneId)
SceneId
- 场景id,在控制台创建场景后获取。public UserIdInfo[] getUserIdList()
public void setUserIdList(UserIdInfo[] UserIdList)
UserIdList
- 用户id列表public String getRecTraceId()
public void setRecTraceId(String RecTraceId)
RecTraceId
- 会话id,使用获取推荐结果中返回的RecTraceId填入。public String getSource()
public void setSource(String Source)
Source
- 算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一public Long getItemType()
public void setItemType(Long ItemType)
ItemType
- 物料类型public String getAppId()
public void setAppId(String AppId)
AppId
- 微信开放平台上查看appIdpublic Long getVideoPlayDuration()
public void setVideoPlayDuration(Long VideoPlayDuration)
VideoPlayDuration
- 回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)public String getReferrerItemId()
public void setReferrerItemId(String ReferrerItemId)
ReferrerItemId
- 来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容Bpublic String getCountry()
public void setCountry(String Country)
Country
- 国家,统一用简写,比如中国则填写CNpublic String getProvince()
public void setProvince(String Province)
Province
- 省public String getCity()
public void setCity(String City)
City
- 城市public String getDistrict()
public void setDistrict(String District)
District
- 区县public String getIP()
public void setIP(String IP)
IP
- 客户端ippublic String getNetwork()
public void setNetwork(String Network)
Network
- 客户端网络类型public String getPlatform()
public void setPlatform(String Platform)
Platform
- 客户端平台,ios/android/h5public String getAppVersion()
public void setAppVersion(String AppVersion)
AppVersion
- 客户端app版本public String getOsVersion()
public void setOsVersion(String OsVersion)
OsVersion
- 操作系统版本public String getDeviceModel()
public void setDeviceModel(String DeviceModel)
DeviceModel
- 机型public String getExtension()
public void setExtension(String Extension)
Extension
- json字符串,用于行为数据的扩展Copyright © 2024. All rights reserved.