pydo.monitoring.get_droplet_bandwidth_metrics()
Generated on 3 Aug 2026
from pydo version
v0.40.0
Usage
client.monitoring.get_droplet_bandwidth_metrics(
host_id="17209102",
interface="private",
direction="inbound",
start="1620683817",
end="1620705417",
)Description
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).
Parameters
host_idstring requiredThe droplet ID.
interfacestring requiredThe network interface.
directionstring requiredThe traffic direction.
startstring requiredUNIX timestamp to start metric window.
endstring requiredUNIX timestamp to end metric window.
Request Sample
Response Example
More Information
See /v2/monitoring/metrics/droplet/bandwidth in the API reference for additional detail on responses, headers, parameters, and more.