跳转到主要内容
监控与采集相关接口/自动修复

查询修复策略列表

列表修复策略。

GET/api/v1/monitoring/remediation-policies

操作 ID

ListRemediationPolicies

起始版本

1.0.0

执行模式

同步

认证信息

需要认证

认证信息

调用该 API 时需要在请求头中携带以下认证信息。

Authorizationstring必填

Bearer 令牌

X-Tenant-IDstring

X-Tenant-ID

请求参数

此接口无需请求参数。

响应状态

200 OK
200 OK

该 API 成功时返回以下响应结构。

  • items
    List

    条目列表。

    示例: (nested array)

    • id
      String

      资源ID。

      示例: policy-001-abc

    • name
      String

      资源名称。

      示例: High CPU Auto-Restart

    • enabled
      Boolean

      是否启用。

      示例: true

    • agentSelector
      LinkedHashMap

      标签选择器匹配目标代理。

      示例: (nested object)

    • conditionOp
      String

      逻辑运算符组合多个条件。

      示例: AND

    • conditions
      List

      条件列表,用于过滤查询结果。

      示例: (nested array)

      • metricName
        String

        监控项名称。

        示例: cpu_usage_percent

      • operator
        String

        比较运算符。

        示例: >

      • threshold
        Long

        阈值。

        示例: 90

    • action
      String

      动作名称。

      示例: restart_service

    • actionParams
      LinkedHashMap

      参数已通过修复动作。

      示例: (nested object)

    • cooldownSec
      Integer

      冷却时长,单位为秒。

      示例: 300

    • verifyAfterSec
      Integer

      验证延迟秒数。

      示例: 60

    • maxRetries
      Integer

      最大数量重试尝试失败。

      示例: 3

    • createdAt
      String

      创建时间。

      示例: 2026-01-15T08:00:00Z

  • total
    Integer

    返回结果总数。

    示例: 4

  • limit
    Integer

    最大返回条目数。

    示例: 20

  • offset
    Integer

    查询起始偏移量。

    示例: 20