app_memory_percentage_metrics
Creates, updates, deletes, gets or lists an app_memory_percentage_metrics
resource.
Overview
Name | app_memory_percentage_metrics |
Type | Resource |
Id | digitalocean.monitoring.app_memory_percentage_metrics |
Fields
The following fields are returned by SELECT
queries:
- monitoring_get_app_memory_percentage_metrics
The response will be a JSON object with a key called data
and status
.
Name | Datatype | Description |
---|---|---|
data | object | |
status | string | (example: success) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
monitoring_get_app_memory_percentage_metrics | select | app_id , start , end | app_component | To retrieve memory percentage metrics for a given app, send a GET request to /v2/monitoring/metrics/apps/memory_percentage . |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
app_id | string | The app UUID. (example: 2db3c021-15ad-4088-bfe8-99dc972b9cf6) |
end | string | UNIX timestamp to end metric window. (example: 1620705417) |
start | string | UNIX timestamp to start metric window. (example: 1620683817) |
app_component | string | The app component name. (example: sample-application) |
SELECT
examples
- 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
.
SELECT
data,
status
FROM digitalocean.monitoring.app_memory_percentage_metrics
WHERE app_id = '{{ app_id }}' -- required
AND start = '{{ start }}' -- required
AND end = '{{ end }}' -- required
AND app_component = '{{ app_component }}';