MetricSingleDimension Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. MetricSingleDimension
- com.
Implements
public final class MetricSingleDimension
implements JsonSerializable<MetricSingleDimension>
The metric dimension name and value.
Constructor | Description |
---|---|
Metric |
Creates an instance of Metric |
Modifier and Type | Method and Description |
---|---|
static
Metric |
from Reads an instance of Metric |
String |
name()
Get the name property: Name of the dimension. |
Json |
to |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: Value of the dimension. |
Metric |
with Set the name property: Name of the dimension. |
Metric |
with Set the value property: Value of the dimension. |
Methods inherited from java.lang.Object
MetricSingleDimension
public MetricSingleDimension()
Creates an instance of MetricSingleDimension class.
fromJson
public static MetricSingleDimension fromJson(JsonReader jsonReader)
Reads an instance of MetricSingleDimension from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of the dimension.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: Value of the dimension.
Returns:
withName
public MetricSingleDimension withName(String name)
Set the name property: Name of the dimension.
Parameters:
Returns:
withValue
public MetricSingleDimension withValue(String value)
Set the value property: Value of the dimension.
Parameters:
Returns: