MetricName Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. MetricName
- com.
Implements
public final class MetricName
implements JsonSerializable<MetricName>
A metric name.
Constructor Summary
Constructor | Description |
---|---|
MetricName() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
String |
localizedValue()
Get the localized |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: The name of the metric. |
Methods inherited from java.lang.Object
Constructor Details
MetricName
public MetricName()
Creates an instance of MetricName class.
Method Details
fromJson
public static MetricName fromJson(JsonReader jsonReader)
Reads an instance of MetricName from the JsonReader.
Parameters:
Returns:
Throws:
localizedValue
public String localizedValue()
Get the localizedValue property: The friendly name of the metric.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: The name of the metric.
Returns:
Applies to
Azure SDK for Java