css__StartLogs
Enable log collection for a specified CSS cluster by configuring an OBS bucket, backup path, and agency to store cluster logs.
Instructions
[CSS] 该接口用于开启日志功能。
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": {
"agency": "<agency>",
"cluster_id": "<cluster_id>",
"logBasePath": "<logBasePath>",
"logBucket": "<logBucket>",
"project_id": "<project_id>"
},
"name": "css__StartLogs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | action支持base_log_collect和real_time_log_collect两种,base就是之前历史的能力,real_time为实时采集能力,默认不传就是base,兼容之前的逻辑 | base_log_collect |
| agency | Yes | 委托名称,委托给CSS,允许CSS调用您的其他云服务。 | |
| keep_days | No | 日志保存时间。action等于real_time_log_collect时必选 | |
| logBucket | Yes | 用于存储日志的OBS桶的桶名。 | |
| cluster_id | Yes | 指定开启日志的集群ID。 | |
| project_id | Yes | 项目ID。获取方法请参见[获取项目ID和名称](css_03_0071.xml)。 | |
| logBasePath | Yes | 日志在OBS桶中的备份路径。 | |
| index_prefix | No | 保存日志的索引前缀。action等于real_time_log_collect时必选 | |
| target_cluster_id | No | 保存日志的目标集群。action等于real_time_log_collect时必选 |