AmqpC2DMessagesNotInAllowedRange Class

public final class AmqpC2DMessagesNotInAllowedRange
extends TimeWindowCustomAlertRule

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

Constructor Summary

Constructor Description
AmqpC2DMessagesNotInAllowedRange()

Creates an instance of AmqpC2DMessagesNotInAllowedRange class.

Method Summary

Modifier and Type Method and Description
void validate()

Validates the instance.

AmqpC2DMessagesNotInAllowedRange withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

AmqpC2DMessagesNotInAllowedRange withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

AmqpC2DMessagesNotInAllowedRange withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

AmqpC2DMessagesNotInAllowedRange 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

AmqpC2DMessagesNotInAllowedRange

public AmqpC2DMessagesNotInAllowedRange()

Creates an instance of AmqpC2DMessagesNotInAllowedRange class.

Method Details

validate

public void validate()

Validates the instance.

Overrides:

AmqpC2DMessagesNotInAllowedRange.validate()

withIsEnabled

public AmqpC2DMessagesNotInAllowedRange withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Overrides:

AmqpC2DMessagesNotInAllowedRange.withIsEnabled(boolean isEnabled)

Parameters:

isEnabled

withMaxThreshold

public AmqpC2DMessagesNotInAllowedRange withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

Overrides:

AmqpC2DMessagesNotInAllowedRange.withMaxThreshold(int maxThreshold)

Parameters:

maxThreshold

withMinThreshold

public AmqpC2DMessagesNotInAllowedRange withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

Overrides:

AmqpC2DMessagesNotInAllowedRange.withMinThreshold(int minThreshold)

Parameters:

minThreshold

withTimeWindowSize

public AmqpC2DMessagesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize)

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

Overrides:

AmqpC2DMessagesNotInAllowedRange.withTimeWindowSize(Duration timeWindowSize)

Parameters:

timeWindowSize

Applies to