跳转到主要内容
告警与响应相关接口/告警路由与策略

查询告警通知策略列表

列表通知路由策略分页。

GET/api/v1/alerting/notification-policies

操作 ID

ListAlertNotificationPolicies

起始版本

1.0.0

执行模式

同步

认证信息

需要认证

认证信息

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

Authorizationstring必填

Bearer 令牌

X-Tenant-IDstring

X-Tenant-ID

请求参数

查询参数

  • page
    Integer

    页码。默认值为 `1`。

    示例: 0

  • pageSize
    Integer

    每页返回的记录数。

    示例: 0

响应状态

200 OK
200 OK

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

  • items
    List

    条目列表。

    示例: (nested array)

    • uuid
      String

      资源的UUID,唯一标识该资源。

      示例: policy-001

    • name
      String

      资源名称。

      示例: Critical Alert Routing

    • description
      String

      资源的详细描述。

      示例: Route critical alerts to ops channels

    • priority
      Integer

      优先级。

      示例: 1

    • isDefault
      Boolean

      是否默认捕获策略。

      示例: false

    • matchers
      List

      标签匹配器路由决策。

      示例: (nested array)

      • key
        String

        键。

        示例: severity

      • operator
        String

        比较运算符。

        示例: eq

      • value
        String

        字段值。

        示例: critical

    • channelIds
      List

      渠道UUI DS投递通知。

      示例: item1,item2

    • groupBy
      List

      分组字段。

      示例: item1,item2

    • groupWait
      Integer

      秒等待发送首次通知。

      示例: 30

    • groupInterval
      Integer

      组周期。

      示例: 300

    • repeatInterval
      Integer

      重复周期。

      示例: 3600

    • status
      String

      状态信息。

      示例: active

    • createDate
      String

      创建时间。

      示例: 2024-01-15T09:00:00Z

    • lastOpDate
      String

      最近一次操作时间。

      示例: 2024-01-15T09:00:00Z

  • total
    Integer

    返回结果总数。

    示例: 3

  • limit
    Integer

    最大返回条目数。

    示例: 20

  • offset
    Integer

    查询起始偏移量。

    示例: 20