GET /v2/monitoring/metrics/droplet/bandwidth
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).
Servers
- https://api.digitalocean.com
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
end |
String | Yes |
UNIX timestamp to end metric window. |
direction |
String | Yes |
The traffic direction. Valid values:
|
host_id |
String | Yes |
The droplet ID. |
interface |
String | Yes |
The network interface. Valid values:
|
start |
String | Yes |
UNIX timestamp to start metric window. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.