Skip to main content

host_stats

Creates, updates, deletes, gets or lists a host_stats resource.

Overview

Namehost_stats
TypeResource
Idgoogle.apigee.host_stats

Fields

NameDatatypeDescription
environmentsarrayList of query results on the environment level.
hostsarrayList of query results grouped by host.
metaDataobjectEncapsulates additional information about query execution.

Methods

NameAccessible byRequired ParamsDescription
organizations_host_stats_getSELECThostStatsId, organizationsIdRetrieve metrics grouped by dimensions in host level. The types of metrics you can retrieve include traffic, message counts, API call latency, response size, and cache hits and counts. Dimensions let you view metrics in meaningful groups. You can optionally pass dimensions as path parameters to the stats API. If dimensions are not specified, the metrics are computed on the entire set of data for the given time range.

SELECT examples

Retrieve metrics grouped by dimensions in host level. The types of metrics you can retrieve include traffic, message counts, API call latency, response size, and cache hits and counts. Dimensions let you view metrics in meaningful groups. You can optionally pass dimensions as path parameters to the stats API. If dimensions are not specified, the metrics are computed on the entire set of data for the given time range.

SELECT
environments,
hosts,
metaData
FROM google.apigee.host_stats
WHERE hostStatsId = '{{ hostStatsId }}'
AND organizationsId = '{{ organizationsId }}';