The metrics
endpoint can be used to get information about your application's analytics such as the bandwidth, build time, average response request and more.
Total data that is transmitted in the selected time period.
Successfully retrieved application bandwidth.
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
No application or database found with the provided unique ID.
Error occurred while retrieving application bandwidth
{- "app": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "display_name": "my-app",
- "metrics": {
- "timeframe": {
- "start": "1679587045511",
- "end": "1679587045511"
}, - "bandwidth": [
- {
- "time": "1679587045511",
- "value": "value"
}
]
}
}
}
Total time your application has taken to be built.
Successfully retrieved application build time.
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
No application or database found with the provided unique ID.
Error occurred while retrieving application build time
{- "app": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "display_name": "my-app",
- "metrics": {
- "timeframe": {
- "start": "1679587045511",
- "end": "1679587045511"
}, - "build_time": [
- {
- "data": [
- {
- "time": "1679587045511",
- "value": 127
}
], - "resource_type": "standard"
}
]
}
}
}
Total time the application is running after being built and deployed.
Successfully retrieved application run time.
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
No application or database found with the provided unique ID.
Error occurred while retrieving application build time
{- "app": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "display_name": "my-app",
- "metrics": {
- "timeframe": {
- "start": "1679587045511",
- "end": "1679587045511"
}, - "runtime": [
- {
- "process_id": "1679587045511",
- "seconds": "43223",
- "plan": "s1",
- "start_time": "1679587045511",
- "end_time": "1679587045511"
}
]
}
}
}
Total average requests per minute.
Successfully retrieved application average HTTP requests.
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
No application or database found with the provided unique ID.
Error occurred while retrieving application average HTTP requests
{- "app": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "display_name": "my-app",
- "metrics": {
- "timeframe": {
- "start": "1679587045511",
- "end": "1679587045511"
}, - "http_requests": [
- {
- "time": "1679587045511",
- "value": "value"
}
]
}
}
}
Average request response time. If "percent" is set, the P50 or P95 response time will be returned.
Successfully retrieved application average response time.
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
No application or database found with the provided unique ID.
Error occurred while retrieving application average response time
{- "app": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "display_name": "my-app",
- "metrics": {
- "timeframe": {
- "start": "1679587045511",
- "end": "1679587045511"
}, - "response_time": [
- {
- "time": "1679587045511",
- "value": "977"
}
]
}
}
}
Slowest response shows you exactly which responses are the slowest on your application.
Successfully retrieved application slowest requests.
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
No application or database found with the provided unique ID.
Error occurred while retrieving application slowest requests.
{- "app": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "display_name": "my-app",
- "metrics": {
- "timeframe": {
- "start": "1679587045511",
- "end": "1679587045511"
}, - "response_time": [
- {
- "time": "1679587045511",
- "value": "977"
}
], - "slowest_requests": [
- {
- "avg_response_time_ms": 120,
- "client_request_path": "/api",
- "request_count": 100
}
]
}
}
}
An average of the total CPU usage for the selected time period, as a percentage of instance’s CPU resources.
Successfully retrieved application CPU usage.
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
No application or database found with the provided unique ID.
Error occurred while retrieving application CPU usage
{- "app": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "app_name": "my-app",
- "processes": [
- {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "process_name": "web",
- "cpu_limit": 1,
- "metrics": {
- "timeframe": {
- "start": "1679587045511",
- "end": "1679587045511"
}, - "cpu_usage": [
- {
- "time": "1679587045511",
- "value": "value"
}
]
}
}
]
}
}
An average of the total Memory (RAM) usage for the selected time period.
Successfully retrieved application memory usage.
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
No application or database found with the provided unique ID.
Error occurred while retrieving application memory usage
{- "app": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "app_name": "my-app",
- "processes": [
- {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "process_name": "web",
- "memory_limit": 1,
- "metrics": {
- "timeframe": {
- "start": "1679587045511",
- "end": "1679587045511"
}, - "memory_usage": [
- {
- "time": "1679587045511",
- "value": "value"
}
]
}
}
]
}
}