跳转至

资产·对日志和元数据进行评分

资产日志和分数日志需要每个日志项相关的ID名称以进行传输。现在,您可以简单地从实时日志中发送ID。如果在发送实时日志时跳过名称,请编写以下类别以额外输入名称。

类别

  • Fluentd 类型(基于日志定义)
    服务器(负载均衡到两个服务器) analytics-hivelog-03.withhive.com
    analytics-hivelog-04.withhive.com
    标签命名规则 ha2union.game.[游戏的简短名称].common_meta 例如,ha2union.game.samplegame.common_meta
    字段category的值 hive_common_meta 例如,{"category":"hive_common_meta","game":"samplegame"}
    详细传输方法
  • Http 类型(基于日志定义)
    服务器 https://analytics-log.withhive.com
    字段category的值 hive_common_meta 例如,{"category":"hive_common_meta","game":"samplegame"}
    详细传输方法
  • Scribe 类型
    公共服务器 common_meta_log
    测试服务器 test_common_meta_log

日志规范

字段名称 描述 类型 示例 必需
dateTime 定义时间元数据或发送时刻元数据
格式:yyyy-mm-dd hh:MM:ss
字符串 2012-01-19 16:24:00
game 游戏的简短名称 字符串 samplegame
servicemetrics 相关日志类别的简短名称
例如:score2, asset_var
字符串 asset_var
type 与score2和asset_var相关的ID类型,例如,在**action_id**和**action_name**成对的情况下,**action**是类型。 字符串 action
id 与score2和asset_var相关的ID值,例如,在**action_id=1001**和**action_name=Test**成对的情况下,**1001**是值。 整数 1001
name 与score2和asset_var相关的ID名称
例如,在**action_id=1**和**action_name=Test**成对的情况下,**Test**是名称。
字符串 Test

JSON 示例

{"category":"hive_common_meta","name":"landing action 2","game":"misample","dateTime":"2018-10-30 15:49:11","servicemetrics":"score2","type":"mode","id":6}
{"category":"hive_common_meta","name":"lv032","game":"misample","dateTime":"2018-10-30 15:49:11","servicemetrics":"score2","type":"submode","id":9000303}
{"category":"hive_common_meta","name":"store2","game":"misample","dateTime":"2018-10-30 15:49:11","servicemetrics":"score2","type":"grade","id":1}
{"category":"hive_common_meta","name":"COLLECTION-2","game":"misample","dateTime":"2018-10-30 15:49:11","servicemetrics":"asset_var","type":"action","id":11}
{"category":"hive_common_meta","name":"PLAYER_LIST-2","game":"misample","dateTime":"2018-10-30 15:49:11","servicemetrics":"asset_var","type":"item","id":110001}
{"category":"hive_common_meta","name":"point-2","game":"misample","dateTime":"2018-10-30 15:49:11","servicemetrics":"asset_var","type":"asset","id":2}