dots.v2.insights.query.byRegion().prom.api.v1.query_range.post()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.v2.insights.query.byRegion(region).prom.api.v1.query_range.post(body: Query_rangePostRequestBody, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Prom_query_range_response>

Description

To evaluate a PromQL expression over a time range, send a POST request to /v2/insights/query/{region}/prom/api/v1/query_range with application/x-www-form-urlencoded parameters.

Parameters

Path Parameters

region string required

Example: nyc3

The datacenter region slug for the query.

Request Body

The request body uses application/x-www-form-urlencoded.

query string required

Example: do.droplets.cpu_time

A PromQL expression to evaluate.

start string required

Example: 1620683817

Start timestamp. RFC3339 or UNIX timestamp.

end string required

Example: 1620705417

End timestamp. RFC3339 or UNIX timestamp.

step string required

Example: 15s

Query resolution step width.

timeout string optional

Example: 30s

Optional evaluation timeout duration.

Response Example

Show Response Example
{
  "status": "success",
  "data": {
    "resultType": "matrix",
    "result": [
      {
        "metric": {
          "__name__": "do_droplets_cpu_time"
        },
        "values": [
          [
            1620683817,
            "1"
          ],
          [
            1620683832,
            "1"
          ]
        ]
      }
    ]
  }
}

More Information

See /v2/insights/query/{region}/prom/api/v1/query_range in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.