Method: organizations.environments.optimizedStats.get

Similar to stats.get except that the response is less verbose.

HTTP request

GET https://apigee.googleapis.com/v1/{name=organizations/*/environments/*/optimizedStats/**}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Resource name for which the interactive query will be executed. Use the following format in your request: organizations/{org}/environments/{env}/optimizedStats/{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}/environments/{env}/optimizedStats/apiproxy,request_verb

Authorization requires the following IAM permission on the specified resource name:

  • apigee.environments.getStats

Query parameters

Parameters
select

string

Required. Comma-separated list of metrics. For example: sum(message_count),sum(error_count)

timeUnit

string

Granularity of metrics returned. Valid values include: second, minute, hour, day, week, or month.

timeRange

string

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

filter

string

Filter that enables you to drill-down on specific dimension values.

sort

string

Flag that specifies whether the sort order should be ascending or descending. Valid values include DESC and ASC.

sortby

string

Comma-separated list of columns to sort the final result.

aggTable

string

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

string

Maximum number of result items to return. The default and maximum value that can be returned is 14400.

offset

string

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.

topk

string

Top number of results to return. For example, to return the top 5 results, set topk=5.

tsAscending

boolean

Flag that specifies whether to list timestamps in ascending (true) or descending (false) order. Apigee recommends setting this value to true if you are using sortby with sort=DESC.

realtime

boolean

No longer used by Apigee. Supported for backwards compatibility.

sonar

boolean

Routes the query to API Monitoring for the last hour.

tzo

string

Timezone offset value.

accuracy

string

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 OptimizedStats.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform