Class: TencentCloud::Irp::V20220324::DocBehavior
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Irp::V20220324::DocBehavior
- Defined in:
- lib/v20220324/models.rb
Overview
行为数据
Instance Attribute Summary collapse
- #AppId ⇒ Object
- #AppVersion ⇒ Object
- #BehaviorTimestamp ⇒ Object
- #BehaviorType ⇒ Object
- #BehaviorValue ⇒ Object
- #City ⇒ Object
- #Country ⇒ Object
- #DeviceModel ⇒ Object
- #District ⇒ Object
- #Extension ⇒ Object
- #IP ⇒ Object
- #ItemId ⇒ Object
- #ItemType ⇒ Object
- #Network ⇒ Object
- #OsVersion ⇒ Object
- #Platform ⇒ Object
- #Province ⇒ Object
- #RecTraceId ⇒ Object
- #ReferrerItemId ⇒ Object
- #SceneId ⇒ Object
- #Source ⇒ Object
- #UserIdList ⇒ Object
- #VideoPlayDuration ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(itemid = nil, behaviortype = nil, behaviorvalue = nil, behaviortimestamp = nil, sceneid = nil, useridlist = nil, rectraceid = nil, source = nil, itemtype = nil, appid = nil, videoplayduration = nil, referreritemid = nil, country = nil, province = nil, city = nil, district = nil, ip = nil, network = nil, platform = nil, appversion = nil, osversion = nil, devicemodel = nil, extension = nil) ⇒ DocBehavior
constructor
A new instance of DocBehavior.
Constructor Details
#initialize(itemid = nil, behaviortype = nil, behaviorvalue = nil, behaviortimestamp = nil, sceneid = nil, useridlist = nil, rectraceid = nil, source = nil, itemtype = nil, appid = nil, videoplayduration = nil, referreritemid = nil, country = nil, province = nil, city = nil, district = nil, ip = nil, network = nil, platform = nil, appversion = nil, osversion = nil, devicemodel = nil, extension = nil) ⇒ DocBehavior
Returns a new instance of DocBehavior.
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
# File 'lib/v20220324/models.rb', line 128 def initialize(itemid=nil, behaviortype=nil, behaviorvalue=nil, behaviortimestamp=nil, sceneid=nil, useridlist=nil, rectraceid=nil, source=nil, itemtype=nil, appid=nil, videoplayduration=nil, referreritemid=nil, country=nil, province=nil, city=nil, district=nil, ip=nil, network=nil, platform=nil, appversion=nil, osversion=nil, devicemodel=nil, extension=nil) @ItemId = itemid @BehaviorType = behaviortype @BehaviorValue = behaviorvalue @BehaviorTimestamp = behaviortimestamp @SceneId = sceneid @UserIdList = useridlist @RecTraceId = rectraceid @Source = source @ItemType = itemtype @AppId = appid @VideoPlayDuration = videoplayduration @ReferrerItemId = referreritemid @Country = country @Province = province @City = city @District = district @IP = ip @Network = network @Platform = platform @AppVersion = appversion @OsVersion = osversion @DeviceModel = devicemodel @Extension = extension end |
Instance Attribute Details
#AppId ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def AppId @AppId end |
#AppVersion ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def AppVersion @AppVersion end |
#BehaviorTimestamp ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def BehaviorTimestamp @BehaviorTimestamp end |
#BehaviorType ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def BehaviorType @BehaviorType end |
#BehaviorValue ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def BehaviorValue @BehaviorValue end |
#City ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def City @City end |
#Country ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def Country @Country end |
#DeviceModel ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def DeviceModel @DeviceModel end |
#District ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def District @District end |
#Extension ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def Extension @Extension end |
#IP ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def IP @IP end |
#ItemId ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def ItemId @ItemId end |
#ItemType ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def ItemType @ItemType end |
#Network ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def Network @Network end |
#OsVersion ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def OsVersion @OsVersion end |
#Platform ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def Platform @Platform end |
#Province ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def Province @Province end |
#RecTraceId ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def RecTraceId @RecTraceId end |
#ReferrerItemId ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def ReferrerItemId @ReferrerItemId end |
#SceneId ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def SceneId @SceneId end |
#Source ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def Source @Source end |
#UserIdList ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def UserIdList @UserIdList end |
#VideoPlayDuration ⇒ Object
Parameters:
-
ItemId:
—
内容唯一ID,如 2824324234
-
BehaviorType:
—
行为类型
-
BehaviorValue:
—
行为值
-
BehaviorTimestamp:
—
行为时间戳: 秒级时间戳(默认为当前时间),不能延迟太久,尽量实时上报,否则会影响推荐结果的准确性。
-
SceneId:
—
场景id,在控制台创建场景后获取。
-
UserIdList:
—
用户id列表
-
RecTraceId:
—
会话id,使用获取推荐结果中返回的RecTraceId填入。
注意:如果和在线推荐请求中的traceId不同,会影响行为特征归因,影响推荐算法效果 -
Source:
—
算法来源:用来区分行为来源于哪个算法。值为**business,tencent,other** 三者之一
● business 表示业务自己的算法对照组
● tencent 为腾讯算法
● other 为其他算法 -
ItemType:
—
物料类型
-
AppId:
—
微信开放平台上查看appId
-
VideoPlayDuration:
—
回传video_over事件的时候,回传的用户播放视频的总时长(真正播放的,拖动不算,单位为秒)
-
ReferrerItemId:
—
来源物料内容:用来标识在指定内容页面产生的行为,如需要统计用户在A内容详情页里,对推荐内容B点击等行为,则ReferrerItemId代表内容A,ItemId代表内容B
-
Country:
—
国家,统一用简写,比如中国则填写CN
-
Province:
—
省
-
City:
—
城市
-
District:
—
区县
-
IP:
—
客户端ip
-
Network:
—
客户端网络类型
-
Platform:
—
客户端平台,ios/android/h5
-
AppVersion:
—
客户端app版本
-
OsVersion:
—
操作系统版本
-
DeviceModel:
—
机型
-
Extension:
—
json字符串,用于行为数据的扩展
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def VideoPlayDuration @VideoPlayDuration end |
Instance Method Details
#deserialize(params) ⇒ Object
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
# File 'lib/v20220324/models.rb', line 154 def deserialize(params) @ItemId = params['ItemId'] @BehaviorType = params['BehaviorType'] @BehaviorValue = params['BehaviorValue'] @BehaviorTimestamp = params['BehaviorTimestamp'] @SceneId = params['SceneId'] unless params['UserIdList'].nil? @UserIdList = [] params['UserIdList'].each do |i| useridinfo_tmp = UserIdInfo.new useridinfo_tmp.deserialize(i) @UserIdList << useridinfo_tmp end end @RecTraceId = params['RecTraceId'] @Source = params['Source'] @ItemType = params['ItemType'] @AppId = params['AppId'] @VideoPlayDuration = params['VideoPlayDuration'] @ReferrerItemId = params['ReferrerItemId'] @Country = params['Country'] @Province = params['Province'] @City = params['City'] @District = params['District'] @IP = params['IP'] @Network = params['Network'] @Platform = params['Platform'] @AppVersion = params['AppVersion'] @OsVersion = params['OsVersion'] @DeviceModel = params['DeviceModel'] @Extension = params['Extension'] end |