AmqpC2DRejectedMessagesNotInAllowedRange Class

public final class AmqpC2DRejectedMessagesNotInAllowedRange
extends TimeWindowCustomAlertRule

Number of rejected cloud to device messages (AMQP protocol) is not in allowed range.

Constructor Summary

Constructor Description
AmqpC2DRejectedMessagesNotInAllowedRange()

Creates an instance of AmqpC2DRejectedMessagesNotInAllowedRange class.

Method Summary

Modifier and Type Method and Description
void validate()

Validates the instance.

AmqpC2DRejectedMessagesNotInAllowedRange withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

AmqpC2DRejectedMessagesNotInAllowedRange withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

AmqpC2DRejectedMessagesNotInAllowedRange withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

AmqpC2DRejectedMessagesNotInAllowedRange 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

AmqpC2DRejectedMessagesNotInAllowedRange

public AmqpC2DRejectedMessagesNotInAllowedRange()

Creates an instance of AmqpC2DRejectedMessagesNotInAllowedRange class.

Method Details

validate

public void validate()

Validates the instance.

Overrides:

AmqpC2DRejectedMessagesNotInAllowedRange.validate()

withIsEnabled

public AmqpC2DRejectedMessagesNotInAllowedRange withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Overrides:

AmqpC2DRejectedMessagesNotInAllowedRange.withIsEnabled(boolean isEnabled)

Parameters:

isEnabled

withMaxThreshold

public AmqpC2DRejectedMessagesNotInAllowedRange withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

Overrides:

AmqpC2DRejectedMessagesNotInAllowedRange.withMaxThreshold(int maxThreshold)

Parameters:

maxThreshold

withMinThreshold

public AmqpC2DRejectedMessagesNotInAllowedRange withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

Overrides:

AmqpC2DRejectedMessagesNotInAllowedRange.withMinThreshold(int minThreshold)

Parameters:

minThreshold

withTimeWindowSize

public AmqpC2DRejectedMessagesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize)

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

Overrides:

AmqpC2DRejectedMessagesNotInAllowedRange.withTimeWindowSize(Duration timeWindowSize)

Parameters:

timeWindowSize

Applies to