MqttC2DRejectedMessagesNotInAllowedRange Class

public final class MqttC2DRejectedMessagesNotInAllowedRange
extends TimeWindowCustomAlertRule

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

Constructor Summary

Constructor Description
MqttC2DRejectedMessagesNotInAllowedRange()

Creates an instance of MqttC2DRejectedMessagesNotInAllowedRange class.

Method Summary

Modifier and Type Method and Description
void validate()

Validates the instance.

MqttC2DRejectedMessagesNotInAllowedRange withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

MqttC2DRejectedMessagesNotInAllowedRange withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

MqttC2DRejectedMessagesNotInAllowedRange withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

MqttC2DRejectedMessagesNotInAllowedRange 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

MqttC2DRejectedMessagesNotInAllowedRange

public MqttC2DRejectedMessagesNotInAllowedRange()

Creates an instance of MqttC2DRejectedMessagesNotInAllowedRange class.

Method Details

validate

public void validate()

Validates the instance.

Overrides:

MqttC2DRejectedMessagesNotInAllowedRange.validate()

withIsEnabled

public MqttC2DRejectedMessagesNotInAllowedRange withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Overrides:

MqttC2DRejectedMessagesNotInAllowedRange.withIsEnabled(boolean isEnabled)

Parameters:

isEnabled

withMaxThreshold

public MqttC2DRejectedMessagesNotInAllowedRange withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

Overrides:

MqttC2DRejectedMessagesNotInAllowedRange.withMaxThreshold(int maxThreshold)

Parameters:

maxThreshold

withMinThreshold

public MqttC2DRejectedMessagesNotInAllowedRange withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

Overrides:

MqttC2DRejectedMessagesNotInAllowedRange.withMinThreshold(int minThreshold)

Parameters:

minThreshold

withTimeWindowSize

public MqttC2DRejectedMessagesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize)

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

Overrides:

MqttC2DRejectedMessagesNotInAllowedRange.withTimeWindowSize(Duration timeWindowSize)

Parameters:

timeWindowSize

Applies to