lts__CreateLogDumpObs
Creates a periodic log dump that transfers logs from one or more LTS log streams to an OBS bucket, with configurable dump cycle, storage format, and file prefix.
Instructions
[LTS] 该接口用于将指定的一个或多个日志流的日志转储到OBS服务。
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_ids": "<log_stream_ids>",
"obs_bucket_name": "<obs_bucket_name>",
"period": "<period>",
"period_unit": "<period_unit>",
"project_id": "<project_id>",
"storage_format": "<storage_format>",
"type": "<type>"
},
"name": "lts__CreateLogDumpObs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | 周期性转储, 必须填 cycle。 | |
| period | Yes | 转储周期的长度, 与 period_unit 拼接后必须在该列表中 ["2min","5min","30min","1hour","3hour","6hour","12hour"]。 | |
| switch_on | No | 是否开启转储 true/false, 默认为 true | |
| project_id | Yes | 项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。 | None |
| period_unit | Yes | 转储周期的单位, 与 period 拼接后必须在该列表中 ["2min","5min","30min","1hour","3hour","6hour","12hour"]。 | |
| prefix_name | No | 转储至OBS桶中的日志文件前缀。 | |
| log_group_id | Yes | 日志组id。 | |
| log_stream_ids | Yes | 日志流id列表, 可以指定一个或多个日志流进行obs周期性转储 | |
| storage_format | Yes | 转储格式 RAW/JSON, 默认为 RAW。 | |
| dir_prefix_name | No | 自定义文件夹路径。 | |
| obs_bucket_name | Yes | obs 桶名称。 |