Class RuleWebhookAction
java.lang.Object
com.azure.resourcemanager.monitor.models.RuleAction
com.azure.resourcemanager.monitor.models.RuleWebhookAction
Specifies the action to post to service when the rule condition is evaluated. The discriminator is always
RuleWebhookAction in this case.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the properties property: the dictionary of custom properties to include with the post operation.Get the serviceUri property: the service uri to Post the notification when the alert activates or resolves.voidvalidate()Validates the instance.withProperties(Map<String, String> properties) Set the properties property: the dictionary of custom properties to include with the post operation.withServiceUri(String serviceUri) Set the serviceUri property: the service uri to Post the notification when the alert activates or resolves.
-
Constructor Details
-
RuleWebhookAction
public RuleWebhookAction()Creates an instance of RuleWebhookAction class.
-
-
Method Details
-
serviceUri
Get the serviceUri property: the service uri to Post the notification when the alert activates or resolves.- Returns:
- the serviceUri value.
-
withServiceUri
Set the serviceUri property: the service uri to Post the notification when the alert activates or resolves.- Parameters:
serviceUri- the serviceUri value to set.- Returns:
- the RuleWebhookAction object itself.
-
properties
Get the properties property: the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.- Returns:
- the properties value.
-
withProperties
Set the properties property: the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.- Parameters:
properties- the properties value to set.- Returns:
- the RuleWebhookAction object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classRuleAction- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-