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

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

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

Description

To evaluate a PromQL expression at a single point in time, send a POST request to /v2/insights/query/{region}/prom/api/v1/query 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.

time string optional

Example: 1620683817

Evaluation timestamp. RFC3339 or UNIX timestamp.

timeout string optional

Example: 30s

Optional evaluation timeout duration.

Response Example

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

More Information

See /v2/insights/query/{region}/prom/api/v1/query 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.