AI-generated Key Takeaways
- 
          Queries metrics related to background wakelocks in the specified app. 
- 
          Allows filtering data by dimensions like API level, device model, and country. 
- 
          Returns metrics such as the percentage of users with prolonged background wakelocks and distinct user counts. 
- 
          Supports pagination for retrieving large datasets. 
- 
          Requires the https://www.googleapis.com/auth/playdeveloperreportingOAuth scope for authorization.
Queries the metrics in the metric set.
HTTP request
POST https://playdeveloperreporting.googleapis.com/v1beta1/{name=apps/*/stuckBackgroundWakelockRateMetricSet}:query
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| name | 
 Required. The resource name. Format: apps/{app}/stuckBackgroundWakelockRateMetricSet | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { "timelineSpec": { object ( | 
| Fields | |
|---|---|
| timelineSpec | 
 Specification of the timeline aggregation parameters. Supported aggregation periods: 
 | 
| dimensions[] | 
 Dimensions to slice the data by. Supported dimensions: 
 | 
| metrics[] | 
 Metrics to aggregate. Supported metrics: 
 | 
| filter | 
 Filters to apply to data. The filtering expression follows AIP-160 standard and supports filtering by equality of all breakdown dimensions. | 
| pageSize | 
 Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000. | 
| pageToken | 
 A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token. | 
| userCohort | 
 User view to select. The output data will correspond to the selected view. The only supported value is  | 
Response body
Response message for stuckbackgroundwakelockrate.query.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "rows": [
    {
      object ( | 
| Fields | |
|---|---|
| rows[] | 
 Returned rows of data. | 
| nextPageToken | 
 Continuation token to fetch the next page of data. | 
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/playdeveloperreporting
For more information, see the OAuth 2.0 Overview.