How many times the error occur in a time period?

Hi Team, I want to track the occurrence of error "messaging.adaptors.http.flow.ServiceUnavailable" in Apigee. Is there any API that can provide us count for a given date range?

0 2 194
2 REPLIES 2

Is there a query/api which can give us how many times an error occured?

If you have a SaaS licence, you can leverage the API monitoring APIs (or even its dashboard).

The Get Traffic Metrics API should do the trick. For instance, this call will return the number of such faults in a given org/env in the last hour.

GET /metrics/traffic?org={{your_org}}&interval=1m&groupBy=faultCodeName&env={{your_env}}&from=-1h&select=count&faultCodeName=messaging.adaptors.http.flow.ServiceUnavailable