Class SingleBaseline

java.lang.Object
com.azure.resourcemanager.monitor.models.SingleBaseline
All Implemented Interfaces:
com.azure.json.JsonSerializable<SingleBaseline>

public final class SingleBaseline extends Object implements com.azure.json.JsonSerializable<SingleBaseline>
The baseline values for a single sensitivity value.
  • Constructor Details

    • SingleBaseline

      public SingleBaseline()
      Creates an instance of SingleBaseline class.
  • Method Details

    • sensitivity

      public BaselineSensitivity sensitivity()
      Get the sensitivity property: the sensitivity of the baseline.
      Returns:
      the sensitivity value.
    • withSensitivity

      public SingleBaseline withSensitivity(BaselineSensitivity sensitivity)
      Set the sensitivity property: the sensitivity of the baseline.
      Parameters:
      sensitivity - the sensitivity value to set.
      Returns:
      the SingleBaseline object itself.
    • lowThresholds

      public List<Double> lowThresholds()
      Get the lowThresholds property: The low thresholds of the baseline.
      Returns:
      the lowThresholds value.
    • withLowThresholds

      public SingleBaseline withLowThresholds(List<Double> lowThresholds)
      Set the lowThresholds property: The low thresholds of the baseline.
      Parameters:
      lowThresholds - the lowThresholds value to set.
      Returns:
      the SingleBaseline object itself.
    • highThresholds

      public List<Double> highThresholds()
      Get the highThresholds property: The high thresholds of the baseline.
      Returns:
      the highThresholds value.
    • withHighThresholds

      public SingleBaseline withHighThresholds(List<Double> highThresholds)
      Set the highThresholds property: The high thresholds of the baseline.
      Parameters:
      highThresholds - the highThresholds value to set.
      Returns:
      the SingleBaseline 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<SingleBaseline>
      Throws:
      IOException
    • fromJson

      public static SingleBaseline fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SingleBaseline from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SingleBaseline 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 SingleBaseline.