MetricDimension Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. MetricDimension
- com.
Implements
public final class MetricDimension
implements JsonSerializable<MetricDimension>
Specifies a metric dimension.
Constructor Summary
Constructor | Description |
---|---|
MetricDimension() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
String |
name()
Get the name property: Name of the dimension. |
String |
operator()
Get the operator property: the dimension operator. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
List<String> |
values()
Get the values property: list of dimension values. |
Metric |
withName(String name)
Set the name property: Name of the dimension. |
Metric |
withOperator(String operator)
Set the operator property: the dimension operator. |
Metric |
withValues(List<String> values)
Set the values property: list of dimension values. |
Methods inherited from java.lang.Object
Constructor Details
MetricDimension
public MetricDimension()
Creates an instance of MetricDimension class.
Method Details
fromJson
public static MetricDimension fromJson(JsonReader jsonReader)
Reads an instance of MetricDimension from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of the dimension.
Returns:
operator
public String operator()
Get the operator property: the dimension operator. Only 'Include' and 'Exclude' are supported.
Returns:
toJson
validate
public void validate()
Validates the instance.
values
public List
Get the values property: list of dimension values.
Returns:
withName
public MetricDimension withName(String name)
Set the name property: Name of the dimension.
Parameters:
Returns:
withOperator
public MetricDimension withOperator(String operator)
Set the operator property: the dimension operator. Only 'Include' and 'Exclude' are supported.
Parameters:
Returns:
withValues
public MetricDimension withValues(List
Set the values property: list of dimension values.
Parameters:
Returns:
Applies to
Azure SDK for Java