Method: anomalies.list
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Liệt kê các điểm bất thường trong bất kỳ tập dữ liệu nào.
Yêu cầu HTTP
GET https://playdeveloperreporting.googleapis.com/v1alpha1/{parent=apps/*}/anomalies
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
parent |
string
Bắt buộc. Ứng dụng mẹ mà hệ thống phát hiện thấy các điểm bất thường. Định dạng: apps/{app}
|
Tham số truy vấn
Thông số |
filter |
string
Tiêu chí lọc cho các điểm bất thường. Để xem hướng dẫn cơ bản về bộ lọc, vui lòng xem tại: https://google.aip.dev/160. Các hàm được hỗ trợ:
activeBetween(startTime, endTime) : Nếu được chỉ định, chỉ liệt kê những điểm bất thường đang hoạt động trong khoảng thời gian từ startTime (bao gồm) đến endTime (không bao gồm). Cả hai tham số này đều phải tuân thủ chuỗi có định dạng RFC-3339 (ví dụ: 2012-04-21T11:30:00-04:00 ). Các độ lệch UTC đều được hỗ trợ. Cả startTime và endTime đều chấp nhận giá trị đặc biệt UNBOUNDED để biểu thị các khoảng không có giới hạn dưới hoặc giới hạn trên tương ứng. Ví dụ:
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
Kích thước tối đa của dữ liệu được trả về. Nếu không chỉ định, tối đa 10 điểm bất thường sẽ được trả về. Giá trị tối đa là 100; các giá trị lớn hơn 100 sẽ được chuyển đổi thành 100.
|
pageToken |
string
Mã thông báo trang nhận được từ một lệnh gọi ListErrorReports trước đó. Cung cấp thông tin này để truy xuất trang tiếp theo. Khi phân trang, tất cả các tham số khác được cung cấp cho ListErrorReports phải khớp với lệnh gọi đã cung cấp mã thông báo trang.
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Phản hồi bằng danh sách các điểm bất thường trong tập dữ liệu.
Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"anomalies": [
{
object (Anomaly )
}
],
"nextPageToken": string
} |
Trường |
anomalies[] |
object (Anomaly )
Các điểm bất thường đã được phát hiện.
|
nextPageToken |
string
Mã thông báo tiếp tục để tìm nạp trang dữ liệu tiếp theo.
|
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/playdeveloperreporting
Để biết thêm thông tin, hãy xem OAuth 2.0 Overview.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\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)."]]