TimeSeriesElement Class

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

Implements

public final class TimeSeriesElement
implements JsonSerializable<TimeSeriesElement>

The time series returned when a data query is performed.

Method Summary

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

Reads an instance of TimeSeriesElement from the JsonReader.

List<MetricValue> getData()

Get the data property: An array of data points representing the metric values.

List<DimensionValue> getDimensionValues()

Get the dimensionValues property: The dimension values.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static TimeSeriesElement fromJson(JsonReader jsonReader)

Reads an instance of TimeSeriesElement from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getData

public List<MetricValue> getData()

Get the data property: An array of data points representing the metric values.

Returns:

the data value.

getDimensionValues

public List<DimensionValue> getDimensionValues()

Get the dimensionValues property: The dimension values.

Returns:

the dimensionValues value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to