AlertPolicyConditionConditionPrometheusQueryLanguage constructor
const
AlertPolicyConditionConditionPrometheusQueryLanguage({})
Creates a new AlertPolicyConditionConditionPrometheusQueryLanguage.
alertRule The alerting rule name of this alert in the corresponding Prometheus
disableMetricValidation Whether to disable metric existence validation for this condition.
duration Alerts are considered firing once their PromQL expression evaluated
evaluationInterval How often this rule should be evaluated. Must be a positive multiple
labels Labels to add to or overwrite in the PromQL query result. Label names
query The PromQL expression to evaluate. Every evaluation cycle this
ruleGroup The rule group name of this alert in the corresponding Prometheus
Implementation
const AlertPolicyConditionConditionPrometheusQueryLanguage({
this.alertRule,
this.disableMetricValidation,
this.duration,
this.evaluationInterval,
this.labels,
required this.query,
this.ruleGroup,
});