AlertPolicyConditionConditionPrometheusQueryLanguage constructor

const AlertPolicyConditionConditionPrometheusQueryLanguage({
  1. Input<String?>? alertRule,
  2. Input<bool?>? disableMetricValidation,
  3. Input<String?>? duration,
  4. Input<String?>? evaluationInterval,
  5. Input<Map<String, String>?>? labels,
  6. required Input<String> query,
  7. Input<String?>? ruleGroup,
})

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,
});