Metrics API examples

You're viewing Apigee X documentation.
View Apigee Edge documentation.

This document provides examples of using the Apigee metrics API based on specific criteria. This is not a comprehensive reference.

For more information, see:

In the following examples, $TOKEN is set to your OAuth 2.0 access token, as described in Obtaining an OAuth 2.0 access token. For information about the curl options used in the examples, see Using curl. For a description of the environment variables used, see Setting environment variables for Apigee API requests.

API analytics commands

Request counts by API proxy

Requests by API proxy

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproxy?select=sum(message_count)&timeRange=9/24/2019+00:00~10/25/2019+00:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Response time by API proxy

Avg. Total Response Time by API proxy

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproxy?select=avg(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Total Response Time by API proxy

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproxy?select=max(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Total Response Time by API proxy

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproxy?select=min(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Avg. Target Response Time by API proxy

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproxy?select=avg(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Target Response Time by API proxy

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproxy?select=max(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Target Response Time by API proxy

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproxy?select=min(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Errors by API proxy

Errors by API

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apis?select=sum(is_error)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Request/response size by API

Max Request Size by API

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apis?select=max(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Min Request Size by API

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apis?select=min(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Avg Request Size by API

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apis?select=avg(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Max Response Size by API

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apis?select=max(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Min Response Size by API

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apis?select=min(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Avg Response Size by API

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apis?select=avg(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Request/response latency by API

Avg. Response Processing Latency by API

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apis?select=avg(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Max Response Processing Latency by API

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apis?select=max(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Min Response Processing Latency by API

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apis?select=min(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Avg. Request Processing Latency by API

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apis?select=avg(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Max Request Processing Latency by API

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apis?select=max(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Min Request Processing Latency by API

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apis?select=min(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Developer analytics commands

App/User/Request counts by developer

App count by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=app_count&timeRange=9/24/2014%2000:00~10/25/2014%2000:00&timeUnit=day \

End User count by Developers

curl https://apigee.googleapis.com/v1/organizations/<$ORG/environments/$ENV/stats/devs?select=user_count&timeRange=9/24/2014%2000:00~10/25/2014%2000:00&timeUnit=day \

Requests by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=sum(message_count)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Response time by developer

Avg. Total Response Time by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=avg(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Max Total Response Time by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=max(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Min Total Response Time by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=min(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Avg. Target Response Time by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=avg(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Max Target Response Time by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=max(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Min Target Response Time by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=min(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Errors by developer

Errors by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=sum(is_error)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Request/response size by developer

Max Request Size by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=max(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Min Request Size by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=min(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Avg Request Size by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=avg(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Max Response Size by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=max(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Min Response Size by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=min(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Avg Response Size by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=avg(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Request/response latency by developer

Avg. Response Processing Latency by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=avg(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Max Response Processing Latency by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=max(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Min Response Processing Latency by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=min(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Avg. Request Processing Latency by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=avg(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Min Request Processing Latency by Developers

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/devs?select=min(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

App analytics commands

User/Request counts by app

User count by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=user_count&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Requests by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=sum(message_count)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Response time by app

Avg. Total Response Time by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=avg(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Max Total Response Time by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=max(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Min Total Response Time by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=min(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Avg. Target Response Time by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=avg(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Max Target Response Time by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=max(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Min Target Response Time by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=min(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \

Errors by app

Errors by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=sum(is_error)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Request/response size by app

Max Request Size by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=max(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Request Size by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=min(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Avg Request Size by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=avg(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Response Size by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=max(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Response Size by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=min(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Avg Response Size by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=avg(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Request/response latency by app

Avg. Response Processing Latency by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=avg(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Response Processing Latency by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=max(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Response Processing Latency by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=min(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Avg. Request Processing Latency by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=avg(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Request Processing Latency by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=max(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Request Processing Latency by Apps

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apps?select=min(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

API product analytics commands

App/Developer/Request counts by API product

App count by API Products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=app_count&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Developer count by API Products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=developer_count&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Requests by Products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=sum(message_count)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Response time by API product

Avg. Total Response Time API products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=avg(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Total Response Time API products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=max(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Total Response Time API products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=min(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Avg. Target Response Time API products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=avg(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Target Response Time API products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=max(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Target Response Time API products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=min(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Errors by API product

Errors by API Products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=sum(is_error)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Request/response size by API product

Max Request Size by API Products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=max(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Request Size by API Products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=min(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Avg Request Size by API Products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=avg(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Response Size by API Products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=max(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

MIn Response Size by API Products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=min(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Avg Response Size by API Products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=avg(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Request/response latency by API product

Avg. Response Processing Latency by API products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=avg(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Response Processing Latency by API products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=max(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Response Processing Latency by API products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=min(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Avg. Request Processing Latency by API products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=avg(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Request Processing Latency by API products

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/apiproducts?select=min(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

API resource analytics commands

Request counts by API resource

Requests by API Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=sum(message_count)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Response time by API resource

Avg. Total Response Time by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=avg(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Total Response Time by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=max(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Total Response Time by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=min(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Avg. Target Response Time by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=avg(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Target Response Time by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=max(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Target Response Time by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=min(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Errors by API resource

Errors by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=sum(is_error)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Request/response size by API resource

Max Request Size by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=max(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Request Size by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=min(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Avg Request Size by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=avg(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Response Size by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=max(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Response Size by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=min(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Avg Response Size by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=avg(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Request/response latency by API resource

Avg. Response Processing Latency by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=avg(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Response Processing Latency by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=max(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Response Processing Latency by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=min(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Avg. Request Processing Latency by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=avg(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Request Processing Latency by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=max(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Request Processing Latency by API-Resource

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/request_path?select=min(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

API program-wide analytics commands

Request counts

Requests over Time

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats?select=sum(message_count)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Response time

Average Total Response Time

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=avg(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Total Response Time

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=max(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Total Response Time

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=min(total_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Average Target Response Time

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=avg(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Target Response Time

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=max(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Target Response Time

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=min(target_response_time)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Errors

Errors over Time

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=sum(is_error)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Request/response size

Max Request Size over Time

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=min(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Request Size over Time

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=min(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Avg Request Size over Time

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=avg(request_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Response Size over Time

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=min(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Response Size over Time

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=min(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Avg Response Size over Time

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=avg(response_size)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Request/response latency

Avg. Response Processing Latency

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=avg(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Response Processing Latency

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=max(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Response Processing Latency

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=min(response_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Average Request Processing Latency

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=avg(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Max Request Processing Latency

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=max(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"

Min Request Processing Latency

curl https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/stats/?select=min(request_processing_latency)&timeRange=9/24/2018%2000:00~10/25/2018%2000:00&timeUnit=day \
  -H "Authorization: Bearer $TOKEN"