AlertRuleResourcePatch Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. AlertRuleResourcePatch
- com.
Implements
public final class AlertRuleResourcePatch
implements JsonSerializable<AlertRuleResourcePatch>
The alert rule object for patch operations.
Constructor | Description |
---|---|
Alert |
Creates an instance of Alert |
Modifier and Type | Method and Description |
---|---|
Rule |
action()
Get the action property: action that is performed when the alert rule becomes active, and when an alert condition is resolved. |
List<Rule |
actions()
Get the actions property: the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. |
Rule |
condition()
Get the condition property: the condition that results in the alert rule being activated. |
String |
description()
Get the description property: the description of the alert rule that will be included in the alert email. |
static
Alert |
from Reads an instance of Alert |
Boolean |
is Get the is |
Offset |
last Get the last |
String |
name()
Get the name property: the name of the alert rule. |
String |
provisioning Get the provisioning |
Map<String,String> |
tags()
Get the tags property: Resource tags. |
Json |
to |
void |
validate()
Validates the instance. |
Alert |
with Set the action property: action that is performed when the alert rule becomes active, and when an alert condition is resolved. |
Alert |
with Set the actions property: the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. |
Alert |
with Set the condition property: the condition that results in the alert rule being activated. |
Alert |
with Set the description property: the description of the alert rule that will be included in the alert email. |
Alert |
with Set the is |
Alert |
with Set the name property: the name of the alert rule. |
Alert |
with Set the provisioning |
Alert |
with Set the tags property: Resource tags. |
Methods inherited from java.lang.Object
AlertRuleResourcePatch
public AlertRuleResourcePatch()
Creates an instance of AlertRuleResourcePatch class.
action
public RuleAction action()
Get the action property: action that is performed when the alert rule becomes active, and when an alert condition is resolved.
Returns:
actions
public List
Get the actions property: the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
Returns:
condition
public RuleCondition condition()
Get the condition property: the condition that results in the alert rule being activated.
Returns:
description
public String description()
Get the description property: the description of the alert rule that will be included in the alert email.
Returns:
fromJson
public static AlertRuleResourcePatch fromJson(JsonReader jsonReader)
Reads an instance of AlertRuleResourcePatch from the JsonReader.
Parameters:
Returns:
Throws:
isEnabled
public Boolean isEnabled()
Get the isEnabled property: the flag that indicates whether the alert rule is enabled.
Returns:
lastUpdatedTime
public OffsetDateTime lastUpdatedTime()
Get the lastUpdatedTime property: Last time the rule was updated in ISO8601 format.
Returns:
name
public String name()
Get the name property: the name of the alert rule.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: the provisioning state.
Returns:
tags
public Map
Get the tags property: Resource tags.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAction
public AlertRuleResourcePatch withAction(RuleAction action)
Set the action property: action that is performed when the alert rule becomes active, and when an alert condition is resolved.
Parameters:
Returns:
withActions
public AlertRuleResourcePatch withActions(List
Set the actions property: the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
Parameters:
Returns:
withCondition
public AlertRuleResourcePatch withCondition(RuleCondition condition)
Set the condition property: the condition that results in the alert rule being activated.
Parameters:
Returns:
withDescription
public AlertRuleResourcePatch withDescription(String description)
Set the description property: the description of the alert rule that will be included in the alert email.
Parameters:
Returns:
withIsEnabled
public AlertRuleResourcePatch withIsEnabled(Boolean isEnabled)
Set the isEnabled property: the flag that indicates whether the alert rule is enabled.
Parameters:
Returns:
withName
public AlertRuleResourcePatch withName(String name)
Set the name property: the name of the alert rule.
Parameters:
Returns:
withProvisioningState
public AlertRuleResourcePatch withProvisioningState(String provisioningState)
Set the provisioningState property: the provisioning state.
Parameters:
Returns:
withTags
public AlertRuleResourcePatch withTags(Map
Set the tags property: Resource tags.
Parameters:
Returns: