Class AlertingRuleSpec

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class AlertingRuleSpec
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<AlertingRuleSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    AlertingRuleSpec is the desired state of an AlertingRule resource.
    See Also:
    Serialized Form
    • Constructor Detail

      • AlertingRuleSpec

        public AlertingRuleSpec()
        No args constructor for use in serialization
      • AlertingRuleSpec

        public AlertingRuleSpec​(List<RuleGroup> groups)
    • Method Detail

      • getGroups

        public List<RuleGroup> getGroups()
        groups is a list of grouped alerting rules. Rule groups are the unit at which Prometheus parallelizes rule processing. All rules in a single group share a configured evaluation interval. All rules in the group will be processed together on this interval, sequentially, and all rules will be processed.


        It's common to group related alerting rules into a single AlertingRule resources, and within that resource, closely related alerts, or simply alerts with the same interval, into individual groups. You are also free to create AlertingRule resources with only a single rule group, but be aware that this can have a performance impact on Prometheus if the group is extremely large or has very complex query expressions to evaluate. Spreading very complex rules across multiple groups to allow them to be processed in parallel is also a common use-case.

      • setGroups

        public void setGroups​(List<RuleGroup> groups)
        groups is a list of grouped alerting rules. Rule groups are the unit at which Prometheus parallelizes rule processing. All rules in a single group share a configured evaluation interval. All rules in the group will be processed together on this interval, sequentially, and all rules will be processed.


        It's common to group related alerting rules into a single AlertingRule resources, and within that resource, closely related alerts, or simply alerts with the same interval, into individual groups. You are also free to create AlertingRule resources with only a single rule group, but be aware that this can have a performance impact on Prometheus if the group is extremely large or has very complex query expressions to evaluate. Spreading very complex rules across multiple groups to allow them to be processed in parallel is also a common use-case.

      • getAdditionalProperties

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

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

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