Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuming
/
developer-docs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
undancer
2015-12-08 22:12:53 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f54861f9ff5bb91ddf07cfbed78ba5bd72942f4b
f54861f9
1 parent
14b9a8ae
Updated 新的事件发送定义(讨论中) (markdown)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
1 deletions
新的事件发送定义(讨论中).md
新的事件发送定义(讨论中).md
View file @
f54861f
test
\ No newline at end of file
1、格式的定义
提交地址:URL,参考:MNS
`method:POST`
事件格式(事件之间有序)
```
[event,...]
```
event定义(事件内部无序)
```
json
{
"app_key"
:
"应用标示"
,
"user_id"
:
"用户标示"
,
"device_id"
:
"设备标示"
,
"key"
:
"事件名"
,
"time"
:
"时间戳"
,
"type"
:
"事件方法"
,
"properties"
:{
"自定义键值对"
}
}
```
参数级别按先后顺序分为:系统级,全局级,用户级
系统级:系统启动时由SDK获取到的系统信息,固定以$开头
全局级:在整个APP的生命周期里的全局参数
用户级:在当前事件里的参数
最后上报的事件为这三个级别依次叠加后的结果。
系统级参数
| 参数 | 栗子 | 定义 |
|-----|-----|-----|
| $lib |
`iOS`
| SDK类库 |
| $lib_version |
`1.2.0`
| SDK库版本 |
| $os |
`iPhone OS`
| 操作系统 |
| $os_version |
`9.1`
| 操作系统版本 |
| $model |
`iPod touch`
or
`x86_64`
| 模具 |
| $watch_model | 未知 | 手表模具 |
| $screen_width |
`1024`
| 屏幕宽度 |
| $screen_height |
`768`
| 屏幕高度 |
| $manufacturer |
`Apple`
| 制造商 |
| $province |
`北京`
| 省份 |
| $city |
`北京`
| 城市 |
| $wifi |
`1`
or
`0`
| 是否启用wifi |
| $app_version |
`655`
| 编译号(Bundle version) |
| $app_release |
`1.0`
| 语义化版本号(Bundle versions string, short) |
| $ios_ifa |
`xxxxxxxx`
| 苹果广告唯一标示 |
| $carrier |
`中国联通`
| 运营商 |
...
...
Please
register
or
login
to post a comment