public class Match extends Object
Modifier and Type | Field and Description |
---|---|
static MatchType |
DEFAULT_TYPE
The default value :
MatchType.EQUALS |
Constructor and Description |
---|
Match()
Default constructor
|
Match(JsonObject json)
Create an instance from a
JsonObject |
Match(Match other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getAlias() |
MetricsDomain |
getDomain() |
String |
getLabel() |
MatchType |
getType() |
String |
getValue() |
Match |
setAlias(String alias)
Set an alias that would replace the label value when it matches.
|
Match |
setDomain(MetricsDomain domain)
Set the label domain, restricting this rule to a single domain.
|
Match |
setLabel(String label)
Set the label name.
|
Match |
setType(MatchType type)
Set the type of matching to apply.
|
Match |
setValue(String value)
Set the matched value.
|
public static final MatchType DEFAULT_TYPE
MatchType.EQUALS
public Match()
public Match(Match other)
other
- The other Match
to copy when creating thispublic Match(JsonObject json)
JsonObject
json
- the JsonObject to create it frompublic MetricsDomain getDomain()
public Match setDomain(MetricsDomain domain)
domain
- the label domainpublic String getLabel()
public Match setLabel(String label)
label
- the label namepublic String getValue()
public Match setValue(String value)
value
- the value to matchpublic MatchType getType()
public Match setType(MatchType type)
type
- the matcher typepublic String getAlias()
Copyright © 2021 Eclipse. All rights reserved.