TwinUpdatesNotInAllowedRange Class

public final class TwinUpdatesNotInAllowedRange
extends TimeWindowCustomAlertRule

Number of twin updates is not in allowed range.

Constructor Summary

Constructor Description
TwinUpdatesNotInAllowedRange()

Creates an instance of TwinUpdatesNotInAllowedRange class.

Method Summary

Modifier and Type Method and Description
void validate()

Validates the instance.

TwinUpdatesNotInAllowedRange withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

TwinUpdatesNotInAllowedRange withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

TwinUpdatesNotInAllowedRange withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

TwinUpdatesNotInAllowedRange 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

TwinUpdatesNotInAllowedRange

public TwinUpdatesNotInAllowedRange()

Creates an instance of TwinUpdatesNotInAllowedRange class.

Method Details

validate

public void validate()

Validates the instance.

Overrides:

TwinUpdatesNotInAllowedRange.validate()

withIsEnabled

public TwinUpdatesNotInAllowedRange withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Overrides:

TwinUpdatesNotInAllowedRange.withIsEnabled(boolean isEnabled)

Parameters:

isEnabled

withMaxThreshold

public TwinUpdatesNotInAllowedRange withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

Overrides:

TwinUpdatesNotInAllowedRange.withMaxThreshold(int maxThreshold)

Parameters:

maxThreshold

withMinThreshold

public TwinUpdatesNotInAllowedRange withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

Overrides:

TwinUpdatesNotInAllowedRange.withMinThreshold(int minThreshold)

Parameters:

minThreshold

withTimeWindowSize

public TwinUpdatesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize)

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

Overrides:

TwinUpdatesNotInAllowedRange.withTimeWindowSize(Duration timeWindowSize)

Parameters:

timeWindowSize

Applies to