This document introduces the "Dataset Visualization Query Parameter API" and explains how to view and update visualization query parameter configurations through the API.
The Dataset Visualization Query Parameter API allows users to view and update dataset visualization query parameter configurations via the API.
The entry point for this feature is as follows:
Before using the API described in this document, you must complete the steps for integrating JWT-Token and applying for a Token. Please review the invocation method first. For details, see Invocation Method.
warning
The user must have at least permission to view the dataset.
{{domain}}/aeolus/api/v4/open/dataset/{{dataSetId}}/vqsParamsParameter | Type | Required | Example value | Description |
|---|---|---|---|---|
dataSetId | integer | Yes | 123 | Dataset ID. For information on how to obtain it, see How to Obtain Resource IDs |
curl --location --request GET '{{domain}}/aeolus/api/v4/open/dataset/{{dataSetId}}/vqsParams' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {{jwtToken}}'
Parameter | Type | Example value | Description |
|---|---|---|---|
detailedFields | bool | true | |
enableReportMonitor | bool | false | Filter search optimization. If set to true, the filter will prioritize using the front-end cache when searching for data items in the exact search list; if set to false, this is not allowed. |
enableSubscription | bool | false | Dataset subscription. If set to true, after subscribing to the dataset, chart data can be displayed in dashboard subscription snapshots, but this may put pressure on the cluster; if set to false, this is not allowed. |
queryPartitionLimit | bool | true | Auto query. If set to true, automatic query triggering is allowed in the visualization query interface, but this may put pressure on the cluster; if set to false, this is not allowed. |
vqsAutoQuery | bool | true | |
vqs_auto_query | bool | true |
{ "code": "aeolus/ok", "data": { "detailedFields": [], "enableReportMonitor": true, "enableSubscription": true, "queryPartitionLimit": null, "vqsAutoQuery": true, "vqs_auto_query": true }, "msg": "成功" }
warning
The user must have at least permission to edit the dataset.
{{domain}}/aeolus/api/v4/open/dataset/{{dataSetId}}/vqsParamsParameter | Type | Required | Description |
|---|---|---|---|
enableReportMonitor | string | Yes | Create a monitor |
enableSubscription | bool | Yes | The default lookback period after the dataset subscription is created for the first time. |
vqsAutoQuery | bool | Yes | Automatic query |
enableSearchOptimizationStrategy | bool | Yes | Filter search optimization |
curl --location --request PUT '{{domain}}/aeolus/api/v4/open/dataset/{{dataSetId}}/vqsParams' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {{jwtToken}}' \ --data-raw '{ "vqsParams": { "vqsAutoQuery": false, "enableSubscription": false, "enableReportMonitor": false, "enableSearchOptimizationStrategy": false } }'
Parameter | Type | Required | Description |
|---|---|---|---|
enableReportMonitor | string | Yes | Create a monitor |
enableSubscription | bool | Yes | The default lookback period after the dataset subscription is created for the first time. |
vqsAutoQuery | bool | Yes | Automatic query |
enableSearchOptimizationStrategy | bool | Yes | Filter search optimization |
{ "code": "aeolus/ok", "data": null, "msg": "成功" }