DirectMethodInvokesNotInAllowedRange Class

public final class DirectMethodInvokesNotInAllowedRange
extends TimeWindowCustomAlertRule

Number of direct method invokes is not in allowed range.

Constructor Summary

Constructor Description
DirectMethodInvokesNotInAllowedRange()

Creates an instance of DirectMethodInvokesNotInAllowedRange class.

Method Summary

Modifier and Type Method and Description
void validate()

Validates the instance.

DirectMethodInvokesNotInAllowedRange withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

DirectMethodInvokesNotInAllowedRange withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

DirectMethodInvokesNotInAllowedRange withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

DirectMethodInvokesNotInAllowedRange 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

DirectMethodInvokesNotInAllowedRange

public DirectMethodInvokesNotInAllowedRange()

Creates an instance of DirectMethodInvokesNotInAllowedRange class.

Method Details

validate

public void validate()

Validates the instance.

Overrides:

DirectMethodInvokesNotInAllowedRange.validate()

withIsEnabled

public DirectMethodInvokesNotInAllowedRange withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Overrides:

DirectMethodInvokesNotInAllowedRange.withIsEnabled(boolean isEnabled)

Parameters:

isEnabled

withMaxThreshold

public DirectMethodInvokesNotInAllowedRange withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

Overrides:

DirectMethodInvokesNotInAllowedRange.withMaxThreshold(int maxThreshold)

Parameters:

maxThreshold

withMinThreshold

public DirectMethodInvokesNotInAllowedRange withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

Overrides:

DirectMethodInvokesNotInAllowedRange.withMinThreshold(int minThreshold)

Parameters:

minThreshold

withTimeWindowSize

public DirectMethodInvokesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize)

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

Overrides:

DirectMethodInvokesNotInAllowedRange.withTimeWindowSize(Duration timeWindowSize)

Parameters:

timeWindowSize

Applies to