Skip to main content

stats

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

Overview

Namestats
TypeResource
Idgoogle.apigee.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_environments_stats_getSELECTenvironmentsId, organizationsId, statsIdRetrieve metrics grouped by dimensions. 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. 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.stats
WHERE environmentsId = '{{ environmentsId }}'
AND organizationsId = '{{ organizationsId }}'
AND statsId = '{{ statsId }}';