Class InhibitRule

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class InhibitRule
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<InhibitRuleBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    InhibitRule defines an inhibition rule that allows to mute alerts when other alerts are already firing. See https://prometheus.io/docs/alerting/latest/configuration/#inhibit_rule
    See Also:
    Serialized Form
    • Constructor Detail

      • InhibitRule

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

      • getEqual

        public List<String> getEqual()
        Labels that must have an equal value in the source and target alert for the inhibition to take effect.
      • setEqual

        public void setEqual​(List<String> equal)
        Labels that must have an equal value in the source and target alert for the inhibition to take effect.
      • getSourceMatch

        public List<Matcher> getSourceMatch()
        Matchers for which one or more alerts have to exist for the inhibition to take effect. The operator enforces that the alert matches the resource's namespace.
      • setSourceMatch

        public void setSourceMatch​(List<Matcher> sourceMatch)
        Matchers for which one or more alerts have to exist for the inhibition to take effect. The operator enforces that the alert matches the resource's namespace.
      • getTargetMatch

        public List<Matcher> getTargetMatch()
        Matchers that have to be fulfilled in the alerts to be muted. The operator enforces that the alert matches the resource's namespace.
      • setTargetMatch

        public void setTargetMatch​(List<Matcher> targetMatch)
        Matchers that have to be fulfilled in the alerts to be muted. The operator enforces that the alert matches the resource's namespace.
      • getAdditionalProperties

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

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

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