Method: anomalies.list
HTTP 请求
GET https://playdeveloperreporting.googleapis.com/v1alpha1/{parent=apps/*}/anomalies
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
必需。检测到异常的父级应用。 格式:apps/{app}
|
查询参数
参数 |
filter |
string
对异常值进行过滤的条件。如需获得基本的过滤器指南,请访问 https://google.aip.dev/160。 支持的函数:
activeBetween(startTime, endTime) :如果指定,则仅列出 startTime (含)和 endTime (不含)之间有效的异常。两个参数都应符合 RFC-3339 格式的字符串(例如 2012-04-21T11:30:00-04:00 )。支持世界协调时间 (UTC) 偏移量。startTime 和 endTime 都接受特殊值 UNBOUNDED ,分别表示没有下限或上限的区间。示例:
activeBetween("2021-04-21T11:30:00Z", "2021-07-21T00:00:00Z")
activeBetween(UNBOUNDED, "2021-11-21T00:00:00-04:00")
activeBetween("2021-07-21T00:00:00-04:00", UNBOUNDED)
|
pageSize |
integer
所返回数据的大小上限。如果未指定,则最多返回 10 个异常值。最大值为 100;大于 100 的值将被强制转换为 100。
|
pageToken |
string
从之前的 ListErrorReports 调用接收的页面令牌。利用其进行后续页面检索。 进行分页时,提供给 ListErrorReports 的所有其他参数必须与提供页面令牌的调用匹配。
|
响应正文
在响应时列出数据集中的异常值。
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"anomalies": [
{
object (Anomaly )
}
],
"nextPageToken": string
} |
字段 |
anomalies[] |
object (Anomaly )
发现的异常值。
|
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。"],[[["Lists anomalies, such as crashes and ANRs, within your app's datasets."],["Filter anomalies by time window and retrieve paginated results using query parameters."],["Request requires authorization using the `https://www.googleapis.com/auth/playdeveloperreporting` scope."],["Response provides a list of anomalies and a token for retrieving further pages, if available."]]],["This outlines how to list anomalies in datasets via an HTTP GET request to `https://playdeveloperreporting.googleapis.com/v1alpha1/{parent=apps/*}/anomalies`. The `parent` path parameter, indicating the app, is required. Optional query parameters include `filter` (for time-based anomaly filtering), `pageSize` (limiting results), and `pageToken` (for pagination). The request body must be empty. The response body includes a list of anomalies and a `nextPageToken` for further results. Authorization requires the `playdeveloperreporting` OAuth scope.\n"]]