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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SingleBaseline
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SingleBaseline from the JsonReader.Get the highThresholds property: The high thresholds of the baseline.Get the lowThresholds property: The low thresholds of the baseline.Get the sensitivity property: the sensitivity of the baseline.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withHighThresholds
(List<Double> highThresholds) Set the highThresholds property: The high thresholds of the baseline.withLowThresholds
(List<Double> lowThresholds) Set the lowThresholds property: The low thresholds of the baseline.withSensitivity
(BaselineSensitivity sensitivity) Set the sensitivity property: the sensitivity of the baseline.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SingleBaseline
public SingleBaseline()Creates an instance of SingleBaseline class.
-
-
Method Details
-
sensitivity
Get the sensitivity property: the sensitivity of the baseline.- Returns:
- the sensitivity value.
-
withSensitivity
Set the sensitivity property: the sensitivity of the baseline.- Parameters:
sensitivity
- the sensitivity value to set.- Returns:
- the SingleBaseline object itself.
-
lowThresholds
Get the lowThresholds property: The low thresholds of the baseline.- Returns:
- the lowThresholds value.
-
withLowThresholds
Set the lowThresholds property: The low thresholds of the baseline.- Parameters:
lowThresholds
- the lowThresholds value to set.- Returns:
- the SingleBaseline object itself.
-
highThresholds
Get the highThresholds property: The high thresholds of the baseline.- Returns:
- the highThresholds value.
-
withHighThresholds
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<SingleBaseline>
- Throws:
IOException
-
fromJson
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.
-