Skip to main content
Infrastructure/Collects

UnifiedQuery

Execute a unified query across metrics and logs data sources.

POST/api/v1/collects/query

Operation ID

UnifiedQuery

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Body Fields

  • query
    String

    Query expression targeting both metrics and logs data sources

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

Responses

200 OK

Successful response

Content-Type: application/json

Response body root type: object

============================================================================ Common Messages ============================================================================ StructResponse wraps google.protobuf.Struct for dynamic/polymorphic payloads.

  • data
    Object

    The data value