TimeSeriesBaseline Class

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

Implements

public final class TimeSeriesBaseline
implements JsonSerializable<TimeSeriesBaseline>

The baseline values for a single time series.

Constructor Summary

Constructor Description
TimeSeriesBaseline()

Creates an instance of TimeSeriesBaseline class.

Method Summary

Modifier and Type Method and Description
String aggregation()

Get the aggregation property: The aggregation type of the metric.

List<SingleBaseline> data()

Get the data property: The baseline values for each sensitivity.

List<MetricSingleDimension> dimensions()

Get the dimensions property: The dimensions of this time series.

static TimeSeriesBaseline fromJson(JsonReader jsonReader)

Reads an instance of TimeSeriesBaseline from the JsonReader.

List<BaselineMetadata> metadataValues()

Get the metadataValues property: The baseline metadata values.

List<OffsetDateTime> timestamps()

Get the timestamps property: The list of timestamps of the baselines.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TimeSeriesBaseline withAggregation(String aggregation)

Set the aggregation property: The aggregation type of the metric.

TimeSeriesBaseline withData(List<SingleBaseline> data)

Set the data property: The baseline values for each sensitivity.

TimeSeriesBaseline withDimensions(List<MetricSingleDimension> dimensions)

Set the dimensions property: The dimensions of this time series.

TimeSeriesBaseline withMetadataValues(List<BaselineMetadata> metadataValues)

Set the metadataValues property: The baseline metadata values.

TimeSeriesBaseline withTimestamps(List<OffsetDateTime> timestamps)

Set the timestamps property: The list of timestamps of the baselines.

Methods inherited from java.lang.Object

Constructor Details

TimeSeriesBaseline

public TimeSeriesBaseline()

Creates an instance of TimeSeriesBaseline class.

Method Details

aggregation

public String aggregation()

Get the aggregation property: The aggregation type of the metric.

Returns:

the aggregation value.

data

public List data()

Get the data property: The baseline values for each sensitivity.

Returns:

the data value.

dimensions

public List dimensions()

Get the dimensions property: The dimensions of this time series.

Returns:

the dimensions value.

fromJson

public static TimeSeriesBaseline fromJson(JsonReader jsonReader)

Reads an instance of TimeSeriesBaseline from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

metadataValues

public List metadataValues()

Get the metadataValues property: The baseline metadata values.

Returns:

the metadataValues value.

timestamps

public List timestamps()

Get the timestamps property: The list of timestamps of the baselines.

Returns:

the timestamps value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAggregation

public TimeSeriesBaseline withAggregation(String aggregation)

Set the aggregation property: The aggregation type of the metric.

Parameters:

aggregation - the aggregation value to set.

Returns:

the TimeSeriesBaseline object itself.

withData

public TimeSeriesBaseline withData(List data)

Set the data property: The baseline values for each sensitivity.

Parameters:

data - the data value to set.

Returns:

the TimeSeriesBaseline object itself.

withDimensions

public TimeSeriesBaseline withDimensions(List dimensions)

Set the dimensions property: The dimensions of this time series.

Parameters:

dimensions - the dimensions value to set.

Returns:

the TimeSeriesBaseline object itself.

withMetadataValues

public TimeSeriesBaseline withMetadataValues(List metadataValues)

Set the metadataValues property: The baseline metadata values.

Parameters:

metadataValues - the metadataValues value to set.

Returns:

the TimeSeriesBaseline object itself.

withTimestamps

public TimeSeriesBaseline withTimestamps(List timestamps)

Set the timestamps property: The list of timestamps of the baselines.

Parameters:

timestamps - the timestamps value to set.

Returns:

the TimeSeriesBaseline object itself.

Applies to