Class InhibitRule
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1beta1.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 Summary
Constructors Constructor Description InhibitRule()No args constructor for use in serializationInhibitRule(List<String> equal, List<Matcher> sourceMatch, List<Matcher> targetMatch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InhibitRuleBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getEqual()Labels that must have an equal value in the source and target alert for the inhibition to take effect.List<Matcher>getSourceMatch()Matchers for which one or more alerts have to exist for the inhibition to take effect.List<Matcher>getTargetMatch()Matchers that have to be fulfilled in the alerts to be muted.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetEqual(List<String> equal)Labels that must have an equal value in the source and target alert for the inhibition to take effect.voidsetSourceMatch(List<Matcher> sourceMatch)Matchers for which one or more alerts have to exist for the inhibition to take effect.voidsetTargetMatch(List<Matcher> targetMatch)Matchers that have to be fulfilled in the alerts to be muted.InhibitRuleBuildertoBuilder()
-
-
-
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.
-
edit
public InhibitRuleBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<InhibitRuleBuilder>
-
toBuilder
public InhibitRuleBuilder toBuilder()
-
-