跳转到主要内容
告警与响应相关接口/告警规则

获取告警内置规则模板列表

列表内置告警规则模板创建新规则。

GET/api/v1/alerting/rules/builtin-templates

操作 ID

GetAlertBuiltinRuleTemplates

起始版本

1.0.0

执行模式

同步

认证信息

需要认证

认证信息

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

Authorizationstring必填

Bearer 令牌

X-Tenant-IDstring

X-Tenant-ID

请求参数

application/json

此接口无需请求参数。

响应状态

200 OK

请求成功。

Content-Type: application/json

响应体根类型: object

  • items
    List

    条目列表。

    • id
      String

      资源ID。

      示例: btmpl-001

    • name
      String

      资源名称。

      示例: VM CPU Alert

    • description
      String

      资源的详细描述。

      示例: Alert when VM CPU exceeds threshold

    • category
      String

      类型分类。

      示例: infrastructure

    • resourceType
      String

      资源类型。

      示例: vm

    • metricName
      String

      监控项名称。

      示例: cpu_usage_percent

    • operator
      String

      模板的默认操作符。

      示例: >

    • threshold
      Double

      模板的默认阈值。

      示例: 90

      {"format":"double"}

    • duration
      Integer

      模板的默认持续时长。

      示例: 300

      {"format":"int32"}

    • severity
      String

      模板的默认严重级别。

      示例: critical

    • impactScope
      String

      影响范围。

      示例: cluster

  • total
    Integer

    返回结果总数。

    示例: 15

    {"format":"int32"}

  • limit
    Integer

    每页条数上限。

    示例: 20

    {"format":"int32"}

  • offset
    Integer

    查询起始偏移量。

    示例: 20

    {"format":"int32"}