metrics_droplet_bandwidths
Creates, updates, deletes, gets or lists a metrics_droplet_bandwidths
resource.
Overview
Name | metrics_droplet_bandwidths |
Type | Resource |
Id | digitalocean.monitoring.metrics_droplet_bandwidths |
Fields
Name | Datatype | Description |
---|---|---|
data | object | |
status | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
monitoring_get_droplet_bandwidth_metrics | SELECT | direction, end, host_id, interface, start | To retrieve bandwidth metrics for a given Droplet, send a GET request to /v2/monitoring/metrics/droplet/bandwidth . Use the interface query parameter to specify if the results should be for the private or public interface. Use the direction query parameter to specify if the results should be for inbound or outbound traffic. The metrics in the response body are in megabits per second (Mbps). |
SELECT
examples
To retrieve bandwidth metrics for a given Droplet, send a GET request to /v2/monitoring/metrics/droplet/bandwidth
. Use the interface
query parameter to specify if the results should be for the private
or public
interface. Use the direction
query parameter to specify if the results should be for inbound
or outbound
traffic. The metrics in the response body are in megabits per second (Mbps).
SELECT
data,
status
FROM digitalocean.monitoring.metrics_droplet_bandwidths
WHERE direction = '{{ direction }}'
AND end = '{{ end }}'
AND host_id = '{{ host_id }}'
AND interface = '{{ interface }}'
AND start = '{{ start }}';