TimeWindowCustomAlertRule Class

public class TimeWindowCustomAlertRule
extends ThresholdCustomAlertRule

A custom alert rule that checks if the number of activities (depends on the custom alert type) in a time window is within the given range.

Constructor Summary

Constructor Description
TimeWindowCustomAlertRule()

Creates an instance of TimeWindowCustomAlertRule class.

Method Summary

Modifier and Type Method and Description
Duration timeWindowSize()

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

void validate()

Validates the instance.

TimeWindowCustomAlertRule withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

TimeWindowCustomAlertRule withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

TimeWindowCustomAlertRule withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

TimeWindowCustomAlertRule 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 java.lang.Object

Constructor Details

TimeWindowCustomAlertRule

public TimeWindowCustomAlertRule()

Creates an instance of TimeWindowCustomAlertRule class.

Method Details

timeWindowSize

public Duration timeWindowSize()

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

Returns:

the timeWindowSize value.

validate

public void validate()

Validates the instance.

Overrides:

TimeWindowCustomAlertRule.validate()

withIsEnabled

public TimeWindowCustomAlertRule withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Overrides:

TimeWindowCustomAlertRule.withIsEnabled(boolean isEnabled)

Parameters:

isEnabled

withMaxThreshold

public TimeWindowCustomAlertRule withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

Overrides:

TimeWindowCustomAlertRule.withMaxThreshold(int maxThreshold)

Parameters:

maxThreshold

withMinThreshold

public TimeWindowCustomAlertRule withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

Overrides:

TimeWindowCustomAlertRule.withMinThreshold(int minThreshold)

Parameters:

minThreshold

withTimeWindowSize

public TimeWindowCustomAlertRule withTimeWindowSize(Duration timeWindowSize)

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

Parameters:

timeWindowSize - the timeWindowSize value to set.

Returns:

the TimeWindowCustomAlertRule object itself.

Applies to