GET管理接口
事件分布
按事件、平台、地区或者自定义属性取值的分布。`total` 是全量而非分页后的和, 调用方据此计算的占比在 `limit` 截尾后仍然真实。 `dimension=property` 时必须提供 `property_key`,这一维走事件明细 (汇总表按设计不含 properties),可用 `event_name` 限定到单个事件。
URL
/api/v1/admin/projects/{projectKey}/events/stats/breakdown鉴权方式
需要管理员 JWT 或 API Key,二者等价(Authorization: Bearer <token>)
请求参数
Path 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| projectKey | string | 是 | 项目主键 project_key(大小写不敏感) |
Query 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| start_time | integer | 否 | Unix 时间戳(秒) |
| end_time | integer | 否 | Unix 时间戳(秒) |
| dimension | event | platform | region | property | 否 | |
| property_key | string | 否 | dimension 为 property 时必填。 |
| event_name | string | 否 | |
| limit | integer | 否 |
Header 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| Authorization | string | 是 | Bearer <管理员 JWT 或 API Key> |
该接口无需请求体。
响应示例
200 响应
{
"start_time": 0,
"end_time": 0,
"dimension": "event",
"property_key": "string",
"total": 0,
"data": [
{
"key": "string",
"label": "string",
"count": 0
}
]
}GET
