dots.v2.monitoring.metrics.droplet.bandwidth.get()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.monitoring.metrics.droplet.bandwidth.get(requestConfiguration?: RequestConfiguration<BandwidthRequestBuilderGetQueryParameters>): Promise<undefined | Metrics>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
hostIdstring requiredExample:
17209102The droplet ID.
interfacestring requiredThe network interface.
directionstring requiredThe traffic direction.
startstring requiredExample:
1620683817UNIX timestamp to start metric window.
endstring requiredExample:
1620705417UNIX 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.