Method: vitals.errors.counts.query
HTTP 请求
POST https://playdeveloperreporting.googleapis.com/v1beta1/{name=apps/*/errorCountMetricSet}:query
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
必需。资源名称。 格式:apps/{app}/errorCountMetricSet
|
请求正文
请求正文中包含结构如下的数据:
JSON 表示法 |
{
"timelineSpec": {
object (TimelineSpec )
},
"dimensions": [
string
],
"metrics": [
string
],
"pageSize": integer,
"pageToken": string,
"filter": string
} |
字段 |
timelineSpec |
object (TimelineSpec )
时间轴聚合参数的规范。 支持的汇总期:
DAILY :指标按日历日期间隔汇总。默认且唯一受支持的时区是 America/Los_Angeles 。
|
dimensions[] |
string
用于对数据进行细分的维度。 支持的尺寸:
apiLevel (string ):用户设备上运行的 Android 的 API 级别,例如,26.
versionCode (int64 ):用户设备型号的唯一标识符。标识符的格式为“deviceBrand/device”,其中 deviceBrand 对应于 Build.BRAND,而 device 对应于 Build.DEVICE,例如 google/coral。
deviceModel (string ):用户设备型号的唯一标识符。
deviceType (string ):设备外形规格的标识符,例如,电话。
reportType (string ):错误类型。该值应与 ErrorType 中的某个可能值相对应。
isUserPerceived (string ):表示错误是用户感知的,还是 USER_PERCEIVED 或 NOT_USER_PERCEIVED。
issueId (string ):错误分配到的 ID。该值应与 issue name 的 {issue} 组成部分相对应。
deviceRamBucket (int64 ):设备的 RAM,以 MB 为单位,以存储分区为单位(3GB、4GB 等)。
deviceSocMake (string ):由设备的主要系统芯片组成,例如三星。参考文档
deviceSocModel (string ):设备主要系统芯片的型号,例如“Exynos 2100”。参考文档
deviceCpuMake (string ):设备的 CPU 配置,例如,Qualcomm。
deviceCpuModel (string ):设备 CPU 的型号,例如“Kryo 240”。
deviceGpuMake (string ):设备的 GPU 组成,例如,ARM。
deviceGpuModel (string ):设备 GPU 的型号,例如,马里
deviceGpuVersion (string ):设备 GPU 的版本,例如T750。
deviceVulkanVersion (string ):设备的 Vulkan 版本,例如,“4198400”。
deviceGlEsVersion (string ):设备的 OpenGL ES 版本,例如,“196610”。
deviceScreenSize (string ):设备的屏幕尺寸,例如一般、大。
deviceScreenDpi (string ):设备的屏幕密度,例如 mdpi、hdpi。
|
metrics[] |
string
要汇总的指标。 支持的指标:
errorReportCount (google.type.Decimal ):已针对某个应用收到的单个错误报告的绝对计数。
distinctUsers (google.type.Decimal ):已收到相关报告的去重用户数。必须注意不要进一步汇总此计数,因为这可能会导致多次统计用户。该值没有四舍五入,但可能是近似值。
|
pageSize |
integer
所返回数据的大小上限。 如果未指定,则最多返回 1000 行。最大值为 100,000;大于 100,000 的值将被强制转换为 100,000。
|
pageToken |
string
从上一次调用收到的页面令牌。利用其进行后续页面检索。 分页时,向请求提供的所有其他参数必须与提供页面令牌的调用匹配。
|
filter |
string
要应用于数据的过滤器。过滤表达式遵循 AIP-160 标准,并且支持按所有细分维度的相等性进行过滤。
|
响应正文
错误计数查询响应。
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"rows": [
{
object (MetricsRow )
}
],
"nextPageToken": string
} |
字段 |
rows[] |
object (MetricsRow )
返回的行数。
|
nextPageToken |
string
用于提取下一页数据的延续令牌。
|
授权范围
需要以下 OAuth 作用域:
https://www.googleapis.com/auth/playdeveloperreporting
有关详情,请参阅 OAuth 2.0 概览。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-11-29。
[null,null,["最后更新时间 (UTC):2023-11-29。"],[[["Queries error count metrics within a specified app and timeframe using flexible filtering and aggregation options."],["Allows specification of data slices via dimensions like API level, device model, error type, and more."],["Supports aggregation of key metrics including error report count and distinct users affected."],["Returns paginated results, enabling retrieval of large datasets, and provides a continuation token for subsequent pages."],["Requires authorization with the `https://www.googleapis.com/auth/playdeveloperreporting` scope."]]],[]]