public class AlertRuleResourceInner
extends com.azure.core.management.Resource
| Constructor and Description |
|---|
AlertRuleResourceInner() |
| Modifier and Type | Method and Description |
|---|---|
List<RuleAction> |
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.
|
RuleCondition |
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.
|
boolean |
isEnabled()
Get the isEnabled property: the flag that indicates whether the alert rule is enabled.
|
OffsetDateTime |
lastUpdatedTime()
Get the lastUpdatedTime property: Last time the rule was updated in ISO8601 format.
|
String |
namePropertiesName()
Get the namePropertiesName property: the name of the alert rule.
|
void |
validate()
Validates the instance.
|
AlertRuleResourceInner |
withActions(List<RuleAction> actions)
Set the actions property: the array of actions that are performed when the alert rule becomes active, and when an
alert condition is resolved.
|
AlertRuleResourceInner |
withCondition(RuleCondition condition)
Set the condition property: the condition that results in the alert rule being activated.
|
AlertRuleResourceInner |
withDescription(String description)
Set the description property: the description of the alert rule that will be included in the alert email.
|
AlertRuleResourceInner |
withIsEnabled(boolean isEnabled)
Set the isEnabled property: the flag that indicates whether the alert rule is enabled.
|
AlertRuleResourceInner |
withNamePropertiesName(String namePropertiesName)
Set the namePropertiesName property: the name of the alert rule.
|
public String namePropertiesName()
public AlertRuleResourceInner withNamePropertiesName(String namePropertiesName)
namePropertiesName - the namePropertiesName value to set.public String description()
public AlertRuleResourceInner withDescription(String description)
description - the description value to set.public boolean isEnabled()
public AlertRuleResourceInner withIsEnabled(boolean isEnabled)
isEnabled - the isEnabled value to set.public RuleCondition condition()
public AlertRuleResourceInner withCondition(RuleCondition condition)
condition - the condition value to set.public List<RuleAction> actions()
public AlertRuleResourceInner withActions(List<RuleAction> actions)
actions - the actions value to set.public OffsetDateTime lastUpdatedTime()
public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.