* $playdeveloperreportingService = new Google\Service\Playdeveloperreporting(...); * $stuckbackgroundwakelockrate = $playdeveloperreportingService->stuckbackgroundwakelockrate; * */ class VitalsStuckbackgroundwakelockrate extends \Google\Service\Resource { /** * Describes the properties of the metric set. (stuckbackgroundwakelockrate.get) * * @param string $name Required. The resource name. Format: * apps/{app}/stuckBackgroundWakelockRateMetricSet * @param array $optParams Optional parameters. * @return GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet::class); } /** * Queries the metrics in the metric set. (stuckbackgroundwakelockrate.query) * * @param string $name Required. The resource name. Format: * apps/{app}/stuckBackgroundWakelockRateMetricSet * @param GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest $postBody * @param array $optParams Optional parameters. * @return GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetResponse */ public function query($name, GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('query', [$params], GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(VitalsStuckbackgroundwakelockrate::class, 'Google_Service_Playdeveloperreporting_Resource_VitalsStuckbackgroundwakelockrate');