Hi Team,
I am trying to start exploring the Apigee metrics API to integrate with our service to serve the Metrics on our own dashboards.
When i start executing one of the requests to get data by devapp, using below API
https://apigee.googleapis.com/v1/organizations/<Org Name>/environments/<ENV>/stats/<Developer App Name>?select=sum(message_count)&timeRange=10/01/2022%2000:00~10/07/2022%2000:00&timeUnit=day
getting below error,
Solved! Go to Solution.
The API is for retrieving environment level statistics. It looks as if you are trying to retrieve information about a specific app. It does not work that way.
Take a look at the docs over at:
https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.stats/...
The last segment in the path
organizations/{org}/environments/{env}/stats/{dimensions}
is for specifying a comma separated list of "dimensions". The dimensions themselves are the names of the fields by with you want to group-by the result (metrics).
Here is a list of dimensions you can use:
https://cloud.google.com/apigee/docs-preview/api-platform/analytics/analytics-reference?hl=en#dimens...
So, in your case, you would not put the ID/name of the app itself. Instead you would use the "developer_
The API is for retrieving environment level statistics. It looks as if you are trying to retrieve information about a specific app. It does not work that way.
Take a look at the docs over at:
https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.stats/...
The last segment in the path
organizations/{org}/environments/{env}/stats/{dimensions}
is for specifying a comma separated list of "dimensions". The dimensions themselves are the names of the fields by with you want to group-by the result (metrics).
Here is a list of dimensions you can use:
https://cloud.google.com/apigee/docs-preview/api-platform/analytics/analytics-reference?hl=en#dimens...
So, in your case, you would not put the ID/name of the app itself. Instead you would use the "developer_
Thanks much @miguelmendoza for pointing out the missing thing. Its working as expected.
I have one follow up question on this, so i see all the APIs under metrics API is giving us the aggregate data only.
We have a requirement to show the data for the individual call metrics, like response time, response code, and some other stuff for each call that our partner developer would be making to our proxy.
Do we have different APIs to get such data ?
Have posted my query as a new thread as this original query for this is resolved