Class TimeWindowCustomAlertRule
java.lang.Object
com.azure.resourcemanager.security.models.CustomAlertRule
com.azure.resourcemanager.security.models.ThresholdCustomAlertRule
com.azure.resourcemanager.security.models.TimeWindowCustomAlertRule
- Direct Known Subclasses:
ActiveConnectionsNotInAllowedRange
,AmqpC2DMessagesNotInAllowedRange
,AmqpC2DRejectedMessagesNotInAllowedRange
,AmqpD2CMessagesNotInAllowedRange
,DirectMethodInvokesNotInAllowedRange
,FailedLocalLoginsNotInAllowedRange
,FileUploadsNotInAllowedRange
,HttpC2DMessagesNotInAllowedRange
,HttpC2DRejectedMessagesNotInAllowedRange
,HttpD2CMessagesNotInAllowedRange
,MqttC2DMessagesNotInAllowedRange
,MqttC2DRejectedMessagesNotInAllowedRange
,MqttD2CMessagesNotInAllowedRange
,QueuePurgesNotInAllowedRange
,TwinUpdatesNotInAllowedRange
,UnauthorizedOperationsNotInAllowedRange
A custom alert rule that checks if the number of activities (depends on the custom alert type) in a time window is
within the given range.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the timeWindowSize property: The time window size in iso8601 format.void
validate()
Validates the instance.withIsEnabled
(boolean isEnabled) Set the isEnabled property: Status of the custom alert.withMaxThreshold
(int maxThreshold) Set the maxThreshold property: The maximum threshold.withMinThreshold
(int minThreshold) Set the minThreshold property: The minimum threshold.withTimeWindowSize
(Duration timeWindowSize) Set the timeWindowSize property: The time window size in iso8601 format.Methods inherited from class com.azure.resourcemanager.security.models.ThresholdCustomAlertRule
maxThreshold, minThreshold
Methods inherited from class com.azure.resourcemanager.security.models.CustomAlertRule
description, displayName, isEnabled
-
Constructor Details
-
TimeWindowCustomAlertRule
public TimeWindowCustomAlertRule()
-
-
Method Details
-
timeWindowSize
Get the timeWindowSize property: The time window size in iso8601 format.- Returns:
- the timeWindowSize value.
-
withTimeWindowSize
Set the timeWindowSize property: The time window size in iso8601 format.- Parameters:
timeWindowSize
- the timeWindowSize value to set.- Returns:
- the TimeWindowCustomAlertRule object itself.
-
withMinThreshold
Set the minThreshold property: The minimum threshold.- Overrides:
withMinThreshold
in classThresholdCustomAlertRule
- Parameters:
minThreshold
- the minThreshold value to set.- Returns:
- the ThresholdCustomAlertRule object itself.
-
withMaxThreshold
Set the maxThreshold property: The maximum threshold.- Overrides:
withMaxThreshold
in classThresholdCustomAlertRule
- Parameters:
maxThreshold
- the maxThreshold value to set.- Returns:
- the ThresholdCustomAlertRule object itself.
-
withIsEnabled
Set the isEnabled property: Status of the custom alert.- Overrides:
withIsEnabled
in classThresholdCustomAlertRule
- Parameters:
isEnabled
- the isEnabled value to set.- Returns:
- the CustomAlertRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classThresholdCustomAlertRule
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-