跳轉至

资产·分数日志和元数据

資產日誌和分數日誌需要每個日誌項目相關的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}