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_