DimensionValue Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.DimensionValue

Implements

public final class DimensionValue
implements JsonSerializable<DimensionValue>

Represents a metric dimension value.

Method Summary

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

Reads an instance of DimensionValue from the JsonReader.

String getName()

Get the name property: The name of the dimension.

String getValue()

Get the value property: The value of the dimension.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static DimensionValue fromJson(JsonReader jsonReader)

Reads an instance of DimensionValue from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DimensionValue 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 DimensionValue.

getName

public String getName()

Get the name property: The name of the dimension.

Returns:

the name value.

getValue

public String getValue()

Get the value property: The value of the dimension.

Returns:

the value value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to