lts__UpdateLogStream
Updates the log retention period for a specified Huawei Cloud LTS log stream, letting you set storage duration in days (1-365) to manage log lifecycle and costs.
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>",
"ttl_in_days": "<ttl_in_days>"
},
"name": "lts__UpdateLogStream"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | 标签字段信息 | |
| project_id | Yes | 项目ID,获取方式请参见:获取帐号ID、项目ID、日志组ID、日志流ID。 | |
| ttl_in_days | Yes | 日志存储时间(天)。 | |
| log_group_id | Yes | 日志组ID,获取方式请参见:获取帐号ID、项目ID、日志组ID、日志流ID。 | |
| log_stream_id | Yes | 日志流ID,获取方式请参见:获取帐号ID、项目ID、日志组ID、日志流ID。 | |
| whether_log_storage | No | 日志是否存储 |