Class Matcher
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.Matcher
-
- All Implemented Interfaces:
Editable<MatcherBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Matcher extends Object implements Editable<MatcherBuilder>, KubernetesResource
Matcher defines how to match on alert's labels.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatcherBuilderedit()Map<String,Object>getAdditionalProperties()StringgetMatchType()matchType defines the match operation available with AlertManager >= v0.22.0.StringgetName()name defines the label to match.BooleangetRegex()regex defines whether to match on equality (false) or regular-expression (true).StringgetValue()value defines the label value to match.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetMatchType(String matchType)matchType defines the match operation available with AlertManager >= v0.22.0.voidsetName(String name)name defines the label to match.voidsetRegex(Boolean regex)regex defines whether to match on equality (false) or regular-expression (true).voidsetValue(String value)value defines the label value to match.MatcherBuildertoBuilder()
-
-
-
Method Detail
-
getMatchType
public String getMatchType()
matchType defines the match operation available with AlertManager >= v0.22.0. Takes precedence over Regex (deprecated) if non-empty. Valid values: "=" (equality), "!=" (inequality), "=~" (regex match), "!~" (regex non-match).
-
setMatchType
public void setMatchType(String matchType)
matchType defines the match operation available with AlertManager >= v0.22.0. Takes precedence over Regex (deprecated) if non-empty. Valid values: "=" (equality), "!=" (inequality), "=~" (regex match), "!~" (regex non-match).
-
getName
public String getName()
name defines the label to match. This specifies which alert label should be evaluated.
-
setName
public void setName(String name)
name defines the label to match. This specifies which alert label should be evaluated.
-
getRegex
public Boolean getRegex()
regex defines whether to match on equality (false) or regular-expression (true). Deprecated: for AlertManager >= v0.22.0, `matchType` should be used instead.
-
setRegex
public void setRegex(Boolean regex)
regex defines whether to match on equality (false) or regular-expression (true). Deprecated: for AlertManager >= v0.22.0, `matchType` should be used instead.
-
getValue
public String getValue()
value defines the label value to match. This is the expected value for the specified label.
-
setValue
public void setValue(String value)
value defines the label value to match. This is the expected value for the specified label.
-
edit
public MatcherBuilder edit()
- Specified by:
editin interfaceEditable<MatcherBuilder>
-
toBuilder
public MatcherBuilder toBuilder()
-
-