dimensions = $dimensions; } /** * @return string[] */ public function getDimensions() { return $this->dimensions; } /** * Optional. Filters to apply to data. The filtering expression follows * [AIP-160](https://google.aip.dev/160) standard and supports filtering by * equality of all breakdown dimensions. * * @param string $filter */ public function setFilter($filter) { $this->filter = $filter; } /** * @return string */ public function getFilter() { return $this->filter; } /** * Optional. Metrics to aggregate. **Supported metrics:** * * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users * in the aggregation period that had a wakelock held in the background for * longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` * (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in * the last 7 days. The daily values are weighted by the count of distinct * users for the day. * `stuckBgWakelockRate28dUserWeighted` * (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in * the last 28 days. The daily values are weighted by the count of distinct * users for the day. * `distinctUsers` (`google.type.Decimal`): Count of * distinct users in the aggregation period that were used as normalization * value for the `stuckBgWakelockRate` metric. A user is counted in this * metric if they app was doing any work on the device, i.e., not just active * foreground usage but also background work. Care must be taken not to * aggregate this count further, as it may result in users being counted * multiple times. The value is rounded to the nearest multiple of 10, 100, * 1,000 or 1,000,000, depending on the magnitude of the value. * * @param string[] $metrics */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return string[] */ public function getMetrics() { return $this->metrics; } /** * Optional. 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. * * @param int $pageSize */ public function setPageSize($pageSize) { $this->pageSize = $pageSize; } /** * @return int */ public function getPageSize() { return $this->pageSize; } /** * Optional. 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. * * @param string $pageToken */ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } /** * @return string */ public function getPageToken() { return $this->pageToken; } /** * Optional. Specification of the timeline aggregation parameters. **Supported * aggregation periods:** * DAILY: metrics are aggregated in calendar date * intervals. Due to historical constraints, the only supported timezone is * `America/Los_Angeles`. * * @param GooglePlayDeveloperReportingV1beta1TimelineSpec $timelineSpec */ public function setTimelineSpec(GooglePlayDeveloperReportingV1beta1TimelineSpec $timelineSpec) { $this->timelineSpec = $timelineSpec; } /** * @return GooglePlayDeveloperReportingV1beta1TimelineSpec */ public function getTimelineSpec() { return $this->timelineSpec; } /** * Optional. User view to select. The output data will correspond to the * selected view. The only supported value is `OS_PUBLIC`. * * Accepted values: USER_COHORT_UNSPECIFIED, OS_PUBLIC, OS_BETA, APP_TESTERS * * @param self::USER_COHORT_* $userCohort */ public function setUserCohort($userCohort) { $this->userCohort = $userCohort; } /** * @return self::USER_COHORT_* */ public function getUserCohort() { return $this->userCohort; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest::class, 'Google_Service_Playdeveloperreporting_GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest');