ActiveConnectionsNotInAllowedRange Class

public final class ActiveConnectionsNotInAllowedRange
extends TimeWindowCustomAlertRule

Number of active connections is not in allowed range.

Constructor Summary

Constructor Description
ActiveConnectionsNotInAllowedRange()

Creates an instance of ActiveConnectionsNotInAllowedRange class.

Method Summary

Modifier and Type Method and Description
void validate()

Validates the instance.

ActiveConnectionsNotInAllowedRange withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

ActiveConnectionsNotInAllowedRange withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

ActiveConnectionsNotInAllowedRange withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

ActiveConnectionsNotInAllowedRange withTimeWindowSize(Duration timeWindowSize)

Set the timeWindowSize property: The time window size in iso8601 format.

Methods inherited from CustomAlertRule

Methods inherited from ThresholdCustomAlertRule

Methods inherited from TimeWindowCustomAlertRule

Methods inherited from java.lang.Object

Constructor Details

ActiveConnectionsNotInAllowedRange

public ActiveConnectionsNotInAllowedRange()

Creates an instance of ActiveConnectionsNotInAllowedRange class.

Method Details

validate

public void validate()

Validates the instance.

Overrides:

ActiveConnectionsNotInAllowedRange.validate()

withIsEnabled

public ActiveConnectionsNotInAllowedRange withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Overrides:

ActiveConnectionsNotInAllowedRange.withIsEnabled(boolean isEnabled)

Parameters:

isEnabled

withMaxThreshold

public ActiveConnectionsNotInAllowedRange withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

Overrides:

ActiveConnectionsNotInAllowedRange.withMaxThreshold(int maxThreshold)

Parameters:

maxThreshold

withMinThreshold

public ActiveConnectionsNotInAllowedRange withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

Overrides:

ActiveConnectionsNotInAllowedRange.withMinThreshold(int minThreshold)

Parameters:

minThreshold

withTimeWindowSize

public ActiveConnectionsNotInAllowedRange withTimeWindowSize(Duration timeWindowSize)

Set the timeWindowSize property: The time window size in iso8601 format.

Overrides:

ActiveConnectionsNotInAllowedRange.withTimeWindowSize(Duration timeWindowSize)

Parameters:

timeWindowSize

Applies to