Class AlertRuleResourcePatch
java.lang.Object
com.microsoft.azure.management.monitor.AlertRuleResourcePatch
The alert rule object for patch operations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactions()
Get the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.Get the condition that results in the alert rule being activated.Get the description of the alert rule that will be included in the alert email.boolean
Get the flag that indicates whether the alert rule is enabled.org.joda.time.DateTime
Get last time the rule was updated in ISO8601 format.name()
Get the name of the alert rule.tags()
Get resource tags.withActions
(List<RuleAction> actions) Set the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.withCondition
(RuleCondition condition) Set the condition that results in the alert rule being activated.withDescription
(String description) Set the description of the alert rule that will be included in the alert email.withIsEnabled
(boolean isEnabled) Set the flag that indicates whether the alert rule is enabled.Set the name of the alert rule.Set resource tags.
-
Constructor Details
-
AlertRuleResourcePatch
public AlertRuleResourcePatch()
-
-
Method Details
-
tags
Get resource tags.- Returns:
- the tags value
-
withTags
Set resource tags.- Parameters:
tags
- the tags value to set- Returns:
- the AlertRuleResourcePatch object itself.
-
name
Get the name of the alert rule.- Returns:
- the name value
-
withName
Set the name of the alert rule.- Parameters:
name
- the name value to set- Returns:
- the AlertRuleResourcePatch object itself.
-
description
Get the description of the alert rule that will be included in the alert email.- Returns:
- the description value
-
withDescription
Set the description of the alert rule that will be included in the alert email.- Parameters:
description
- the description value to set- Returns:
- the AlertRuleResourcePatch object itself.
-
isEnabled
public boolean isEnabled()Get the flag that indicates whether the alert rule is enabled.- Returns:
- the isEnabled value
-
withIsEnabled
Set the flag that indicates whether the alert rule is enabled.- Parameters:
isEnabled
- the isEnabled value to set- Returns:
- the AlertRuleResourcePatch object itself.
-
condition
Get the condition that results in the alert rule being activated.- Returns:
- the condition value
-
withCondition
Set the condition that results in the alert rule being activated.- Parameters:
condition
- the condition value to set- Returns:
- the AlertRuleResourcePatch object itself.
-
actions
Get the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.- Returns:
- the actions value
-
withActions
Set the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.- Parameters:
actions
- the actions value to set- Returns:
- the AlertRuleResourcePatch object itself.
-
lastUpdatedTime
public org.joda.time.DateTime lastUpdatedTime()Get last time the rule was updated in ISO8601 format.- Returns:
- the lastUpdatedTime value
-