Skip to content

Index Acceleration Field Configuration Modification



POST /api/v1/workspace/index_speed_field/modify

Overview

Index query acceleration field configuration.
Currently only supports logging type indices under the ScopeDB storage engine. Index information comes from the Logs - Indices - List interface Index field information can be queried using the DQL statement SHOW_LOGGING_FIELD(index='xx')

Body Request Parameters

Parameter Name Type Required Description
fieldSpeedConfig array Field acceleration configuration
Allow empty: False
fieldSpeedConfig[*] None
fieldSpeedConfig[*].index string Index name, from the name field in the logging indices list
Example: default
Allow empty: False
fieldSpeedConfig[*].field string Y Field
Example: dest_host
Allow empty: False
fieldSpeedConfig[*].enable boolean Y Whether to enable
Example: False
Allow empty: False
namespace string Namespace, the namespace in DQL, fully lowercase
Allow empty: False
source string Source
Allow empty: False

Parameter Additional Explanation

Request Example

curl 'https://openapi.guance.com/api/v1/workspace/index_speed_field/modify' \
  -H 'Content-Type: application/json;charset=UTF-8' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-raw '{"namespace":"logging","fieldSpeedConfig":[{"index":"default","field":"dest_host","enable":false}]}' \
  --insecure

Response

{
    "code": 200,
    "content": true,
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "xxxxxx"
} 

Feedback

Is this page helpful? ×