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
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.
timestring optionalExample:
1620683817Evaluation timestamp. RFC3339 or UNIX timestamp.
timeoutstring optionalExample:
30sOptional evaluation timeout duration.
Response Example
More Information
See /v2/insights/query/{region}/prom/api/v1/query in the API reference for additional detail on responses, headers, parameters, and more.