Perform analytics on API data
Perform analytics on API data
Perform analytics on API data based on the provided query parameters.
Query parameters
Start timestamp (epoch millis)
End timestamp (epoch millis)
Interval in milliseconds
Field to aggregate on
Size of the result set
The type of the analytics
Type of analytics (STATS, COUNT, HISTOGRAM, GROUP_BY)
Ranges for aggregation, e.g. "100:199;200:299"
Aggregations to apply, e.g. "avg:response-time,avg:api-response-time"
Parameter format <descending '-'><type 'avg' or 'count'>:<field>.
Example: -avg:gateway-response-time-ms will sort descending by average response time,
count:_key will order ascending by count in bucket.
Custom search query
Optional filters like plan-id, application-id applied in the dashboard, e.g. "plan-id:xyz,application-id:abc"
Response
Successful analytics response
Example response
{
"analyticsType": "STATS"
}