SingleBaseline Class

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

Implements

public final class SingleBaseline
implements JsonSerializable<SingleBaseline>

The baseline values for a single sensitivity value.

Constructor Summary

Constructor Description
SingleBaseline()

Creates an instance of SingleBaseline class.

Method Summary

Modifier and Type Method and Description
static SingleBaseline fromJson(JsonReader jsonReader)

Reads an instance of SingleBaseline from the JsonReader.

List<Double> highThresholds()

Get the highThresholds property: The high thresholds of the baseline.

List<Double> lowThresholds()

Get the lowThresholds property: The low thresholds of the baseline.

BaselineSensitivity sensitivity()

Get the sensitivity property: the sensitivity of the baseline.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SingleBaseline withHighThresholds(List<Double> highThresholds)

Set the highThresholds property: The high thresholds of the baseline.

SingleBaseline withLowThresholds(List<Double> lowThresholds)

Set the lowThresholds property: The low thresholds of the baseline.

SingleBaseline withSensitivity(BaselineSensitivity sensitivity)

Set the sensitivity property: the sensitivity of the baseline.

Methods inherited from java.lang.Object

Constructor Details

SingleBaseline

public SingleBaseline()

Creates an instance of SingleBaseline class.

Method Details

fromJson

public static SingleBaseline fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

highThresholds

public List highThresholds()

Get the highThresholds property: The high thresholds of the baseline.

Returns:

the highThresholds value.

lowThresholds

public List lowThresholds()

Get the lowThresholds property: The low thresholds of the baseline.

Returns:

the lowThresholds value.

sensitivity

public BaselineSensitivity sensitivity()

Get the sensitivity property: the sensitivity of the baseline.

Returns:

the sensitivity value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHighThresholds

public SingleBaseline withHighThresholds(List highThresholds)

Set the highThresholds property: The high thresholds of the baseline.

Parameters:

highThresholds - the highThresholds value to set.

Returns:

the SingleBaseline object itself.

withLowThresholds

public SingleBaseline withLowThresholds(List lowThresholds)

Set the lowThresholds property: The low thresholds of the baseline.

Parameters:

lowThresholds - the lowThresholds value to set.

Returns:

the SingleBaseline object itself.

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.

Applies to