Class AlertingAction
java.lang.Object
com.azure.resourcemanager.monitor.models.Action
com.azure.resourcemanager.monitor.models.AlertingAction
Specify action need to be taken when rule type is Alert.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the aznsAction property: Azure action group reference.severity()Get the severity property: Severity of the alert.Get the throttlingInMin property: time (in minutes) for which Alerts should be throttled or suppressed.trigger()Get the trigger property: The trigger condition that results in the alert rule being.voidvalidate()Validates the instance.withAznsAction(AzNsActionGroup aznsAction) Set the aznsAction property: Azure action group reference.withSeverity(AlertSeverity severity) Set the severity property: Severity of the alert.withThrottlingInMin(Integer throttlingInMin) Set the throttlingInMin property: time (in minutes) for which Alerts should be throttled or suppressed.withTrigger(TriggerCondition trigger) Set the trigger property: The trigger condition that results in the alert rule being.
-
Constructor Details
-
AlertingAction
public AlertingAction()
-
-
Method Details
-
severity
Get the severity property: Severity of the alert.- Returns:
- the severity value.
-
withSeverity
Set the severity property: Severity of the alert.- Parameters:
severity- the severity value to set.- Returns:
- the AlertingAction object itself.
-
aznsAction
Get the aznsAction property: Azure action group reference.- Returns:
- the aznsAction value.
-
withAznsAction
Set the aznsAction property: Azure action group reference.- Parameters:
aznsAction- the aznsAction value to set.- Returns:
- the AlertingAction object itself.
-
throttlingInMin
Get the throttlingInMin property: time (in minutes) for which Alerts should be throttled or suppressed.- Returns:
- the throttlingInMin value.
-
withThrottlingInMin
Set the throttlingInMin property: 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 property: The trigger condition that results in the alert rule being.- Returns:
- the trigger value.
-
withTrigger
Set the trigger property: The trigger condition that results in the alert rule being.- Parameters:
trigger- the trigger value to set.- Returns:
- the AlertingAction object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classAction- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-