跳到主要内容

ack inspect config

管理集群巡检配置

运行 ecctl ack inspect config <action> -h 查看用法,或 ecctl schema ack.inspect.config.<action> --full 获取该命令完整的结构化规格——每个参数与行为,便于 Agent 读取和填参。

update

ecctl ack inspect config update [flags]

更新巡检配置

  • 类型:mutation · 风险:medium
  • 同步:等待 present(waiter config_present,超时 60s);用 --no-wait 跳过等待。
API调用时机用途
GetClusterInspectConfig每次执行命令时读取资源视图。
CreateClusterInspectConfig前序步骤未生成 existing执行资源操作。
GetClusterInspectConfig前序步骤未生成 existing轮询等待资源达到目标状态。(重复调用)
UpdateClusterInspectConfig前序步骤已生成 existing执行资源操作。
GetClusterInspectConfig每次执行命令时读取资源视图。
参数类型必填说明
--clusterstringACK 集群 ID
--recurrencestring包含 BYHOUR 和 BYMINUTE 的 RFC5545 每日巡检规则
--regionstringAlibaba Cloud region
--disabled-check-itemsstring_array要禁用的巡检项名称
--enabledboolean启用周期性巡检

delete

ecctl ack inspect config delete [flags]

删除巡检配置

  • 类型:mutation · 风险:high
API调用时机用途
DeleteClusterInspectConfig每次执行命令时执行资源操作。
参数类型必填说明
--clusterstringACK 集群 ID
--regionstringAlibaba Cloud region

get

ecctl ack inspect config get [flags]

查询巡检配置

  • 类型:read · 风险:low
API调用时机用途
GetClusterInspectConfig每次执行命令时读取资源视图。
参数类型必填说明
--clusterstringACK 集群 ID
--regionstringAlibaba Cloud region
--fieldsstring要包含的资源字段,使用逗号分隔