Skip to main content
Infrastructure/Collects
POSTInfrastructureSince 1.0SynchronousAuth Required

UnifiedQuery

Execute a unified query across metrics and logs data sources.

Execution Availability

Try It Out

Submit a mock request using the current auth context and example-driven inputs.

Request Inputs

Body Fields

  • queryStringRequired

    Query expression targeting both metrics and logs data sources

    Example: cpu_usage{host="server-01"} > 80

Responses

200 OK

On success, this API returns the following response structure.

  • dataObject

    The data value

    Example: (nested object)

Endpoint

POST/api/v1/collects/query

/api/v1/collects/query

Operation ID

UnifiedQuery

Permalink

Request Example

curl -X POST '{host}/api/v1/collects/query' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"query":"cpu_usage{host=\"server-01\"} > 80"}'

Response Example

200
{
  "data": null
}

Change History

This API has no change history records yet.

View all change history