Method: customers.reports.countActiveDevices

获取每个设定时间段内的活跃设备数量。

HTTP 请求

GET https://chromemanagement.googleapis.com/v1/{customer=customers/*}/reports:countActiveDevices

网址采用 gRPC 转码语法。

路径参数

参数
customer

string

必需。以“customers/C”或“customers/my_customer”为前缀的混淆客户 ID。

查询参数

参数
date

object (Date)

表示开始统计有效设备的日期(基于世界协调时间 [UTC])。时间戳采用 ISO 8601 格式,即 yyyy-mm-dd

请求正文

请求正文必须为空。

响应正文

包含活跃设备数量的响应。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "sevenDaysCount": string,
  "thirtyDaysCount": string
}
字段
sevenDaysCount

string (int64 format)

在请求中指定的日期之前的 7 天内,活跃设备的数量。

thirtyDaysCount

string (int64 format)

在请求中指定的日期之前的 30 天内,活跃设备的数量。

授权范围

需要以下 OAuth 作用域:

  • https://www.googleapis.com/auth/chrome.management.reports.readonly