---
# System prepended metadata

title: 使用者紀錄格式

---

# 使用者紀錄格式
## 紀錄內容
裝置代號、裝置週期（因為REID重啟會重置使用者特徵碼，故會紀錄深度學習機器清除時間）、使用者特徵碼、年齡、性別、視窗方位、事件（播放、行走中、點擊猜你喜歡、活動、商品、返回等）、展示內容id（ex:12）、發生時間
## 上傳需求
點選活動內容，畫面上顯示id為12和13的活動列表
```
{
  "hardwaresid":2,
  "deviceTime":"2020-06-15T14:27:37+08:00",
  "reid":"id0",
  "age":18,
  "gender":"female",
  "print":30,
  "event":1,
  "dataId":[12,13],
  "created_at": "2020-06-15T14:27:37+08:00",
  "updated_at": "2020-07-03T19:15:44+08:00"
}
```
影片因判斷女性顯示id為1,2的雙欄廣告
```
{
  "hardwaresid":2,
  "deviceTime":"2020-06-15T14:27:37+08:00",
  "reid":"id0",
  "age":18,
  "gender":"female",
  "print":20,
  "event":2,
  "dataId":[1,2],
  "created_at": "2020-06-15T14:27:37+08:00",
  "updated_at": "2020-07-03T19:15:44+08:00"
}
```
影片隨機輪播廣告
```
{
  "hardwaresid":2,
  "deviceTime":"2020-06-15T14:27:37+08:00",
  "reid":"",
  "age":-1,
  "gender":"",
  "print":0,
  "event":2,
  "dataId":[1,2],
  "created_at": "2020-06-15T14:27:37+08:00",
  "updated_at": "2020-07-03T19:15:44+08:00"
}
```

## 目前階段搜尋需求
利用照裝置代號＋事件＋展示內容id取得播放數量
ex:
搜尋出活動id為12的播放次數
```
{
  "event":1,
  "Id":12
}
```
回傳
```
{
  "code": 200,
  "data": {
    "event": 1,
    "Id": 12,
    "count": 100
  }
}
```

搜尋出影片id 1的播放次數
```
{
  "event":2,
  "Id":12
}
```
回傳
```
{
  "code": 200,
  "data": {
    "event": 2,
    "Id": 1,
    "count": 50
  }
}
```

取得指定範圍內所有資料
```
{
  "hardwaresid":2,
  "stareTime":"2020-06-15T14:27:37+08:00",
  "endTime":"2020-06-15T14:27:37+08:00"
}
```
回傳
```
{
  "code": 200,
  "data": [
    {
      "hardwaresid": 2,
      "deviceTime": "2020-06-15T14:27:37+08:00",
      "reid": "id0",
      "age": 18,
      "gender": "female",
      "print": 20,
      "event": 2,
      "dataId": [
        1,
        2
      ],
      "created_at": "2020-06-15T14:27:37+08:00",
      "updated_at": "2020-07-03T19:15:44+08:00"
    },
    {
      "hardwaresid": 2,
      "deviceTime": "2020-06-15T14:27:37+08:00",
      "reid": "id0",
      "age": 18,
      "gender": "female",
      "print": 20,
      "event": 2,
      "dataId": [
        1,
        2
      ],
      "created_at": "2020-06-15T14:27:37+08:00",
      "updated_at": "2020-07-03T19:15:44+08:00"
    }
  ]
}
```