Skip to main content

metrics_droplet_bandwidths

Creates, updates, deletes, gets or lists a metrics_droplet_bandwidths resource.

Overview

Namemetrics_droplet_bandwidths
TypeResource
Iddigitalocean.monitoring.metrics_droplet_bandwidths

Fields

NameDatatypeDescription
dataobject
statusstring

Methods

NameAccessible byRequired ParamsDescription
monitoring_get_droplet_bandwidth_metricsSELECTdirection, end, host_id, interface, startTo 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 }}';