Metrics API 예시

이 문서에서는 특정 기준에 따라 Apigee 측정항목 API를 사용하는 예시를 제공합니다. 이는 포괄적인 참조 자료가 아닙니다.

자세한 내용은 다음을 참고하세요.

다음 예시에서는 $TOKENOAuth 2.0 액세스 토큰 가져오기에 설명된 대로 OAuth 2.0 액세스 토큰으로 설정합니다. 예시에서 사용된 curl 옵션에 대한 자세한 내용은 curl 사용을 참조하세요. 사용된 환경 변수에 대한 설명은 Apigee API 요청에 대한 환경 변수 설정을 참조하세요.

API 애널리틱스 명령어

API 프록시별 요청 수

API 프록시별 요청

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"

API 프록시별 응답 시간

API 프록시별 평균 총 응답 시간

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"

API 프록시별 최대 총 응답 시간

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"

API 프록시별 최소 총 응답 시간

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"

API 프록시별 평균 대상 응답 시간

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"

API 프록시별 최대 목표 응답 시간

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"

API 프록시별 최소 대상 응답 시간

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"

API 프록시별 오류

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"

API별 요청/응답 크기

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 \

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 \

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 \

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 \

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 \

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 \

API별 요청/응답 지연 시간

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 \

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 \

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 \

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 \

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 \

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 \

개발자 애널리틱스 명령어

개발자별 앱/사용자/요청 수

개발자별 앱 수

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 \

개발자별 최종 사용자 수

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 \

개발자별 요청

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 \

개발자별 응답 시간

개발자별 평균 총 응답 시간

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 \

개발자별 최대 총 응답 시간

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 \

개발자별 최소 총 응답 시간

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 \

개발자별 평균 목표 응답 시간

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 \

개발자별 최대 목표 응답 시간

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 \

개발자별 최소 목표 응답 시간

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 \

개발자별 오류

개발자별 오류

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 \

개발자별 요청/응답 크기

개발자별 최대 요청 크기

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 \

개발자별 최소 요청 크기

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 \

개발자별 평균 요청 크기

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 \

개발자별 최대 응답 크기

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 \

개발자별 최소 응답 크기

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 \

개발자별 평균 응답 크기

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 \

개발자별 요청/응답 지연 시간

개발자별 평균 응답 처리 지연 시간

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 \

개발자별 최대 응답 처리 지연 시간

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 \

개발자별 최소 응답 처리 지연 시간

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 \

개발자별 평균 처리 지연 시간

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 \

개발자별 최소 요청 처리 지연 시간

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 \

앱 애널리틱스 명령어

앱별 사용자/요청 수

앱별 사용자 수

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 \

앱별 요청

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 \

앱별 응답 시간

앱별 평균 총 응답 시간

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 \

앱별 최대 총 응답 시간

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 \

앱별 최소 총 응답 시간

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 \

앱별 평균 목표 응답 시간

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 \

앱별 최대 목표 응답 시간

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 \

앱별 최소 목표 응답 시간

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 \

앱별 오류

앱별 오류

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"

앱별 요청/응답 크기

앱별 최대 요청 크기

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"

앱별 최소 요청 크기

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"

앱별 평균 요청 크기

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"

앱별 최대 응답 크기

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"

앱별 최소 응답 크기

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"

앱별 평균 응답 크기

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"

앱별 요청/응답 지연 시간

앱별 평균 응답 처리 지연 시간

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"

앱별 최대 응답 처리 지연 시간

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"

앱별 최소 응답 처리 지연 시간

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"

앱별 평균 요청 처리 지연 시간

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"

앱별 최대 요청 처리 지연 시간

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"

앱별 최소 요청 처리 지연 시간

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 제품 애널리틱스 명령어

API 제품별 앱/개발자/요청 수

API 제품별 앱 수

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"

API 제품별 개발자 수

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"

제품별 요청

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"

API 제품별 응답 시간

평균 총 응답 시간 API 제품

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"

최대 총 응답 시간 API 제품

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"

최소 총 응답 시간 API 제품

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"

평균 목표 응답 시간 API 제품

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"

최대 목표 응답 시간 API 제품

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"

최소 목표 응답 시간 API 제품

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"

API 제품별 오류

API 제품별 오류

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"

API 제품별 요청/응답 크기

API 제품별 최대 요청 크기

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"

API 제품별 최소 요청 크기

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"

API 제품별 평균 요청 크기

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"

API 제품별 최대 응답 크기

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"

API 제품별 최소 응답 크기

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"

API 제품별 평균 응답 크기

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"

API 제품별 요청/응답 지연 시간

API 제품별 평균 응답 처리 지연 시간

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"

API 제품별 최대 응답 처리 지연 시간

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"

API 제품별 최소 응답 처리 지연 시간

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"

API 제품별 평균 요청 처리 지연 시간

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"

API 제품별 최소 요청 처리 지연 시간

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 리소스 애널리틱스 명령어

API 리소스별 요청 수

API 리소스별 요청

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"

API 리소스별 응답 시간

API-리소스별 평균 총 응답 시간

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"

API-리소스별 최대 총 응답 시간

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"

API-리소스별 최소 총 응답 시간

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"

API-리소스별 평균 목표 응답 시간

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"

API-리소스별 최대 목표 응답 시간

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"

API-리소스별 최소 목표 응답 시간

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"

API 리소스별 오류

API-리소스별 오류

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"

API 리소스별 요청/응답 크기

API-리소스별 최대 요청 크기

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"

API-리소스별 최소 요청 크기

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"

API-리소스별 평균 요청 크기

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"

API-리소스별 최대 응답 크기

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"

API-리소스별 최소 응답 크기

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"

API-리소스별 평균 응답 크기

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"

API 리소스별 요청/응답 지연 시간

API-리소스별 평균 응답 처리 지연 시간

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"

API-리소스별 최대 응답 처리 지연 시간

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"

API-리소스별 최소 응답 처리 지연 시간

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"

API-리소스별 평균 처리 지연 시간

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"

API-리소스별 최대 요청 처리 지연 시간

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"

API-리소스별 최소 요청 처리 지연 시간

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 프로그램 전체 애널리틱스 명령어

요청 수

시간 경과에 따른 요청 수

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"

응답 시간

평균 총 응답 시간

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"

최대 총 응답 시간

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"

최소 총 응답 시간

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"

평균 목표 응답 시간

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"

최대 목표 응답 시간

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"

최소 목표 응답 시간

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"

오류

시간 경과에 따른 오류

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"

요청/응답 크기

시간 경과에 따른 최대 요청 크기

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"

시간 경과에 따른 최소 요청 크기

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"

시간 경과에 따른 평균 요청 크기

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"

시간 경과에 따른 최대 응답 크기

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"

시간 경과에 따른 최소 응답 크기

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"

시간 경과에 따른 평균 응답 크기

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"

요청/응답 지연 시간

평균 응답 처리 지연 시간

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"

최대 응답 처리 지연 시간

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"

최소 응답 처리 지연 시간

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"

평균 요청 처리 지연 시간

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"

최대 요청 처리 지연 시간

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"

최소 요청 처리 지연 시간

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"