@digitalocean/dots - v1.0.1
    Preparing search index...

    Builds and executes requests for operations under /v2/monitoring/metrics/droplet/bandwidth

    interface BandwidthRequestBuilder {
        get(
            requestConfiguration?: RequestConfiguration<
                BandwidthRequestBuilderGetQueryParameters,
            >,
        ): Promise<undefined | Metrics>;
        toGetRequestInformation(
            requestConfiguration?: RequestConfiguration<
                BandwidthRequestBuilderGetQueryParameters,
            >,
        ): RequestInformation;
        withUrl(rawUrl: string): BandwidthRequestBuilder;
    }

    Hierarchy

    Index

    Methods

    • 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

      Returns Promise<undefined | Metrics>

      error when the service returns a 401 status code

      error when the service returns a 429 status code

      error when the service returns a 500 status code

      error when the service returns a 4XX or 5XX status code

    • 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

      Returns RequestInformation

    • Parameters

      • rawUrl: string

      Returns BandwidthRequestBuilder