Skip to content

DQL Data Query



POST /api/v1/df/{workspace_uuid}/query_data

Overview

Route Parameters

Parameter Name Type Required Description
workspace_uuid string Y The UUID of the workspace to query

Body Request Parameters

Parameter Name Type Required Description
sceneUUID string Scene UUID
Allow empty: False
dashboardUUID string Dashboard UUID
Allow empty: False
testTimeout float Timeout for creating ban operations (effective in debug mode)
Allow empty: False
queries array Multi-command queries, content is a list of query objects
Allow empty: False
fieldTagDescNeeded boolean Whether field or tag description information is needed
Allow empty: False
expensiveQueryCheck boolean Whether to check for wildcard left * situations
Allow empty: False
dataQueryPreview json Data access preview function
Allow empty: False
dataQueryPreview.maskFields string Masked fields, multiple fields separated by commas
Example: message,host
Allow empty: False
Allow empty string: True
dataQueryPreview.reExprs array Regular expressions
Example: [{'name': 'jjj', 'reExpr': 'ss', 'enable': 0}, {'name': 'lll', 'reExpr': 'ss', 'enable': 1}]
Allow empty: False

Parameter Supplementary Notes

Query Description


  1. Field description for queries array elements
Parameter Name type Required Description
sceneUUID string Y Scene UUID
dashboardUUID string Y Dashboard UUID
queries[*] string Y Query list
  1. DQL JSON structure parameter description (queries[*] elements)

  2. Basic Fields *

Parameter Name type Required Description
qtype string Y Type of query statement
dql: indicates DQL type query statement;
promql: indicates PromQL type query statement
query json Y Query structure
query.q string Query statement consistent with qtype type, e.g., DQL or PromQL query statement
query.promqlType enum Effective when qtype=promql, PromQL query type, optional values instantQuery and rangeQuery, default value is rangeQuery
query.highlight boolean Whether to display highlighted data
query.timeRange array Timestamp list for time range
query.disableMultipleField bool Whether to enable single-column mode, default is true
query.showLabel bool Whether to display object labels, default none
query.funcList array Re-aggregate to modify DQL return value, note: when disableMultipleField=False, this parameter is invalid
query.slimit integer Time series group size, only effective for metric queries
query.soffset integer Time series group offset
query.limit integer Pagination size
query.offset integer Pagination offset
query.orderby array Sorting list, {fieldName:method}, note: sorting for measurement queries only supports fieldName=time; method in ["desc", "asc"]; note: sorting for measurement queries only supports fieldName=time
query.sorderby array Sorting list, sorderby's column is an expression, supports all aggregation functions returning a single value: min max last avg p90 p95 count, {fieldName:method}, structure consistent with orderby
query.order_by array Sorting list, structure is [{"column": "field", "order": "DESC"}], Doris engine compatibility field
query.sorder_by array Sorting list, structure is [{"column": "field", "order": "DESC"}], Doris engine compatibility field
query.density string Response point density, priority lower than autoDensity and higher than density set in DQL statement
query.interval integer Unit is seconds, time slice interval, used to calculate response point count; calculated point count less than or equal to density=high point count is effective, otherwise invalid
query.search_after array Pagination marker, returned by the current interface, used for passing in the next request
query.maxPointCount integer Maximum point count
query.workspaceUUID string UUID of the workspace to query
query.output_format string lineprotocol: line protocol output, default if not filled, keeps the existing output format unchanged
query.cursor_time integer Segmented query threshold: for the first segmented query, cursor_time needs to be set to end_time; for subsequent segmented queries, cursor_time needs to be set to next_cursor_time from the response
query.cursor_token string Pagination query token (returned by the engine cursor_token value): during pagination query, the next_cursor_token returned from the last query needs to be set as the cursor_token for this query; requests without cursor_token may cause data with the same timestamp to be skipped during pagination.
query.disable_sampling bool Sampling disable switch, default value is false
  • Response point density density parameter value description *
Optional Value Description
lower Lower, 60 points
low Low, 180 points
medium Medium, 360 points
high High, 720 points
  • Note the priority of point density parameters, maximum density density[high] * maxPointCount > interval > density > control parameters in DQL statement

  • Common Query Descriptions

  • Unrecovered Event Query

Response


Feedback

Is this page helpful? ×