SeverityCondition Class

  • java.lang.Object
    • com.azure.ai.metricsadvisor.administration.models.SeverityCondition

public final class SeverityCondition

Type that describes severity range.

Constructor Summary

Constructor Description
SeverityCondition(AnomalySeverity min, AnomalySeverity max)

Create a SeverityCondition with the range defined by the provided min and max.

Method Summary

Modifier and Type Method and Description
AnomalySeverity getMaxAlertSeverity()

Gets the maximum severity value.

AnomalySeverity getMinAlertSeverity()

Gets the minimum severity value.

SeverityCondition setMaxAlertSeverity(AnomalySeverity max)

Sets the maximum severity value.

SeverityCondition setMinAlertSeverity(AnomalySeverity min)

Sets the minimum severity value.

Methods inherited from java.lang.Object

Constructor Details

SeverityCondition

public SeverityCondition(AnomalySeverity min, AnomalySeverity max)

Create a SeverityCondition with the range defined by the provided min and max.

Parameters:

min - the minimum severity value
max - the maximum severity value

Method Details

getMaxAlertSeverity

public AnomalySeverity getMaxAlertSeverity()

Gets the maximum severity value.

Returns:

the maximum severity value.

getMinAlertSeverity

public AnomalySeverity getMinAlertSeverity()

Gets the minimum severity value.

Returns:

the minimum severity value.

setMaxAlertSeverity

public SeverityCondition setMaxAlertSeverity(AnomalySeverity max)

Sets the maximum severity value.

Parameters:

max - the minimum severity value.

Returns:

the SeverityCondition object itself.

setMinAlertSeverity

public SeverityCondition setMinAlertSeverity(AnomalySeverity min)

Sets the minimum severity value.

Parameters:

min - the minimum severity value.

Returns:

the SeverityCondition object itself.

Applies to