HttpC2DMessagesNotInAllowedRange Class

public final class HttpC2DMessagesNotInAllowedRange
extends TimeWindowCustomAlertRule

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

Constructor Summary

Constructor Description
HttpC2DMessagesNotInAllowedRange()

Creates an instance of HttpC2DMessagesNotInAllowedRange class.

Method Summary

Modifier and Type Method and Description
void validate()

Validates the instance.

HttpC2DMessagesNotInAllowedRange withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

HttpC2DMessagesNotInAllowedRange withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

HttpC2DMessagesNotInAllowedRange withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

HttpC2DMessagesNotInAllowedRange 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

HttpC2DMessagesNotInAllowedRange

public HttpC2DMessagesNotInAllowedRange()

Creates an instance of HttpC2DMessagesNotInAllowedRange class.

Method Details

validate

public void validate()

Validates the instance.

Overrides:

HttpC2DMessagesNotInAllowedRange.validate()

withIsEnabled

public HttpC2DMessagesNotInAllowedRange withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Overrides:

HttpC2DMessagesNotInAllowedRange.withIsEnabled(boolean isEnabled)

Parameters:

isEnabled

withMaxThreshold

public HttpC2DMessagesNotInAllowedRange withMaxThreshold(int maxThreshold)

Set the maxThreshold property: The maximum threshold.

Overrides:

HttpC2DMessagesNotInAllowedRange.withMaxThreshold(int maxThreshold)

Parameters:

maxThreshold

withMinThreshold

public HttpC2DMessagesNotInAllowedRange withMinThreshold(int minThreshold)

Set the minThreshold property: The minimum threshold.

Overrides:

HttpC2DMessagesNotInAllowedRange.withMinThreshold(int minThreshold)

Parameters:

minThreshold

withTimeWindowSize

public HttpC2DMessagesNotInAllowedRange withTimeWindowSize(Duration timeWindowSize)

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

Overrides:

HttpC2DMessagesNotInAllowedRange.withTimeWindowSize(Duration timeWindowSize)

Parameters:

timeWindowSize

Applies to