DigitalOcean-public.v2-new_Monitoring
Get App Memory Percentage Metrics
To retrieve memory percentage metrics for a given app, send a GET request to /v2/monitoring/metrics/apps/memory_percentage.
get/v2/monitoring/metrics/apps/memory_percentage
Query parameters
app_idstring required
The app UUID.
app_componentstring
The app component name.
startstring required
UNIX timestamp to start metric window.
endstring required
UNIX timestamp to end metric window.
Response
The response will be a JSON object with a key called data and status.
Example response
{
"data": {
"result": [
{
"metric": {
"host_id": "19201920"
},
"values": [
[
1435781430,
"1"
],
[
1435781445,
"1"
]
]
}
],
"resultType": "matrix"
},
"status": "success"
}