- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
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.
HTTP request
GET https://apigee.googleapis.com/v1/{name=organizations/*/environments/*/stats/**}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. Resource name for which the interactive query will be executed. Use the following format in your request: Dimensions let you view metrics in meaningful groupings, such as Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
select |
Comma-separated list of metrics. For example: |
timeUnit |
Granularity of metrics returned. Valid values include: |
timeRange |
Time interval for the interactive query. Time range is specified in GMT as |
filter |
Filter that enables you to drill down on specific dimension values. |
sort |
Flag that specifies whether the sort order should be ascending or descending. Valid values include: |
sortby |
Comma-separated list of columns to sort the final result. |
aggTable |
Table name used to query custom aggregate tables. If this parameter is skipped, then Apigee will try to retrieve the data from fact tables which will be expensive. |
limit |
Maximum number of result items to return. The default and maximum value that can be returned is 14400. |
offset |
Offset value. Use |
topk |
Top number of results to return. For example, to return the top 5 results, set |
tsAscending |
Flag that specifies whether to list timestamps in ascending ( |
realtime |
No longer used by Apigee. Supported for backwards compatibility. |
sonar |
Routes the query to API Monitoring for the last hour. |
tzo |
Timezone offset value. |
accuracy |
No longer used by Apigee. Supported for backwards compatibility. |
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Stats
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform