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 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.
    • 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.
    • dimensions

      public List<MetricSingleDimension> dimensions()
      Get the dimensions property: The dimensions of this time series.
      Returns:
      the dimensions value.
    • withDimensions

      public TimeSeriesBaseline withDimensions(List<MetricSingleDimension> dimensions)
      Set the dimensions property: The dimensions of this time series.
      Parameters:
      dimensions - the dimensions value to set.
      Returns:
      the TimeSeriesBaseline object itself.
    • timestamps

      public List<OffsetDateTime> timestamps()
      Get the timestamps property: The list of timestamps of the baselines.
      Returns:
      the timestamps value.
    • withTimestamps

      public TimeSeriesBaseline withTimestamps(List<OffsetDateTime> timestamps)
      Set the timestamps property: The list of timestamps of the baselines.
      Parameters:
      timestamps - the timestamps value to set.
      Returns:
      the TimeSeriesBaseline object itself.
    • data

      public List<SingleBaseline> data()
      Get the data property: The baseline values for each sensitivity.
      Returns:
      the data value.
    • withData

      public TimeSeriesBaseline withData(List<SingleBaseline> data)
      Set the data property: The baseline values for each sensitivity.
      Parameters:
      data - the data value to set.
      Returns:
      the TimeSeriesBaseline object itself.
    • metadataValues

      public List<BaselineMetadata> metadataValues()
      Get the metadataValues property: The baseline metadata values.
      Returns:
      the metadataValues value.
    • withMetadataValues

      public TimeSeriesBaseline withMetadataValues(List<BaselineMetadata> metadataValues)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<TimeSeriesBaseline>
      Throws:
      IOException
    • fromJson

      public static TimeSeriesBaseline fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.