AlertRule [ait.alauda.io/v1]
- 描述
- AlertRule defines alerting rules for a Prometheus instance AlertRule is a copy of PrometheusRule, just different kind/group/version.
- 类型
object- 必填
spec
规格
.spec
- 描述
- Specification of desired alerting rule definitions for Prometheus.
- 类型
object
.spec.groups
- 描述
- Content of Prometheus rule file
- 类型
array
.spec.groups[]
- 描述
- RuleGroup is a list of sequentially evaluated recording and alerting rules. Note: PartialResponseStrategy is only used by ThanosRuler and will be ignored by Prometheus instances. Valid values for this field are 'warn' or 'abort'. More info: https://github.com/thanos-io/thanos/blob/master/docs/components/rule.md#partial-response
- 类型
object- 必填
namerules
.spec.groups[].rules
- 类型
array
.spec.groups[].rules[]
- 描述
- Rule describes an alerting or recording rule.
- 类型
object- 必填
expr
.spec.groups[].rules[].annotations
- 类型
object
.spec.groups[].rules[].labels
- 类型
object
API 端点
可用的 API 端点如下:
/apis/ait.alauda.io/v1/namespaces/{namespace}/alertrulesDELETE: delete collection of AlertRuleGET: list objects of kind AlertRulePOST: create a new AlertRule
/apis/ait.alauda.io/v1/namespaces/{namespace}/alertrules/{name}DELETE: delete the specified AlertRuleGET: read the specified AlertRulePATCH: partially update the specified AlertRulePUT: replace the specified AlertRule
/apis/ait.alauda.io/v1/namespaces/{namespace}/alertrules
- HTTP 方法
DELETE- 描述
- delete collection of AlertRule
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind AlertRule
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new AlertRule
- 查询参数
- 请求体参数
- HTTP 响应
/apis/ait.alauda.io/v1/namespaces/{namespace}/alertrules/{name}
- HTTP 方法
DELETE- 描述
- delete the specified AlertRule
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified AlertRule
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified AlertRule
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified AlertRule
- 查询参数
- 请求体参数
- HTTP 响应