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
regionstring requiredExample:
nyc3The datacenter region slug for the query.
Request Body
The request body uses application/x-www-form-urlencoded.
querystring requiredExample:
do.droplets.cpu_timeA PromQL expression to evaluate.
startstring requiredExample:
1620683817Start timestamp. RFC3339 or UNIX timestamp.
endstring requiredExample:
1620705417End timestamp. RFC3339 or UNIX timestamp.
stepstring requiredExample:
15sQuery resolution step width.
timeoutstring optionalExample:
30sOptional evaluation timeout duration.
Response Example
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.