Download OpenAPI specification:Download
API for querying Application Analytics.
The API for querying Application Analytics. Application Analytics is only available for private portals.
Query
Object describing the query sent to analytics API.
| start_ms required | integer Unix timestamp in milliseconds specifying the lower bound to return data for the query, inclusive. |
| end_ms required | integer Unix timestamp in milliseconds specifying upper bound to return data for the query, inclusive. |
| metrics required | Array of strings = 1 items Items Enum: "REQUEST_COUNT" "REQUEST_PER_MINUTE" "RESPONSE_LATENCY_P99" "RESPONSE_LATENCY_P95" "RESPONSE_LATENCY_P50" "RESPONSE_SIZE_P99" "RESPONSE_SIZE_P95" "RESPONSE_SIZE_P50" "REQUEST_SIZE_P99" "REQUEST_SIZE_P95" "REQUEST_SIZE_P50" A property of your API (such as request count or latency) that you wish to query on. Your chosen metric is aggregated within the specified dimensions, meaning that if you query 'request count by application', you'll receive the total number of requests each application received within the given time frame. Some metrics, such as latency and response size, have more complicated aggregations: selecting P99 will result in the 99th percentile of the chosen metric. |
| dimensions | Array of strings [ 0 .. 2 ] items Default: [] Items Enum: "API_PRODUCT_VERSION" "APPLICATION" "STATUS_CODE" "STATUS_CODE_GROUPED" "TIME" The dimensions for the query. A query may have up to 2 dimensions, including time. If no dimensions are provided, the report will simply return the provided metric aggregated across all available data. |
| granularity_ms | integer Default: 86400000
|
Array of any Default: [] |
{- "start_ms": 1691158080000,
- "end_ms": 1691158980000,
- "metrics": [
- "REQUEST_PER_MINUTE"
], - "filter": [
- {
- "dimension": "API_PRODUCT_VERSION",
- "type": "IN",
- "values": [
- "417e47e8-ae7b-48a1-9b34-3f6835161de1"
]
}
]
}{- "meta": {
- "dimensions": { },
- "metric_names": [
- "REQUEST_PER_MINUTE"
], - "metric_units": {
- "REQUEST_PER_MINUTE": "count/minute"
}, - "start_ms": 1691158080000,
- "end_ms": 1691158980000,
- "granularity": 900000,
- "truncated": false,
- "query_id": "portal-api-3c0abb98-90bd-4e80-a495-ac268acc493e"
}, - "records": [
- {
- "event": {
- "REQUEST_PER_MINUTE": 1340.8666666666666
}, - "timestamp": "2023-08-04T14:08:00.000Z"
}
]
}