lts__CreateStructConfig
Creates a structured configuration for a Huawei Cloud LTS log stream using a built-in or custom template, applying demo and tag fields with optional quick analysis.
Instructions
[LTS] 该接口通过结构化模板创建结构化配置。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"log_group_id": "<log_group_id>",
"log_stream_id": "<log_stream_id>",
"project_id": "<project_id>",
"template_id": "<template_id>",
"template_name": "<template_name>",
"template_type": "<template_type>"
},
"name": "lts__CreateStructConfig"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | 项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。 | |
| tag_fields | No | Tag字段数组,只需要填写与模板中is_analysis状态不同的字段 | |
| demo_fields | No | 示例字段数组,只需要填写与模板中is_analysis状态不同的字段 | |
| template_id | Yes | 所用模板id。当使用系统模板时,当前属性可以为空 | |
| log_group_id | Yes | 日志组ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。 | |
| log_stream_id | Yes | 日志流ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。 | |
| template_name | Yes | 所用模板名称,会对模板名称及id进行校验 | |
| template_type | Yes | 所用模板类型,分为built_in及custom两种类型,对应系统模板和自定义模板,系统模板分为CTS,VPC和ELB三种。 | |
| quick_analysis | No | 是否开启demo_fields和tag_fields快速分析,为true时,所有的demo_fields和tag_fields全部字段均打开快速分析;不填或者为false,以模板中的demo_fields和tag_fields中的is_analysis决定是否开启快速分析。 |