droplet_memory_cached_metrics
Creates, updates, deletes, gets or lists a droplet_memory_cached_metrics
resource.
Overview
Name | droplet_memory_cached_metrics |
Type | Resource |
Id | digitalocean.monitoring.droplet_memory_cached_metrics |
Fields
The following fields are returned by SELECT
queries:
- monitoring_get_droplet_memory_cached_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_droplet_memory_cached_metrics | select | host_id , start , end | To retrieve cached memory metrics for a given droplet, send a GET request to /v2/monitoring/metrics/droplet/memory_cached . |
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 |
---|---|---|
end | string | UNIX timestamp to end metric window. (example: 1620705417) |
host_id | string | The droplet ID. (example: 17209102) |
start | string | UNIX timestamp to start metric window. (example: 1620683817) |
SELECT
examples
- monitoring_get_droplet_memory_cached_metrics
To retrieve cached memory metrics for a given droplet, send a GET request to /v2/monitoring/metrics/droplet/memory_cached
.
SELECT
data,
status
FROM digitalocean.monitoring.droplet_memory_cached_metrics
WHERE host_id = '{{ host_id }}' -- required
AND start = '{{ start }}' -- required
AND end = '{{ end }}' -- required;