Class RuleGroup

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<RuleGroupBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class RuleGroup
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<RuleGroupBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    RuleGroup is a list of sequentially evaluated alerting rules.
    See Also:
    Serialized Form
    • Constructor Detail

      • RuleGroup

        public RuleGroup()
        No args constructor for use in serialization
    • Method Detail

      • getInterval

        public String getInterval()
        interval is how often rules in the group are evaluated. If not specified, it defaults to the global.evaluation_interval configured in Prometheus, which itself defaults to 30 seconds. You can check if this value has been modified from the default on your cluster by inspecting the platform Prometheus configuration: The relevant field in that resource is: spec.evaluationInterval
      • setInterval

        public void setInterval​(String interval)
        interval is how often rules in the group are evaluated. If not specified, it defaults to the global.evaluation_interval configured in Prometheus, which itself defaults to 30 seconds. You can check if this value has been modified from the default on your cluster by inspecting the platform Prometheus configuration: The relevant field in that resource is: spec.evaluationInterval
      • getName

        public String getName()
        name is the name of the group.
      • setName

        public void setName​(String name)
        name is the name of the group.
      • getRules

        public List<Rule> getRules()
        rules is a list of sequentially evaluated alerting rules. Prometheus may process rule groups in parallel, but rules within a single group are always processed sequentially, and all rules are processed.
      • setRules

        public void setRules​(List<Rule> rules)
        rules is a list of sequentially evaluated alerting rules. Prometheus may process rule groups in parallel, but rules within a single group are always processed sequentially, and all rules are processed.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)