Class TimeSeriesBaseline
java.lang.Object
com.azure.resourcemanager.monitor.models.TimeSeriesBaseline
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TimeSeriesBaseline>
public final class TimeSeriesBaseline
extends Object
implements com.azure.json.JsonSerializable<TimeSeriesBaseline>
The baseline values for a single time series.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the aggregation property: The aggregation type of the metric.data()Get the data property: The baseline values for each sensitivity.Get the dimensions property: The dimensions of this time series.static TimeSeriesBaselinefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TimeSeriesBaseline from the JsonReader.Get the metadataValues property: The baseline metadata values.Get the timestamps property: The list of timestamps of the baselines.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAggregation(String aggregation) Set the aggregation property: The aggregation type of the metric.withData(List<SingleBaseline> data) Set the data property: The baseline values for each sensitivity.withDimensions(List<MetricSingleDimension> dimensions) Set the dimensions property: The dimensions of this time series.withMetadataValues(List<BaselineMetadata> metadataValues) Set the metadataValues property: The baseline metadata values.withTimestamps(List<OffsetDateTime> timestamps) Set the timestamps property: The list of timestamps of the baselines.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TimeSeriesBaseline
public TimeSeriesBaseline()Creates an instance of TimeSeriesBaseline class.
-
-
Method Details
-
aggregation
Get the aggregation property: The aggregation type of the metric.- Returns:
- the aggregation value.
-
withAggregation
Set the aggregation property: The aggregation type of the metric.- Parameters:
aggregation- the aggregation value to set.- Returns:
- the TimeSeriesBaseline object itself.
-
dimensions
Get the dimensions property: The dimensions of this time series.- Returns:
- the dimensions value.
-
withDimensions
Set the dimensions property: The dimensions of this time series.- Parameters:
dimensions- the dimensions value to set.- Returns:
- the TimeSeriesBaseline object itself.
-
timestamps
Get the timestamps property: The list of timestamps of the baselines.- Returns:
- the timestamps value.
-
withTimestamps
Set the timestamps property: The list of timestamps of the baselines.- Parameters:
timestamps- the timestamps value to set.- Returns:
- the TimeSeriesBaseline object itself.
-
data
Get the data property: The baseline values for each sensitivity.- Returns:
- the data value.
-
withData
Set the data property: The baseline values for each sensitivity.- Parameters:
data- the data value to set.- Returns:
- the TimeSeriesBaseline object itself.
-
metadataValues
Get the metadataValues property: The baseline metadata values.- Returns:
- the metadataValues value.
-
withMetadataValues
Set the metadataValues property: The baseline metadata values.- Parameters:
metadataValues- the metadataValues value to set.- Returns:
- the TimeSeriesBaseline object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TimeSeriesBaseline>- Throws:
IOException
-
fromJson
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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the TimeSeriesBaseline.
-