public class MetricDimension extends Object implements Serializable
The dimension of a metric.
| Constructor and Description |
|---|
MetricDimension() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDimensionName()
A unique identifier for the dimension.
|
String |
getOperator()
Defines how the
dimensionValues of a dimension are
interpreted. |
int |
hashCode() |
void |
setDimensionName(String dimensionName)
A unique identifier for the dimension.
|
void |
setOperator(DimensionValueOperator operator)
Defines how the
dimensionValues of a dimension are
interpreted. |
void |
setOperator(String operator)
Defines how the
dimensionValues of a dimension are
interpreted. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MetricDimension |
withDimensionName(String dimensionName)
A unique identifier for the dimension.
|
MetricDimension |
withOperator(DimensionValueOperator operator)
Defines how the
dimensionValues of a dimension are
interpreted. |
MetricDimension |
withOperator(String operator)
Defines how the
dimensionValues of a dimension are
interpreted. |
public String getDimensionName()
A unique identifier for the dimension.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
A unique identifier for the dimension.
public void setDimensionName(String dimensionName)
A unique identifier for the dimension.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
dimensionName - A unique identifier for the dimension.
public MetricDimension withDimensionName(String dimensionName)
A unique identifier for the dimension.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
dimensionName - A unique identifier for the dimension.
public String getOperator()
Defines how the dimensionValues of a dimension are
interpreted. For example, for DimensionType TOPIC_FILTER, with
IN operator, a message will be counted only if its topic
matches one of the topic filters. With NOT_IN Operator, a
message will be counted only if it doesn't match any of the topic
filters. The operator is optional: if it's not provided (is
null), it will be interpreted as IN.
Constraints:
Allowed Values: IN, NOT_IN
Defines how the dimensionValues of a dimension are
interpreted. For example, for DimensionType TOPIC_FILTER, with
IN operator, a message will be counted only if its
topic matches one of the topic filters. With NOT_IN
Operator, a message will be counted only if it doesn't match any
of the topic filters. The operator is optional: if it's not
provided (is null), it will be interpreted as
IN.
DimensionValueOperatorpublic void setOperator(String operator)
Defines how the dimensionValues of a dimension are
interpreted. For example, for DimensionType TOPIC_FILTER, with
IN operator, a message will be counted only if its topic
matches one of the topic filters. With NOT_IN Operator, a
message will be counted only if it doesn't match any of the topic
filters. The operator is optional: if it's not provided (is
null), it will be interpreted as IN.
Constraints:
Allowed Values: IN, NOT_IN
operator -
Defines how the dimensionValues of a dimension
are interpreted. For example, for DimensionType TOPIC_FILTER,
with IN operator, a message will be counted only
if its topic matches one of the topic filters. With
NOT_IN Operator, a message will be counted only
if it doesn't match any of the topic filters. The operator is
optional: if it's not provided (is null), it will
be interpreted as IN.
DimensionValueOperatorpublic MetricDimension withOperator(String operator)
Defines how the dimensionValues of a dimension are
interpreted. For example, for DimensionType TOPIC_FILTER, with
IN operator, a message will be counted only if its topic
matches one of the topic filters. With NOT_IN Operator, a
message will be counted only if it doesn't match any of the topic
filters. The operator is optional: if it's not provided (is
null), it will be interpreted as IN.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: IN, NOT_IN
operator -
Defines how the dimensionValues of a dimension
are interpreted. For example, for DimensionType TOPIC_FILTER,
with IN operator, a message will be counted only
if its topic matches one of the topic filters. With
NOT_IN Operator, a message will be counted only
if it doesn't match any of the topic filters. The operator is
optional: if it's not provided (is null), it will
be interpreted as IN.
DimensionValueOperatorpublic void setOperator(DimensionValueOperator operator)
Defines how the dimensionValues of a dimension are
interpreted. For example, for DimensionType TOPIC_FILTER, with
IN operator, a message will be counted only if its topic
matches one of the topic filters. With NOT_IN Operator, a
message will be counted only if it doesn't match any of the topic
filters. The operator is optional: if it's not provided (is
null), it will be interpreted as IN.
Constraints:
Allowed Values: IN, NOT_IN
operator -
Defines how the dimensionValues of a dimension
are interpreted. For example, for DimensionType TOPIC_FILTER,
with IN operator, a message will be counted only
if its topic matches one of the topic filters. With
NOT_IN Operator, a message will be counted only
if it doesn't match any of the topic filters. The operator is
optional: if it's not provided (is null), it will
be interpreted as IN.
DimensionValueOperatorpublic MetricDimension withOperator(DimensionValueOperator operator)
Defines how the dimensionValues of a dimension are
interpreted. For example, for DimensionType TOPIC_FILTER, with
IN operator, a message will be counted only if its topic
matches one of the topic filters. With NOT_IN Operator, a
message will be counted only if it doesn't match any of the topic
filters. The operator is optional: if it's not provided (is
null), it will be interpreted as IN.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: IN, NOT_IN
operator -
Defines how the dimensionValues of a dimension
are interpreted. For example, for DimensionType TOPIC_FILTER,
with IN operator, a message will be counted only
if its topic matches one of the topic filters. With
NOT_IN Operator, a message will be counted only
if it doesn't match any of the topic filters. The operator is
optional: if it's not provided (is null), it will
be interpreted as IN.
DimensionValueOperatorpublic String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.