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 Summary
Constructor | Description |
---|---|
MetricSingleDimension() |
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. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: Value of the dimension. |
Metric |
withName(String name)
Set the name property: Name of the dimension. |
Metric |
withValue(String value)
Set the value property: Value of the dimension. |
Methods inherited from java.lang.Object
Constructor Details
MetricSingleDimension
public MetricSingleDimension()
Creates an instance of MetricSingleDimension class.
Method Details
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:
Applies to
Azure SDK for Java