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 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eLists anomalies, such as crashes and ANRs, within your app's datasets.\u003c/p\u003e\n"],["\u003cp\u003eFilter anomalies by time window and retrieve paginated results using query parameters.\u003c/p\u003e\n"],["\u003cp\u003eRequest requires authorization using the \u003ccode\u003ehttps://www.googleapis.com/auth/playdeveloperreporting\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eResponse provides a list of anomalies and a token for retrieving further pages, if available.\u003c/p\u003e\n"]]],["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"],null,["# Method: anomalies.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListAnomaliesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n\nLists anomalies in any of the datasets.\n\n### HTTP request\n\n`GET https://playdeveloperreporting.googleapis.com/v1alpha1/{parent=apps/*}/anomalies`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------|\n| `parent` | `string` Required. Parent app for which anomalies were detected. Format: apps/{app} |\n\n### Query parameters\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `filter` | `string` Filtering criteria for anomalies. For basic filter guidance, please check: \u003chttps://google.aip.dev/160\u003e. **Supported functions:** - `activeBetween(startTime, endTime)`: If specified, only list anomalies that were active in between `startTime` (inclusive) and `endTime` (exclusive). Both parameters are expected to conform to an RFC-3339 formatted string (e.g. `2012-04-21T11:30:00-04:00`). UTC offsets are supported. Both `startTime` and `endTime` accept the special value `UNBOUNDED`, to signify intervals with no lower or upper bound, respectively. Examples: - `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)` |\n| `pageSize` | `integer` Maximum size of the returned data. If unspecified, at most 10 anomalies will be returned. The maximum value is 100; values above 100 will be coerced to 100. |\n| `pageToken` | `string` A page token, received from a previous `ListErrorReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListErrorReports` must match the call that provided the page token. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse with a list of anomalies in datasets.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"anomalies\": [ { object (/play/developer/reporting/reference/rest/v1alpha1/anomalies#Anomaly) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------|\n| `anomalies[]` | `object (`[Anomaly](/play/developer/reporting/reference/rest/v1alpha1/anomalies#Anomaly)`)` Anomalies that were found. |\n| `nextPageToken` | `string` Continuation token to fetch the next page of data. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/playdeveloperreporting`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]