Class InhibitRule
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.InhibitRule
-
- All Implemented Interfaces:
Editable<InhibitRuleBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class InhibitRule extends Object implements Editable<InhibitRuleBuilder>, 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()equal defines labels that must have an equal value in the source and target alert for the inhibition to take effect.List<Matcher>getSourceMatch()sourceMatch defines matchers for which one or more alerts have to exist for the inhibition to take effect.List<Matcher>getTargetMatch()targetMatch defines 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)equal defines labels that must have an equal value in the source and target alert for the inhibition to take effect.voidsetSourceMatch(List<Matcher> sourceMatch)sourceMatch defines matchers for which one or more alerts have to exist for the inhibition to take effect.voidsetTargetMatch(List<Matcher> targetMatch)targetMatch defines matchers that have to be fulfilled in the alerts to be muted.InhibitRuleBuildertoBuilder()
-
-
-
Method Detail
-
getEqual
public List<String> getEqual()
equal defines labels that must have an equal value in the source and target alert for the inhibition to take effect. This ensures related alerts are properly grouped.
-
setEqual
public void setEqual(List<String> equal)
equal defines labels that must have an equal value in the source and target alert for the inhibition to take effect. This ensures related alerts are properly grouped.
-
getSourceMatch
public List<Matcher> getSourceMatch()
sourceMatch defines 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. These are the "trigger" alerts that cause other alerts to be inhibited.
-
setSourceMatch
public void setSourceMatch(List<Matcher> sourceMatch)
sourceMatch defines 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. These are the "trigger" alerts that cause other alerts to be inhibited.
-
getTargetMatch
public List<Matcher> getTargetMatch()
targetMatch defines matchers that have to be fulfilled in the alerts to be muted. The operator enforces that the alert matches the resource's namespace. When these conditions are met, matching alerts will be inhibited (silenced).
-
setTargetMatch
public void setTargetMatch(List<Matcher> targetMatch)
targetMatch defines matchers that have to be fulfilled in the alerts to be muted. The operator enforces that the alert matches the resource's namespace. When these conditions are met, matching alerts will be inhibited (silenced).
-
edit
public InhibitRuleBuilder edit()
- Specified by:
editin interfaceEditable<InhibitRuleBuilder>
-
toBuilder
public InhibitRuleBuilder toBuilder()
-
-