MetricDefinitions Class

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

Implements

public final class MetricDefinitions
implements JsonSerializable<MetricDefinitions>

Represents collection of metric definitions.

Method Summary

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

Reads an instance of MetricDefinitions from the JsonReader.

List<MetricDefinition> getValue()

Get the value property: the values for the metric definitions.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static MetricDefinitions fromJson(JsonReader jsonReader)

Reads an instance of MetricDefinitions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getValue

public List<MetricDefinition> getValue()

Get the value property: the values for the metric definitions.

Returns:

the value value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to