hss__ListClusterEventLogs
Query Kubernetes cluster event logs filtered by cluster, namespace, resource, event type, and time range to investigate issues.
Instructions
[HSS] 查询k8s集群事件列表
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": {
"cluster_id": "<cluster_id>",
"end_time": "<end_time>",
"limit": "<limit>",
"offset": "<offset>",
"project_id": "<project_id>",
"start_time": "<start_time>"
},
"name": "hss__ListClusterEventLogs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | Yes | 每页显示个数,默认为10 | |
| offset | Yes | 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0 | |
| reason | No | 事件的触发原因 | |
| end_time | Yes | 查询日志范围的最大时间 | |
| line_num | No | 查询cce集群事件时需要传的分页行号 | |
| namespace | No | 产生事件的命名空间 | |
| cluster_id | Yes | 集群id | |
| event_name | No | 事件名称 | |
| event_type | No | 事件类型,包含以下几种: | |
| project_id | Yes | 租户项目ID | |
| start_time | Yes | 查询日志范围的最小时间 | |
| cluster_name | No | 集群名称 | |
| resource_name | No | 产生事件的资源名称 | |
| resource_type | No | 产生事件的资源类型 | |
| enterprise_project_id | No | 主机所属的企业项目ID。 | 0 |