latestOpenAPI 3.1.02026-08-1076186318.8 KB
ab648a80ca4d
Application Metrics
Run Time
Total time the application is running after being built and deployed.
get/applications/{id}/metrics/run-time
Path parameters
idstring required
Example:54fb80af-576c-4fdc-ba4f-b596c83f15a1
Query parameters
interval_in_secondsinteger required
Example:3600
timeframe_startstring date-time required
Example:2021-07-22T18:10:45.511Z
timeframe_endstring date-time required
Example:2021-07-22T18:10:45.511Z
Response
Successfully retrieved application run time.
Example response
{
"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"
}
]
}
}
}