TimeSeriesElement Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.TimeSeriesElement

Implements

public final class TimeSeriesElement
implements JsonSerializable<TimeSeriesElement>

A time series result type. The discriminator value is always TimeSeries in this case.

Constructor Summary

Constructor Description
TimeSeriesElement()

Creates an instance of TimeSeriesElement class.

Method Summary

Modifier and Type Method and Description
List<MetricValue> data()

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

static TimeSeriesElement fromJson(JsonReader jsonReader)

Reads an instance of TimeSeriesElement from the JsonReader.

List<MetadataValueInner> metadatavalues()

Get the metadatavalues property: the metadata values returned if $filter was specified in the call.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TimeSeriesElement withData(List<MetricValue> data)

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

TimeSeriesElement withMetadatavalues(List<MetadataValueInner> metadatavalues)

Set the metadatavalues property: the metadata values returned if $filter was specified in the call.

Methods inherited from java.lang.Object

Constructor Details

TimeSeriesElement

public TimeSeriesElement()

Creates an instance of TimeSeriesElement class.

Method Details

data

public List data()

Get the data property: An array of data points representing the metric values. This is only returned if a result type of data is specified.

Returns:

the data value.

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.

metadatavalues

public List metadatavalues()

Get the metadatavalues property: the metadata values returned if $filter was specified in the call.

Returns:

the metadatavalues value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withData

public TimeSeriesElement withData(List data)

Set the data property: An array of data points representing the metric values. This is only returned if a result type of data is specified.

Parameters:

data - the data value to set.

Returns:

the TimeSeriesElement object itself.

withMetadatavalues

public TimeSeriesElement withMetadatavalues(List metadatavalues)

Set the metadatavalues property: the metadata values returned if $filter was specified in the call.

Parameters:

metadatavalues - the metadatavalues value to set.

Returns:

the TimeSeriesElement object itself.

Applies to