Skip to content

DQL Asynchronous Data Query



POST /api/v1/df/asynchronous/query_data
GET /api/v1/df/asynchronous/query_data

Overview

Submit or poll asynchronous data queries for a workspace. Supports standard DQL/PromQL and QueryHub batches.

Prerequisites and Usage Steps

This API does not support freeEdition workspaces; confirm the workspace version first. Standard queries are GET-compatible: put the same complete object as POST into the URL-encoded body parameter; QueryHub supports only POST JSON. Use an API Key that has query permission for the current workspace; POST application/json is always recommended. Obtain standard measurements and fields from Measurement List and Measurement Schema; for query syntax, see Standard Query v1. Omit async_id on the first request; when an item in the response has is_running=true, return async_id unchanged only for that item. Standard queries retain the original query; QueryHub polling can pass only qtype=queryhub, uuid, and async_id. Process items one by one; do not resubmit completed items, to avoid accidentally reopening queries.

Standard queries may wait synchronously before switching to asynchronous mode. The repository wait threshold defaults to 50 seconds, and the total search budget defaults to 2 minutes; sites can override these. async_timeout adjusts the conversion threshold; the Front search_timeout field cannot be used to change this OpenAPI budget. External function queries may also wait briefly for cache, by default for up to 10 seconds with a check every 0.5 seconds; do not assume the task returns immediately. Hosted outer_datasource query channels are denied access in OpenAPI; QueryHub uses a separate protocol.

QueryHub requires an administrator to have configured and enabled the data source. A maximum of 20 query items is supported, and the entire workspace supports a maximum of 20 active tasks. pending only means the task has been registered; if task delivery fails, it may wait for background redelivery. Tasks are bound to the original workspace and original API Key, expire 300 seconds after submission, and are not extended by polling or completion. Poll only items with is_running=true; QueryHub clears async_id in terminal states, and polling must stop for standard failed items even if the ID is non-empty. HTTP 200 and success=true only indicate that the batch returned successfully, not that each query succeeded; you must check query_error/errorInfo, query_status, and warnings.

You can cancel QueryHub tasks submitted by the current Key through Cancel Asynchronous Query; this cancellation entry does not accept task IDs for standard DQL. Cancellation marks and discards results but does not guarantee interruption of an underlying query that has already started executing. Cursors in query results are used only to continue paging through data for the same query and cannot be treated as asynchronous task IDs.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to obtain or enter: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace.

Query Request Parameters

Parameter Type Required Description
body string Complete JSON object string for standard GET; QueryHub does not accept this method and only supports POST JSON.
Example: {"queries": [{"qtype": "dql", "async_timeout": "5s", "query": {"q": "M::`cpu`:(`usage_idle`)", "timeRange": [1785427200000, 1785430800000], "limit": 5}}]}
How to obtain or enter: Used only for standard GET queries: serialize the same complete JSON object once and URL-encode it, for example with curl --data-urlencode.

Body Request Parameters

Parameter Type Required Description
queries[*] object One query item; qtype determines the protocol.
Example: {"qtype": "dql", "query": {"q": "M::`cpu`:(`usage_idle`)", "timeRange": [1785427200000, 1785430800000]}}
How to obtain or enter: Build the object according to the standard DQL or QueryHub examples on this page.
queries[*].qtype string Standard queries default to dql and also support promql and configured external function types; QueryHub must be queryhub, and polling must also retain it.
Example: dql
How to obtain or enter: Select according to the actual query language. Hosted outer_datasource channels are denied access in this OpenAPI; do not copy Front capabilities directly.
queries[*].uuid string Optional client marker for QueryHub, echoed in the response; not a task ID and not used for polling.
Example: cpu-query
How to obtain or enter: Generate a stable query item identifier on the caller side to match results.
queries[*].async_id string Omit or use an empty string for the first query; return the original response ID only when polling the same item that is still running. QueryHub uses the qhtask_ prefix; standard IDs cannot be mixed.
Example: <async-id-from-response>
How to obtain or enter: Take content.data[].async_id for that item; the original workspace and original API Key must be retained.
queries[*].async_timeout string Wait threshold for a standard query to switch from synchronous waiting to asynchronous; if omitted, the site default is used, with a repository default of 50s. This is not the total task execution budget and is not used by QueryHub.
Example: 5s
How to obtain or enter: Choose a duration with a unit according to the caller's waiting capacity; the actual supported range depends on the current query engine.
queries[*].query object Provide the original query object for both the first standard request and polling. Required for the first QueryHub request and can be omitted during polling; subfields for the two protocols are as follows.
Example: {"q": "M::`cpu`:(`usage_idle`)", "timeRange": [1785427200000, 1785430800000], "limit": 5}
How to obtain or enter: Determine the query statement and time from the business data scope; the data source ID is provided by the administrator.
queries[*].query.q string Standard DQL/PromQL statement; standard queries should provide a valid non-empty statement.
Example: M::`cpu`:(`usage_idle`)
How to obtain or enter: Obtain actual measurements and fields from Measurement List and Measurement Schema, and validate the statement in the query tool first.
queries[*].query.timeRange array Start and end time for standard queries; a two-item Unix millisecond array is recommended; the two ends must not mix units.
Example: [1785427200000, 1785430800000]
How to obtain or enter: Use business event time or JavaScript Date.getTime() to select the query interval.
queries[*].query.timeRange[*] integer Timestamp with the same precision; Unix milliseconds are recommended.
Example: 1785427200000
How to obtain or enter: Use integers in the same unit for start and end.
queries[*].query.limit integer Record count limit for standard queries; converted to an integer; does not represent the final maximum readable rows for every engine.
Example: 100
How to obtain or enter: Choose a positive integer based on response body requirements; start with a small batch.
queries[*].query.offset integer Record offset for standard queries; used with limit; backend support depends on the query.
Example: 0
How to obtain or enter: Enter the number of records already read; the first page is 0.
queries[*].query.slimit integer Series count limit for standard queries.
Example: 10
How to obtain or enter: Choose the required number of series when there are too many aggregation groups.
queries[*].query.soffset integer Series offset for standard queries.
Example: 0
How to obtain or enter: Enter the number of series already read.
queries[*].query.tz string IANA time zone for standard queries; defaults to Asia/Shanghai; used for time slicing/alignment.
Example: Asia/Shanghai
How to obtain or enter: Use the actual business time zone identifier.
queries[*].query.interval number Time slice value for standard queries; must be exactly convertible to a positive integer number of milliseconds. Unit-suffixed strings such as 60s are not supported.
Example: 60
How to obtain or enter: Enter a numeric value for the desired slicing granularity and specify s/ms with interval_unit.
queries[*].query.interval_unit string Slice unit, only s or ms; defaults to s.
Example: s
How to obtain or enter: Use s for seconds and ms for milliseconds.
queries[*].query.align_time boolean Switch for aligning the start time of standard query slices; omit to let the engine use its default behavior.
Example: false
How to obtain or enter: Use when aggregation boundaries need to be aligned by time zone.
queries[*].query.density string Point density name for standard queries, defined by site configuration; repository defaults are lower/low/medium/high corresponding to 60/180/360/720.
Example: medium
How to obtain or enter: Prefer explicit control with interval or maxPointCount; confirm the values supported by the site before using density.
queries[*].query.maxPointCount integer Maximum number of points for standard queries; when both this and the point count calculated by interval exist, the smaller value is used.
Example: 360
How to obtain or enter: Choose a positive integer based on the number of points that can be displayed in the chart.
queries[*].query.workspaceUUID string Single authorized target workspace for standard queries; if not passed, the current workspace is used. Prohibited for QueryHub.
Example: wksp_target
How to obtain or enter: Obtain the actual target workspace UUID from the workspace sharing authorization configuration.
queries[*].query.workspaceUUIDs array<string> Multiple authorized target workspaces for standard queries; takes precedence over a single workspaceUUID; prohibited for QueryHub.
Example: ["wksp_target"]
How to obtain or enter: Obtain the workspace list for the same site from the workspace sharing authorization configuration.
queries[*].query.workspaceUUIDs[*] string One authorized workspace UUID.
Example: wksp_target
How to obtain or enter: Copy it from the authorized workspace information; do not use the display name.
queries[*].query.targetRegion string Target site for standard cross-workspace queries; the entire batch supports only one site. Prohibited for QueryHub.
Example: <authorized-site-code>
How to obtain or enter: The site code is provided by the cross-site authorization configuration; do not guess it from the domain name.
queries[*].query.indexes array<string> Array of log index names for standard log queries; must satisfy the current Key and index restrictions.
Example: ["default"]
How to obtain or enter: Read an existing name from the current workspace's log index configuration.
queries[*].query.indexes[*] string One actual log index name.
Example: default
How to obtain or enter: Copy the configured index name.
queries[*].query.conditions string Additional WHERE conditions for standard queries; combined with filter conditions using AND; do not place unescaped external input here.
Example: env = 'production'
How to obtain or enter: Construct a condition expression that conforms to the query language based on actual fields.
queries[*].query.filter object Additional tag/field conditions for standard queries; the two arrays are merged into condition formatting.
Example: {"tags": [], "fields": []}
How to obtain or enter: Complex filters can be written directly in the validated q or conditions.
queries[*].query.filter.tags array<object> Array of tag filter conditions.
Example: []
How to obtain or enter: Use the condition object structure on this page and construct it based on actual tag names.
queries[*].query.filter.fields array<object> Array of field filter conditions.
Example: []
How to obtain or enter: Use the condition object structure on this page and construct it based on actual field names.
queries[*].query.search_after array Legacy segmented pagination cursor for standard queries; used only for continuing pages of the original query.
Example: []
How to obtain or enter: Copy the search_after from the response for that item unchanged; omit it when not returned.
queries[*].query.cursor_time integer Start time of the next segment for standard segmented queries; must be continued as a pair with cursor_token.
Example: 1785430800000
How to obtain or enter: Take next_cursor_time from the response for that item; a negative value means there are no more records.
queries[*].query.cursor_token string Segmented pagination marker for standard queries, preventing records with the same time from being skipped.
Example: <next-cursor-token>
How to obtain or enter: Copy next_cursor_token from the response for that item unchanged and keep the original filters and sorting.
queries[*].query.disable_sampling boolean Switch to disable segmentation for standard queries; when true, cursor_time does not take effect.
Example: false
How to obtain or enter: Usually omitted; set to true only when segmentation must be explicitly disabled.
queries[*].query.disable_streaming_aggregation boolean Disables streaming aggregation for standard queries; defaults to false; the actual engine and context may override it.
Example: false
How to obtain or enter: Generally keep the default; choose this when troubleshooting or when full aggregation is explicitly required.
queries[*].query.ignore_cache boolean Engine pass-through switch for standard queries to ignore the query cache.
Example: false
How to obtain or enter: Use according to the site engine's capabilities when the underlying data needs to be queried again.
queries[*].query.disable_truncate boolean Engine pass-through switch for standard queries to disable response truncation; does not bypass backend resource limits.
Example: false
How to obtain or enter: Usually omitted; if complete results are truly needed, first confirm the data volume and engine support.
queries[*].query.disable_var_expansion boolean Variable expansion disable switch that continues to be passed through only for ScopeDB query paths.
Example: false
How to obtain or enter: Provide only when an existing ScopeDB configuration explicitly requires it; omit for other engines.
queries[*].query.enable_preflight_estimate boolean Preflight estimation switch for standard queries, passed directly to the engine.
Example: false
How to obtain or enter: Provide only when the target engine supports it and estimation is needed.
queries[*].query.disallow_large_query boolean Switch to restrict high-cost standard queries; defaults to false.
Example: false
How to obtain or enter: Use when you want the engine to reject high-cost requests; actual determination follows site engine rules.
queries[*].query.scan_completed boolean Batch scan progress marker for standard indexes; defaults to false.
Example: false
How to obtain or enter: Continue querying with the original return value only when the engine returns batch scan status.
queries[*].query.scan_index string Batch scan position marker for standard indexes; defaults to an empty string.
Example: <scan-index>
How to obtain or enter: Use only a marker returned by the same query engine; omit it for the first query.
queries[*].query.promqlType string Subtype for standard qtype=promql is instantQuery or rangeQuery, passed to the standard PromQL engine; different from QueryHub native.operation.
Example: rangeQuery
How to obtain or enter: Configure according to the instant/range mode used by the actual PromQL query.
queries[*].query.output_format string Standard queries can request output forms supported by the engine; lineprotocol skips regular result conversion and does not guarantee the series structure.
Example: lineprotocol
How to obtain or enter: Standard clients should omit it and use the unified series response.
queries[*].query.funcList array List of post-processing functions for standard query results; affects the final structure.
Example: []
How to obtain or enter: Usually omitted; can only reuse validated result conversion configurations; it is not a list of DQL statement functions.
queries[*].query.needclearnone boolean Whether to clear empty values during standard result conversion; defaults to true.
Example: true
How to obtain or enter: Set to false if you want to retain engine empty values; the final structure still depends on result conversion.
queries[*].query.filter.tags[*] object A filter condition; nested conditions can also be constructed with filters/condition.
Example: {"name": "env", "operation": "=", "value": ["production"], "condition": "and"}
How to obtain or enter: Select the name and value from actual tags or fields.
queries[*].query.filter.tags[*].name string Field or tag name.
Example: env
How to obtain or enter: Enter according to actual filtering needs and validate with a small amount of data first.
queries[*].query.filter.tags[*].operation string Comparison operator, such as =, !=, in, not in, match; subject to target DQL support.
Example: =
How to obtain or enter: Enter according to actual filtering needs and validate with a small amount of data first.
queries[*].query.filter.tags[*].value array Array of values to compare.
Example: ["production"]
How to obtain or enter: Enter according to actual filtering needs and validate with a small amount of data first.
queries[*].query.filter.tags[*].condition string Logic connecting this condition with other conditions in the same group; and/or recommended.
Example: and
How to obtain or enter: Enter according to actual filtering needs and validate with a small amount of data first.
queries[*].query.filter.tags[*].filters array<object> Optional nested condition array; each item reuses the same condition object.
Example: []
How to obtain or enter: Enter according to actual filtering needs and validate with a small amount of data first.
queries[*].query.filter.fields[*] object A filter condition; nested conditions can also be constructed with filters/condition.
Example: {"name": "env", "operation": "=", "value": ["production"], "condition": "and"}
How to obtain or enter: Select the name and value from actual tags or fields.
queries[*].query.filter.fields[*].name string Field or tag name.
Example: env
How to obtain or enter: Enter according to actual filtering needs and validate with a small amount of data first.
queries[*].query.filter.fields[*].operation string Comparison operator, such as =, !=, in, not in, match; subject to target DQL support.
Example: =
How to obtain or enter: Enter according to actual filtering needs and validate with a small amount of data first.
queries[*].query.filter.fields[*].value array Array of values to compare.
Example: ["production"]
How to obtain or enter: Enter according to actual filtering needs and validate with a small amount of data first.
queries[*].query.filter.fields[*].condition string Logic connecting this condition with other conditions in the same group; and/or recommended.
Example: and
How to obtain or enter: Enter according to actual filtering needs and validate with a small amount of data first.
queries[*].query.filter.fields[*].filters array<object> Optional nested condition array; each item reuses the same condition object.
Example: []
How to obtain or enter: Enter according to actual filtering needs and validate with a small amount of data first.
queries[*].query.datasourceId string Identifier of an enabled QueryHub data source; not a connection string or workspace UUID. Total length 1 to 128 characters, starts with a letter or digit, followed only by letters, digits, dots, underscores, and hyphens.
Example: ds_example
How to obtain or enter: Provided by the workspace data source administrator from the data source details.
queries[*].query.mode string native uses the underlying query language; dql uses QueryHub DQL. Must be selected on the first submission; the two payload sets cannot be mixed.
Example: native
How to obtain or enter: Choose native or dql according to the capabilities enabled for the target data source.
queries[*].query.expectedRevision integer Optional configuration revision, 1 to 2^64-1; rejected when it does not match, preventing queries against an old connection configuration.
Example: 1
How to obtain or enter: Obtain it from the saved data source configuration revision; do not increment or guess it yourself.
queries[*].query.native object Required when mode=native. Submit only fields applicable to language in the table below.
Example: {"language": "sql", "statement": "SELECT 1 AS value", "parameters": []}
How to obtain or enter: Use a read-only native query supported by the receiving database/engine.
queries[*].query.native.language string sql for MySQL/Postgres, promql for Prometheus, elasticsearch for ES, mongodb for MongoDB; must match the data source.
Example: sql
How to obtain or enter: Choose according to the configured data source type.
queries[*].query.native.statement string SQL or PromQL statement, non-empty, maximum 16384 characters; ES/Mongo do not use this field.
Example: SELECT 1 AS value
How to obtain or enter: Construct it from a validated business query, with value parameters separated from the statement.
queries[*].query.native.parameters array SQL only: up to 128 scalar binding values, total JSON maximum 32768 bytes; supports string/number/boolean/null, not nested objects.
Example: []
How to obtain or enter: Provide business input values in SQL placeholder order; placeholder syntax follows the target data source.
queries[*].query.native.parameters[*] JSON scalar A single SQL binding value.
Example: production
How to obtain or enter: Use the corresponding business input and do not concatenate it into the SQL string.
queries[*].query.native.operation string Prometheus uses query/query_range, ES uses search, Mongo uses find/count; do not pass for SQL.
Example: query_range
How to obtain or enter: Choose a supported operation according to the selected language.
queries[*].query.native.arguments object PromQL/ES/Mongo operation arguments, selected by language and operation; JSON maximum 32768 bytes.
Example: {"start": 1785427200, "end": 1785430800, "step": "60s"}
How to obtain or enter: Provide them according to the applicable conditions for each field below.
queries[*].query.native.arguments.time number or string Optional evaluation time only for PromQL query; supports engine time strings or Unix seconds.
Example: 1785427200
How to obtain or enter: Obtain it from the instant required by the business; do not pass milliseconds directly as seconds.
queries[*].query.native.arguments.start number or string Required start time for PromQL query_range; Unix seconds or an engine time string.
Example: 1785427200
How to obtain or enter: Select the business query start instant.
queries[*].query.native.arguments.end number or string Required end time for PromQL query_range; Unix seconds or an engine time string.
Example: 1785430800
How to obtain or enter: Select the business query end instant; it must be later than the start according to engine requirements.
queries[*].query.native.arguments.step number or string Required step for PromQL query_range; numeric values must be positive, and strings use the engine duration format.
Example: 60s
How to obtain or enter: Choose seconds or a duration with a unit according to the desired result sampling density.
queries[*].query.native.arguments.body object Required query DSL object for ES search; must not contain the pit field.
Example: {"query": {"match_all": {}}, "size": 5}
How to obtain or enter: An ES query DSL validated on the target index.
queries[*].query.native.arguments.body. JSON value Query DSL fields supported by the target ES; the specific syntax is defined by the data source engine, and Studio does not provide a fixed subfield table.
Example: {"match_all": {}}
How to obtain or enter: Construct it according to the native DSL of the target ES version.
queries[*].query.native.arguments.filter object Optional filter document for Mongo find/count.
Example: {"env": "production"}
How to obtain or enter: Construct the Mongo filter based on the actual fields in the collection.
queries[*].query.native.arguments.projection object Optional field projection for Mongo find only.
Example: {"_id": 0, "env": 1}
How to obtain or enter: Construct the Mongo projection document based on the fields to return.
queries[*].query.native.arguments.sort object Optional sorting for Mongo find only; JSON key order is the sorting priority.
Example: {"time": -1}
How to obtain or enter: Construct an ordered object of fields according to the required sorting priority.
queries[*].query.native.arguments.skip integer Number of records to skip for Mongo find only; non-negative integer.
Example: 0
How to obtain or enter: Set it according to the number previously read.
queries[*].query.native.arguments.limit integer Record limit for Mongo find only; non-negative integer; the actual meaning of 0 is determined by the underlying engine.
Example: 5
How to obtain or enter: It is recommended to explicitly provide a small positive integer.
queries[*].query.dql object Required only when mode=dql; QueryHub DQL object, not equivalent to standard query.q.
Example: {"dqlVersion": "queryhub/v1", "dql": "queryhub(source=\"mysql\", datasource=\"orders\")::orders:(id) {status = $status}", "parameters": {"status": "paid"}}
How to obtain or enter: Use QueryHub DQL syntax and table names already supported by the data source; validate capabilities first.
queries[*].query.dql.dqlVersion string QueryHub DQL protocol version; defaults to queryhub/v1; only this value is supported.
Example: queryhub/v1
How to obtain or enter: Always use queryhub/v1.
queries[*].query.dql.dql string Non-empty QueryHub DQL statement, maximum 16384 characters.
Example: queryhub(source="mysql", datasource="orders")::orders:(id) {status = $status}
How to obtain or enter: Obtain it from a validated QueryHub data source query; do not directly assume all standard DQL syntax is available.
queries[*].query.dql.parameters object Up to 128 parameter names; names must be non-empty and maximum 128 characters; values are scalars or non-empty scalar arrays; total JSON maximum 32768 bytes.
Example: {"env": "production"}
How to obtain or enter: Provide business values according to the parameter names in the statement.
queries[*].query.dql.parameters. JSON scalar or scalar array A named parameter value; nested objects or empty arrays are not supported.
Example: production
How to obtain or enter: Replace the dynamic key with the actual parameter name in the statement.
queries[*].query.showLabel boolean Tag display switch for standard queries, passed to the query engine; omit to retain the engine default.
Example: true
How to obtain or enter: Reuse only configurations already validated for the current engine/existing caller, to avoid mixing structures from different engines.
queries[*].query.disable_slimit boolean Pass-through switch for standard queries to disable the series count limit; does not mean bypassing site resource quotas.
Example: false
How to obtain or enter: Reuse only configurations already validated for the current engine/existing caller, to avoid mixing structures from different engines.
queries[*].query.is_optimized boolean Optimization switch for standard queries, passed directly to the target query engine; usually omitted.
Example: true
How to obtain or enter: Reuse only configurations already validated for the current engine/existing caller, to avoid mixing structures from different engines.
queries[*].query.skipTracingDataQueryRule boolean Data query rule control marker for tracing queries; not a way to bypass authorization; omit for standard calls.
Example: false
How to obtain or enter: Reuse only configurations already validated for the current engine/existing caller, to avoid mixing structures from different engines.
queries[*].query.highlight JSON value Highlight control for standard queries; Studio keeps the original value; the specific type and effect are determined by the target engine; usually omitted.
Example: true
How to obtain or enter: Reuse only configurations already validated for the current engine/existing caller, to avoid mixing structures from different engines.
queries[*].query.sls_query JSON value Configuration specific to SLS queries, passed through unchanged; provide it only when an SLS query template already exists, and do not use it for other engines.
Example: {}
How to obtain or enter: Reuse only configurations already validated for the current engine/existing caller, to avoid mixing structures from different engines.
queries[*].query.orderby JSON value Legacy record sorting field for standard queries; Studio passes through non-empty values unchanged; it is recommended to specify sorting directly in the validated q statement; existing clients keep the original format.
Example: []
How to obtain or enter: Reuse only configurations already validated for the current engine/existing caller, to avoid mixing structures from different engines.
queries[*].query.sorderby JSON value Legacy series sorting field for standard queries; non-empty values are passed through unchanged; provide only when an existing query template uses it.
Example: []
How to obtain or enter: Reuse only configurations already validated for the current engine/existing caller, to avoid mixing structures from different engines.
queries[*].query.order_by array Doris-compatible sorting array for standard queries; elements are in the form {column: field name, order: DESC or ASC}; if an existing engine uses a different sorting protocol, keep the validated format.
Example: [{"column": "time", "order": "DESC"}]
How to obtain or enter: Reuse only configurations already validated for the current engine/existing caller, to avoid mixing structures from different engines.
queries[*].query.sorder_by array Doris-compatible sorting array for standard queries; elements are in the form {column: field name, order: DESC or ASC}; if an existing engine uses a different sorting protocol, keep the validated format.
Example: [{"column": "time", "order": "DESC"}]
How to obtain or enter: Reuse only configurations already validated for the current engine/existing caller, to avoid mixing structures from different engines.
queries[*].query.appScopes array<object> Explicit RUM application scope, non-empty array; each workspace appears only once and must be within the currently authorized workspace scope. When provided, workspaceUUID and workspaceUUIDs cannot be provided at the same time.
Example: [{"workspaceUUID": "wksp_example", "appIds": ["app_example"]}]
How to obtain or enter: Obtain the workspace UUID and application ID from the RUM application configuration; do not use display names or all.
queries[*].query.appScopes[*] object RUM application scope for a single target workspace.
Example: {"workspaceUUID": "wksp_example", "appIds": ["app_example"]}
How to obtain or enter: Construct it based on the actual authorized RUM application configuration for the target workspace.
queries[*].query.appScopes[*].workspaceUUID string Workspace UUID within the current authorization scope.
Example: wksp_example
How to obtain or enter: From the current workspace or an authorized target workspace.
queries[*].query.appScopes[*].appIds array<string> Non-empty array of application IDs for the workspace; deduplicated; only letters, digits, underscores, and hyphens; maximum 128 characters; all is not supported.
Example: ["app_example"]
How to obtain or enter: Obtain actual application IDs from the RUM application configuration of the target workspace.
queries[*].query.appScopes[*].appIds[*] string An actual RUM application ID.
Example: app_example
How to obtain or enter: Copy the RUM application identifier for the corresponding workspace.
queries[*].query.disableMultipleField boolean Multi-field control for standard result formatting; the actual value is read by the current result conversion rule.
Example: true
How to obtain or enter: Usually omitted; use explicit configuration from existing query templates.
queries array Standard queries recommend at least one item; omitting it or using [] is compatible and returns successful empty data; when QueryHub is included, there must be 1 to 20 items.
Allowed null: False
Example: [{"qtype": "dql", "query": {"q": "M::`cpu`:(`usage_idle`)", "timeRange": [1785427200000, 1785430800000], "limit": 5}}]
How to obtain or enter: Construct each item according to the table below; keep the order of query items and response items corresponding.
fieldTagDescNeeded boolean Supplemental field/tag descriptions for standard queries; defaults to false; not all queries add description fields.
Allowed null: False
Example: false
How to obtain or enter: Set to true when you need the type, unit, and description of results such as SHOW_FIELD.

Additional Parameter Notes

New queries must omit async_id. Only when content.data[i].is_running=true and the async_id for that item is non-empty should it be placed back into the same queries[i] for polling; standard queries keep the original query, target workspace, and targetRegion unchanged. For QueryHub continuation, retain qtype=queryhub and async_id, and query may be omitted. is_running=false means stop polling, even if the old ID still appears in the response. async_id is not a session ID or a pagination cursor; it must not be reused for a new query or another query item. If a running query has no ID, do not reuse a historical ID; record the traceId and retry a limited number of times or contact support.

For standard cross-workspace queries, a non-empty workspaceUUIDs takes precedence over workspaceUUID, and one batch queries only the same targetRegion. The target workspace UUID and targetRegion must be obtained from the workspaceUUID and regionCode in the same group from /wksp_share/granted_ws_list; wildcard workspaceUUID="*" or workspaceUUIDs=["*"] requires an explicit non-empty targetRegion and queries only authorized workspaces on that site. Do not use the console domain name or toRegionCode as regionCode. For complete steps, see OpenAPI Cross-Site Data Query, and Authorized Workspace List. QueryHub does not support these cross-workspace fields.

Standard log queries may return DQLDataAccessScopeRestricted in warnings: details[].metadata.namespace is logging; restriction=partial means only authorized indexes are returned, while all means none of the related log indexes are authorized and an empty result is returned. Do not treat an HTTP 200 empty data response as the entire workspace having no data. See Unrecovered Event Query.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/df/asynchronous/query_data' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"queries":[{"qtype":"dql","async_timeout":"5s","query":{"q":"M::`cpu`:(`usage_idle`)","timeRange":[1785427200000,1785430800000],"limit":5}}]}'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content.data array<object> Each item corresponds to the query item at the same position in the original request; fields differ by protocol and status.
content.data[].series array<object> Data series. May be empty when there is no data or the query item fails.
content.data[].series[].columns array<string> Column names of the series.
content.data[].series[].values array Result rows arranged in columns order.
content.data[].series[].name string Series name returned by engine and query type.
content.data[].series[].units array Units returned in columns order; elements may be strings or null. The field may be omitted.
content.data[].series[].tags object Grouping information may be returned when grouping by tags.
content.data[].column_names array<string> Some engines provide column names separately.
content.data[].complete boolean Whether the engine reports the result as complete.
content.data[].is_running boolean Whether it is still running; continue polling only when true. Stop when false, even if async_id is still non-empty.
content.data[].search_after array Legacy segmented pagination cursor. Used only for continuing pages of the same query.
content.data[].next_cursor_time integer New cursor time. A negative value indicates no more records.
content.data[].next_cursor_token string Marker paired with the new cursor; may be empty.
content.data[].warnings array<object> Query warnings. HTTP 200 may still be returned when some indexes are restricted.
content.data[].query_error object Error object for a single query item; may appear together with HTTP 200.
content.data[].query_error.errorCode string Error identifier for the item.
content.data[].query_error.errorType integer Error type returned by the standard DQL query engine, provided according to the actual response.
content.data[].query_error.error string Text provided for some standard DQL errors.
content.declaration object or null Workspace declaration.
content.data[].query_status string QueryHub uses pending, running, success, failed; some standard successful responses do not have this field.
content.data[].query_error.message string Error text for a QueryHub item.
content.data[].series[].columnTypes array<string> QueryHub column types, corresponding one-to-one with columns.
content.data[].uuid string or null Client identifier of the QueryHub query item.
content.data[].truncated boolean Whether the successful QueryHub result was truncated.
content object Ordered batch result object.
content.data[].async_id string Task ID for items still running; QueryHub clears it in terminal states, while standard failed items may retain a non-empty ID. Use is_running and error fields to determine whether to continue.
content.data[].query_error.errorSource string Source of a standard external query error: studio, transport, func, datasource, or unknown.
content.data[].query_error.errorStage string Failure stage of a standard external query.
content.data[].query_error.taskId string Original task ID for diagnostics; may be retained in terminal states.
content.data[].query_error.upstreamTraceId string Trace ID provided upstream; may be omitted.
content.data[].query_error.redacted boolean Whether diagnostic information has had sensitive values redacted; may be omitted.
content.data[].query_error.errorDetails object Error diagnostic scalars that are allowed to be exposed.
content.data[].errorInfo object Compatibility error object retained for some standard external queries; message corresponds to query_error.error, and other diagnostic fields are similar.
content.data[].warnings[].code string Query warning code; may also be returned with HTTP 200.
content.data[].warnings[].message string Localized warning message.
content.data[].warnings[].details JSON value Additional information provided by the engine; read it according to the actual response.
content.data[].queryTimeRangeAdjusted object Appears when standard log long-term storage rules adjust the query range.
content.data[].queryTimeRangeAdjusted.adjusted boolean Adjustment marker; true when present.
content.data[].queryTimeRangeAdjusted.reason string Currently log_long_storage_policy.
content.data[].queryTimeRangeAdjusted.originalTimeRange array Original query time range.
content.data[].queryTimeRangeAdjusted.queryTimeRange array Actual query range; an empty array means there is no data to query.
content.data[].queryTimeRangeAdjusted.mode string standard_window, long_storage_day, or empty.
content.data[].queryTimeRangeAdjusted.standardDuration string Standard storage duration, in days.
content.data[].queryTimeRangeAdjusted.retentionDuration string Overall retention duration, in days.
content.data[].series[].values[] array A single row corresponding one-to-one with columns; cells may be JSON values or null; QueryHub may use strings for large integers to avoid precision loss.
content.data[].series[].values[][] JSON value Cell value of a column; the type matches the column description and original data.
content.data[].series[].value_desc object Some standard SHOW_FIELD queries provide field metadata when fieldTagDescNeeded=true.
content.data[].series[].value_desc. object Field type, unit, and description.
content.data[].series[].value_desc..name string Field name.
content.data[].series[].value_desc..type string Field type.
content.data[].series[].value_desc..unit string Unit; may be empty if not configured.
content.data[].series[].value_desc..desc string Field description; may be empty if not configured.
content.data[].query_error.errorDetails.message JSON scalar Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
content.data[].query_error.errorDetails.reason string For standard native query binding failures, this may be resubmit_required, indicating that a new query must be created and the old ID cannot be polled again.
content.data[].query_error.errorDetails.error JSON scalar Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
content.data[].query_error.errorDetails.status JSON scalar Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
content.data[].query_error.errorDetails.taskStatus JSON scalar Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
content.data[].query_error.errorDetails.exceptionType JSON scalar Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
content.data[].query_error.errorDetails.exception JSON scalar Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
content.data[].errorInfo.errorType JSON scalar Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
content.data[].errorInfo.errorCode JSON scalar Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
content.data[].errorInfo.message JSON scalar Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
content.data[].errorInfo.errorSource JSON scalar Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
content.data[].errorInfo.errorStage JSON scalar Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
content.data[].errorInfo.taskId JSON scalar Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
content.data[].errorInfo.upstreamTraceId JSON scalar Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
content.data[].errorInfo.redacted JSON scalar Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
content.data[].errorInfo.errorDetails object Optional diagnostic field, provided according to the actual response; do not treat diagnostic status as this HTTP status.
Response Header Type Description
Content-Type string application/json.
Cache-Control string QueryHub's own successful responses and captured QueryHubError responses use no-store; for mixed batches, if a standard query throws another exception, this header is not guaranteed. The pure standard asynchronous entry does not have the additional ETag configuration of synchronous v1, so do not rely on the same cache headers.
{
  "code": 200,
  "content": {
    "data": [
      {
        "async_id": "legacy-task-from-response",
        "is_running": true,
        "series": []
      }
    ],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Standard task polling

curl --request POST '<Endpoint>/api/v1/df/asynchronous/query_data' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"queries":[{"qtype":"dql","async_timeout":"5s","query":{"q":"M::`cpu`:(`usage_idle`)","timeRange":[1785427200000,1785430800000],"limit":5},"async_id":"legacy-task-from-response"}]}'

QueryHub first submission

curl --request POST '<Endpoint>/api/v1/df/asynchronous/query_data' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"queries":[{"uuid":"db-query","qtype":"queryhub","query":{"datasourceId":"orders","mode":"native","native":{"language":"sql","statement":"SELECT 1 AS value","parameters":[]}}}]}'

QueryHub submission response

{
  "code": 200,
  "content": {
    "data": [
      {
        "uuid": "db-query",
        "async_id": "qhtask_00000000000000000000000000000001",
        "query_status": "pending",
        "is_running": true,
        "series": []
      }
    ],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

QueryHub polling (using the same API Key)

curl --request POST '<Endpoint>/api/v1/df/asynchronous/query_data' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"queries":[{"uuid":"db-query","qtype":"queryhub","async_id":"qhtask_00000000000000000000000000000001"}]}'

QueryHub completion response

{
  "code": 200,
  "content": {
    "data": [
      {
        "uuid": "db-query",
        "async_id": "",
        "query_status": "success",
        "is_running": false,
        "truncated": false,
        "series": [
          {
            "columns": [
              "value"
            ],
            "columnTypes": [
              "Int64"
            ],
            "values": [
              [
                1
              ]
            ]
          }
        ]
      }
    ],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Single-item failure for a QueryHub task that does not exist or has expired

{
  "code": 200,
  "content": {
    "data": [
      {
        "uuid": "db-query",
        "async_id": "",
        "query_status": "failed",
        "is_running": false,
        "series": [],
        "query_error": {
          "errorCode": "QueryHubTaskNotFound",
          "message": "The query task has expired. Please submit it again."
        }
      }
    ],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Standard GET call

curl --get '<Endpoint>/api/v1/df/asynchronous/query_data' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-urlencode 'body={"queries":[{"qtype":"dql","async_timeout":"5s","query":{"q":"M::`cpu`:(`usage_idle`)","timeRange":[1785427200000,1785430800000],"limit":5}}]}'

Error Responses

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed Request parameters violate field declarations Message indicates the invalid field or rule. Correct the request according to the corresponding parameter table.
400 ft.RequestJsonFormatError Request JSON syntax error Request JSON format error. content includes reason, line, column. Fix JSON syntax and retry.
400 ft.TimeRangeUnitMismatch Start and end times in timeRange use different units Start and end time units are inconsistent. Use timestamps with the same precision.
403 ft.ForbiddenQuery API Key has no permission to query target data, or target site rejects cross-site query with a permission error No DQL query permission. Check target workspace authorization and target site.
403 forethought.QueryHubForbidden QueryHub overall call identity, workspace, or query permission not allowed Current identity is not allowed to perform this QueryHub operation. Use the original API Key from the same workspace and confirm site/data source permissions; do not use target workspace headers or offline identities.
400 ft.JsonFormatError Standard query object or queries/query structure is not the expected JSON type Some json file format error Submit a queries array, with each query as an object.
406 ft.InvalidParameter interval or interval_unit does not meet requirements Invalid parameter. Confirm the unit is s/ms and can be converted to a positive integer number of milliseconds.
406 ft.DqlParseError DQL query statement cannot be parsed Query statement parsing failed; may include details. Validate the syntax in the query tool first.
406 ft.UnsupportMultiSiteQuery Batch query spans multiple sites Multi-site workspace queries are not supported. Submit each site separately.
406 ft.workspaceUnauthorized Explicitly requested an unauthorized workspace Message indicates the unauthorized workspace. Obtain a valid identifier again from the authorized workspace list.
406 ft.NotFoundWorkspaceAuthorizationCfg Cross-site query cannot find the corresponding authorization Workspace authorization information not found. Confirm the sharing configuration between the site and workspace.
406 ft.OpenapiDqlLoggingWildcardIndexForbidden Index settings restrict all-index queries Specify log indexes explicitly. Obtain index names from the log index list.
406 ft.OpenapiDqlLoggingIndexLimitExceeded Number of log indexes exceeds the configured limit Message includes the number of indexes that can be queried at a time. Narrow the index scope.
503 ft.QueryServiceUnavailable Query service temporarily unavailable Query service is temporarily unavailable. Please try again later. Back off and retry according to content.retryable and the actual status.
400 forethought.QueryHubInvalidFields QueryHub batch structure error, GET/non-JSON/URL body, or array not containing 1 to 20 items Message may be empty. Use the POST JSON template on this page and do not mix in top-level query or standard GET body.
503 forethought.QueryHubUnavailable QueryHub feature not enabled or service unavailable Query service or data source temporarily unavailable. Check permissions, query feature, and service status.
400 ft.QueryActionLimit Site slow query protection temporarily limits the current Key Too many slow queries; requests are restricted for a short period. Wait for the limit to be lifted, reduce extremely large queries, and avoid continuous retries.
406 ft.IllegalDensity density is not in the point density configurations allowed by the current site density is invalid. Available values: {}. Prefer explicit interval or maxPointCount; confirm site configuration before using density.
403 ft.Forbidden Use of a hosted external data source query channel not exposed by this OpenAPI You do not have permission to perform this operation Use an authorized QueryHub protocol or a query method explicitly supported by the site; do not copy Front requests.
500 ft.InternalServerError Uncontrolled query connection, parameter structure, or internal service exception Internal error Keep the traceId and redacted request; for submission timeouts, first confirm whether the task has already been created to avoid duplicate submissions.
502 forethought.QueryHubInvalidBatch In a mixed batch, the number of standard query results does not match the number of requests Message may be empty. Check standard and QueryHub batches separately and keep the traceId.
200 QueryHubInvalidId QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true The item message may be empty or use a generic query failure message. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryHubInvalidFields QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true Check the data source configuration fields and input format. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryHubUnsupportedMode QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true The item message may be empty or use a generic query failure message. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryHubUnsupportedContract QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true The item message may be empty or use a generic query failure message. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryHubForbidden QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true No query permission. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryHubDatasourceNotFound QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true The item message may be empty or use a generic query failure message. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryHubRevisionConflict QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true The item message may be empty or use a generic query failure message. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryHubSnapshotNotReady QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true The data source configuration has not taken effect yet. Please try again later. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryHubQueryRejected QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true Query execution failed. Check the query conditions and data source configuration. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryHubQueryTimeout QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true Query timed out. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryHubInvalidResult QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true The query result format is abnormal. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryHubUnavailable QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true The query service or data source is temporarily unavailable. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryHubBusy QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true The query service is busy. Please try again later. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryHubTaskNotFound QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true The query task has expired. Please submit it again. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryHubTaskCancelled QueryHub single-item failure; the code is in content.data[].query_error.errorCode; the outer layer may still have success=true The query task has been cancelled. Stop polling terminal items; for missing/expired tasks, resubmit the original request; back off for busy/unavailable cases; fix configuration first for permission/mode/version issues.
200 QueryResultUnavailable Standard query single-item query_error/errorInfo failure; the outer layer may still succeed Refer to the actual text of the item's error/message/reason. Stop polling when is_running=false; for cache or binding invalidation, check the data source/client status first, then submit a new query; do not retry the old async_id.
200 InvalidQueryResponse Standard query single-item query_error/errorInfo failure; the outer layer may still succeed Refer to the actual text of the item's error/message/reason. Stop polling when is_running=false; for cache or binding invalidation, check the data source/client status first, then submit a new query; do not retry the old async_id.
200 NoFuncClient Standard query single-item query_error/errorInfo failure; the outer layer may still succeed Refer to the actual text of the item's error/message/reason. Stop polling when is_running=false; for cache or binding invalidation, check the data source/client status first, then submit a new query; do not retry the old async_id.
200 FuncWorkerNoResponse Standard query single-item query_error/errorInfo failure; the outer layer may still succeed Refer to the actual text of the item's error/message/reason. Stop polling when is_running=false; for cache or binding invalidation, check the data source/client status first, then submit a new query; do not retry the old async_id.
200 ExternalQueryTimeout Standard query single-item query_error/errorInfo failure; the outer layer may still succeed Refer to the actual text of the item's error/message/reason. Stop polling when is_running=false; for cache or binding invalidation, check the data source/client status first, then submit a new query; do not retry the old async_id.
200 ExternalQueryExecutionFailed Standard query single-item query_error/errorInfo failure; the outer layer may still succeed Refer to the actual text of the item's error/message/reason. Stop polling when is_running=false; for cache or binding invalidation, check the data source/client status first, then submit a new query; do not retry the old async_id.
200 ExternalQueryBindingUnavailable Standard query single-item query_error/errorInfo failure; the outer layer may still succeed Refer to the actual text of the item's error/message/reason. Stop polling when is_running=false; for cache or binding invalidation, check the data source/client status first, then submit a new query; do not retry the old async_id.
200 WebSocketDispatchFailed Standard query single-item query_error/errorInfo failure; the outer layer may still succeed Refer to the actual text of the item's error/message/reason. Stop polling when is_running=false; for cache or binding invalidation, check the data source/client status first, then submit a new query; do not retry the old async_id.
200 DQLAsyncQueryBindingUnavailable Standard query single-item query_error/errorInfo failure; the outer layer may still succeed Refer to the actual text of the item's error/message/reason. Stop polling when is_running=false; for cache or binding invalidation, check the data source/client status first, then submit a new query; do not retry the old async_id.
422 ft.KodoAggregateOutputRowsLimitReached Estimated row count of intermediate aggregation results exceeds the limit The intermediate aggregation results are expected to produce at least {} rows, exceeding the {} row limit. Please narrow the time range, add filters, or reduce grouping; reducing only the number of returned rows cannot avoid this limit. Narrow the time range, add filters, or reduce grouping; reducing limit alone may not reduce intermediate aggregation results.
422 ft.KodoScanRowLimitExceeded Rows scanned in a single execution stage exceed the limit The query is expected to process {} rows in a single execution stage, exceeding the {} row limit. Please narrow the time range or reduce the sampling ratio. Narrow the time range, add selective filters, or reduce the sampling scope.
422 ft.KodoScanBytesLimitExceeded Number of decompressed bytes scanned exceeds the limit The query is expected to scan {} bytes (uncompressed) in a single execution stage, exceeding the {} byte limit. Please narrow the time range or reduce the sampling ratio. Narrow the scan time and index scope, not just the number of returned rows.
422 ft.KodoQueryEstimateLimitExceeded Estimated query duration on an idle cluster reaches the limit The estimated query duration on an idle cluster is {} seconds, reaching the {} second limit, involving {} rows of data. Please narrow the time range or simplify the query. Simplify the query or narrow the scope before resubmitting; do not continuously retry the original large query.
429 ft.KodoServerOverloaded Query service overloaded or requests too frequent Current requests are too frequent. Please try again later. Back off, reduce concurrency, and retry.
429 ft.KodoQueryQueueAdmissionFailed Query admission queueing failed The query admission queue failed to process the request. Please try again later. Back off and reduce concurrency.
429 ft.KodoUserDQLRateLimited Frequent extremely large queries trigger temporary restriction Because you have frequently initiated queries with extremely large amounts of data, your queries have been temporarily restricted. Please try again after {} minutes. Wait for the restriction period in the message to end, narrow the query scope, and retry.
406 ft.KodoOffsetWithCursorTime offset and cursor_time used at the same time The offset parameter cannot be used together with the cursor_time parameter Choose offset pagination or cursor pagination; do not submit both control items at the same time.
406 ft.KodoQueryNotFound Standard query task does not exist or has expired The query does not exist or has expired Stop polling the old ID; after confirming the result no longer needs to be retrieved, create a new query with the original parameters.
406 ft.KodoRequestDeadlineExceeded Query exceeds backend execution deadline Data query timed out, which may be caused by the following reasons: too much data, network latency, or high server load. You can resolve this issue by:
1. Adding filters or narrowing the time range and querying again.
2. Trying the query again after a period of time.
Narrow the time range, grouping, and amount of scanned data, and resubmit.
406 ft.KodoTooManyRows Query data volume exceeds the limit The amount of queried data exceeds the maximum limit. Please add filters or reduce the time range and query again. Add filters or narrow the time range.

Feedback

Is this page helpful?