MetricName Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.MetricName

Implements

public final class MetricName
implements JsonSerializable<MetricName>

A metric name.

Constructor Summary

Constructor Description
MetricName()

Creates an instance of MetricName class.

Method Summary

Modifier and Type Method and Description
static MetricName fromJson(JsonReader jsonReader)

Reads an instance of MetricName from the JsonReader.

String localizedValue()

Get the localizedValue property: The friendly name of the metric.

JsonWriter 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:

jsonReader - The JsonReader being read.

Returns:

An instance of MetricName if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MetricName.

localizedValue

public String localizedValue()

Get the localizedValue property: The friendly name of the metric.

Returns:

the localizedValue value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: The name of the metric.

Returns:

the value value.

Applies to