* $apigeeService = new Google\Service\Apigee(...); * $optimizedHostStats = $apigeeService->optimizedHostStats; * */ class OrganizationsOptimizedHostStats extends \Google\Service\Resource { /** * Similar to GetHostStats except that the response is less verbose. * (optimizedHostStats.get) * * @param string $name Required. Resource name for which the interactive query * will be executed. Use the following format in your request: * `organizations/{organization_id}/optimizedHostStats/{dimensions}` Dimensions * let you view metrics in meaningful groupings, such as `apiproxy`, * `target_host`. The value of dimensions should be a comma-separated list as * shown below: `organizations/{org}/optimizedHostStats/apiproxy,request_verb` * @param array $optParams Optional parameters. * * @opt_param string accuracy No longer used by Apigee. Supported for backwards * compatibility. * @opt_param string envgroupHostname Required. Hostname for which the * interactive query will be executed. * @opt_param string filter Filter that enables you to drill-down on specific * dimension values. * @opt_param string limit Maximum number of result items to return. The default * and maximum value that can be returned is 14400. * @opt_param string offset Offset value. Use `offset` with `limit` to enable * pagination of results. For example, to display results 11-20, set limit to * `10` and offset to `10`. * @opt_param bool realtime No longer used by Apigee. Supported for backwards * compatibility. * @opt_param string select Required. Comma-separated list of metrics. For * example: `sum(message_count),sum(error_count)` * @opt_param string sort Flag that specifies whether the sort order should be * ascending or descending. Valid values include `DESC` and `ASC`. * @opt_param string sortby Comma-separated list of columns used to sort the * final result. * @opt_param string timeRange Required. Time interval for the interactive * query. Time range is specified in GMT as `start~end`. For example: * `04/15/2017 00:00~05/15/2017 23:59`. * @opt_param string timeUnit Granularity of metrics returned. Valid values * include: `second`, `minute`, `hour`, `day`, `week`, or `month`. * @opt_param string topk Top number of results to return. For example, to * return the top 5 results, set `topk=5`. * @opt_param bool tsAscending Flag that specifies whether to list timestamps in * ascending (`true`) or descending (`false`) order. Apigee recommends that you * set this value to `true` if you are using `sortby` with `sort=DESC`. * @opt_param string tzo Timezone offset value. * @return GoogleCloudApigeeV1OptimizedStats */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], GoogleCloudApigeeV1OptimizedStats::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(OrganizationsOptimizedHostStats::class, 'Google_Service_Apigee_Resource_OrganizationsOptimizedHostStats');