AlertRule [ait.alauda.io/v1]
- Description
- AlertRule defines alerting rules for a Prometheus instance AlertRule is a copy of PrometheusRule, just different kind/group/version.
- Type
object- Required
spec
Specification
.spec
- Description
- Specification of desired alerting rule definitions for Prometheus.
- Type
object
.spec.groups
- Description
- Content of Prometheus rule file
- Type
array
.spec.groups[]
- Description
- 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
- Type
object- Required
namerules
.spec.groups[].rules
- Type
array
.spec.groups[].rules[]
- Description
- Rule describes an alerting or recording rule.
- Type
object- Required
expr
.spec.groups[].rules[].annotations
- Type
object
.spec.groups[].rules[].labels
- Type
object
API Endpoints
The following API endpoints are available:
/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 method
DELETE- Description
- delete collection of AlertRule
- HTTP responses
- HTTP method
GET- Description
- list objects of kind AlertRule
- HTTP responses
- HTTP method
POST- Description
- create a new AlertRule
- Query parameters
- Body parameters
- HTTP responses
/apis/ait.alauda.io/v1/namespaces/{namespace}/alertrules/{name}
- HTTP method
DELETE- Description
- delete the specified AlertRule
- Query parameters
- HTTP responses
- HTTP method
GET- Description
- read the specified AlertRule
- HTTP responses
- HTTP method
PATCH- Description
- partially update the specified AlertRule
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace the specified AlertRule
- Query parameters
- Body parameters
- HTTP responses