Class AlertingAction
java.lang.Object
com.microsoft.azure.management.monitor.Action
com.microsoft.azure.management.monitor.AlertingAction
Specify action need to be taken when rule type is Alert.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet azure action group reference.severity()
Get severity of the alert.Get time (in minutes) for which Alerts should be throttled or suppressed.trigger()
Get the trigger condition that results in the alert rule being.withAznsAction
(AzNsActionGroup aznsAction) Set azure action group reference.withSeverity
(AlertSeverity severity) Set severity of the alert.withThrottlingInMin
(Integer throttlingInMin) Set time (in minutes) for which Alerts should be throttled or suppressed.withTrigger
(TriggerCondition trigger) Set the trigger condition that results in the alert rule being.
-
Constructor Details
-
AlertingAction
public AlertingAction()
-
-
Method Details
-
severity
Get severity of the alert. Possible values include: '0', '1', '2', '3', '4'.- Returns:
- the severity value
-
withSeverity
Set severity of the alert. Possible values include: '0', '1', '2', '3', '4'.- Parameters:
severity
- the severity value to set- Returns:
- the AlertingAction object itself.
-
aznsAction
Get azure action group reference.- Returns:
- the aznsAction value
-
withAznsAction
Set azure action group reference.- Parameters:
aznsAction
- the aznsAction value to set- Returns:
- the AlertingAction object itself.
-
throttlingInMin
Get time (in minutes) for which Alerts should be throttled or suppressed.- Returns:
- the throttlingInMin value
-
withThrottlingInMin
Set time (in minutes) for which Alerts should be throttled or suppressed.- Parameters:
throttlingInMin
- the throttlingInMin value to set- Returns:
- the AlertingAction object itself.
-
trigger
Get the trigger condition that results in the alert rule being.- Returns:
- the trigger value
-
withTrigger
Set the trigger condition that results in the alert rule being.- Parameters:
trigger
- the trigger value to set- Returns:
- the AlertingAction object itself.
-