AppStatistics
本页内容
应用级的用量快照。下载次数、唯一安装设备与启动次数分别解释,并按时区和统计范围读取。
使用步骤
- 取得查询应用安装、启动与下载统计的成功响应,保存本次请求的
request_id。 - 按示例标出的对象位置读取字段。位置中的
[0]代表示例数组的第一项,处理列表时请遍历实际返回的记录。
JSON 示例
在查询应用安装、启动与下载统计的成功响应中使用此模型。对象位置为 data。
查看 AppStatistics 示例
{
"app_id": "A11111111111111111111111111111111",
"module": "enterprise",
"generated_at": 1794150000,
"timezone": "Asia/Shanghai",
"record_scope": "current_retained_counters",
"window": {
"start_date": "2026-10-10",
"end_date": "2026-11-08",
"start_at": 1791561600,
"end_at": 1794153600
},
"downloads": {
"unit": "admitted_downloads",
"total": 6,
"today": 1,
"yesterday": 0,
"last_7_days": 1,
"last_30_days": 1
},
"installation_statistics_state": "available",
"installations": {
"unit": "unique_admitted_device_fingerprints",
"total": 2,
"today": 1,
"yesterday": 0,
"last_7_days": 1,
"last_30_days": 1,
"cross_version_deduplicated": true
},
"launches": {
"unit": "recorded_launch_events",
"total": 4,
"today": 1,
"today_estimated": true,
"current_rules_include_first_open": true,
"legacy_totals_may_exclude_first_open": true
},
"daily": [
{
"date": "2026-10-10",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-11",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-12",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-13",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-14",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-15",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-16",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-17",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-18",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-19",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-20",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-21",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-22",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-23",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-24",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-25",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-26",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-27",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-28",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-29",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-30",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-10-31",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-11-01",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-11-02",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-11-03",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-11-04",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-11-05",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-11-06",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-11-07",
"downloads": 0,
"new_installations": 0
},
{
"date": "2026-11-08",
"downloads": 1,
"new_installations": 1
}
]
}字段定义
“必需”指字段所在的对象出现时,该字段是否必须存在。类型中含 null 表示值允许为空。请分别处理缺失字段、null、空字符串和零。
| 字段 | 必需 | 说明 |
|---|---|---|
app_id |
是 | 业务应用的完整 ID,来自列出应用或预留新应用的响应。 查看取值约束
示例: |
module |
是 | 业务模块。enterprise 为企业签名,distribution 为普通应用分发。 查看取值约束
示例: |
generated_at |
是 | 本次结果的生成时间,Unix 秒。 查看取值约束
示例: |
timezone |
是 | 统计日期或预算周期采用的时区。 查看取值约束
示例: |
record_scope |
是 | 数据覆盖的留存范围。 查看取值约束
示例: |
window |
是 | 本次统计覆盖的日期和时间区间。 |
window.start_date |
是 | 区间首日,按响应中的 timezone 解释。 查看取值约束
示例: |
window.end_date |
是 | 区间末日,按响应中的 timezone 解释。 查看取值约束
示例: |
window.start_at |
是 | 时间区间起点,Unix 秒。 查看取值约束
示例: |
window.end_at |
是 | 时间区间边界,Unix 秒。 查看取值约束
示例: |
downloads |
是 | 平台已准入的下载计数。 |
downloads.unit |
是 | 此金额或计数的单位,结合所在对象解释。 查看取值约束
示例: |
downloads.total |
是 | 当前保留范围内的累计数量。 查看取值约束
示例: |
downloads.today |
是 | 统计时区内今日的数量。 查看取值约束
示例: |
downloads.yesterday |
是 | 统计时区内昨日的数量。 查看取值约束
示例: |
downloads.last_7_days |
是 | 近 7 个自然日的数量。 查看取值约束
示例: |
downloads.last_30_days |
是 | 近 30 个自然日的数量。 查看取值约束
示例: |
installation_statistics_state |
是 | available 表示有数据,not_initialized 为未初始化,not_applicable 为此模块不适用。 查看取值约束
示例: |
installations |
是 | 应用级安装设备统计。按返回口径跨版本去重,不能由各版本计数相加替代。 |
installations.unit |
是 | 此金额或计数的单位,结合所在对象解释。 查看取值约束
示例: |
installations.total |
是 | 当前保留范围内的累计数量。 查看取值约束
示例: |
installations.today |
是 | 统计时区内今日的数量。 查看取值约束
示例: |
installations.yesterday |
是 | 统计时区内昨日的数量。 查看取值约束
示例: |
installations.last_7_days |
是 | 近 7 个自然日的数量。 查看取值约束
示例: |
installations.last_30_days |
是 | 近 30 个自然日的数量。 查看取值约束
示例: |
installations.cross_version_deduplicated |
是 | 是否已经跨版本按同一设备去重。 查看取值约束
示例: |
launches |
是 | 记录到的设备启动事件次数,按返回口径解释。 |
launches.unit |
是 | 此金额或计数的单位,结合所在对象解释。 查看取值约束
示例: |
launches.total |
是 | 当前保留范围内的累计数量。 查看取值约束
示例: |
launches.today |
是 | 统计时区内今日的数量。 查看取值约束
示例: |
launches.today_estimated |
是 | 今日计数是否为历史兼容估计值。 查看示例示例: |
launches.current_rules_include_first_open |
是 | 当前启动计数规则是否包含首次打开。 查看取值约束
示例: |
launches.legacy_totals_may_exclude_first_open |
是 | 旧版累计计数是否可能缺少首次打开。 查看取值约束
示例: |
daily |
是 | 本次统计窗口内的逐日计数,按返回的 timezone 解释日期。 查看取值约束
|
daily[].date |
是 | 本条统计对应的自然日。 查看取值约束
示例: |
daily[].downloads |
是 | 平台已准入的下载计数。 查看取值约束
示例: |
daily[].new_installations |
是 | 该自然日新增的安装设备数。 查看取值约束
示例: |
相关接口
以下接口使用此模型。打开具体接口可查看所需权限、完整请求和响应示例。