AlertRuleResourceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. monitor. fluent. models. AlertRuleResourceInner
- com.
- com.
- com.
public final class AlertRuleResourceInner
extends Resource
The alert rule resource.
Constructor Summary
Constructor | Description |
---|---|
AlertRuleResourceInner() |
Creates an instance of Alert |
Method Summary
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 |
fromJson(JsonReader jsonReader)
Reads an instance of Alert |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
boolean |
isEnabled()
Get the is |
Offset |
lastUpdatedTime()
Get the last |
String |
name()
Get the name property: The name of the resource. |
String |
namePropertiesName()
Get the name property: the name of the alert rule. |
String |
provisioningState()
Get the provisioning |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Alert |
withAction(RuleAction action)
Set the action property: action that is performed when the alert rule becomes active, and when an alert condition is resolved. |
Alert |
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. |
Alert |
withCondition(RuleCondition condition)
Set the condition property: the condition that results in the alert rule being activated. |
Alert |
withDescription(String description)
Set the description property: the description of the alert rule that will be included in the alert email. |
Alert |
withIsEnabled(boolean isEnabled)
Set the is |
Alert |
withLocation(String location) |
Alert |
withNamePropertiesName(String name)
Set the name property: the name of the alert rule. |
Alert |
withProvisioningState(String provisioningState)
Set the provisioning |
Alert |
withTags(Map<String,String> tags) |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
AlertRuleResourceInner
public AlertRuleResourceInner()
Creates an instance of AlertRuleResourceInner class.
Method Details
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 AlertRuleResourceInner fromJson(JsonReader jsonReader)
Reads an instance of AlertRuleResourceInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
AlertRuleResourceInner.id()Returns:
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 resource.
Overrides:
AlertRuleResourceInner.name()Returns:
namePropertiesName
public String namePropertiesName()
Get the name property: the name of the alert rule.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: the provisioning state.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AlertRuleResourceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
AlertRuleResourceInner.type()Returns:
validate
public void validate()
Validates the instance.
withAction
public AlertRuleResourceInner 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 AlertRuleResourceInner 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 AlertRuleResourceInner withCondition(RuleCondition condition)
Set the condition property: the condition that results in the alert rule being activated.
Parameters:
Returns:
withDescription
public AlertRuleResourceInner 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 AlertRuleResourceInner withIsEnabled(boolean isEnabled)
Set the isEnabled property: the flag that indicates whether the alert rule is enabled.
Parameters:
Returns:
withLocation
public AlertRuleResourceInner withLocation(String location)
Overrides:
AlertRuleResourceInner.withLocation(String location)Parameters:
withNamePropertiesName
public AlertRuleResourceInner withNamePropertiesName(String name)
Set the name property: the name of the alert rule.
Parameters:
Returns:
withProvisioningState
public AlertRuleResourceInner withProvisioningState(String provisioningState)
Set the provisioningState property: the provisioning state.
Parameters:
Returns:
withTags
public AlertRuleResourceInner withTags(Map
Overrides:
AlertRuleResourceInner.withTags(Map<String,String> tags)Parameters:
Applies to
Azure SDK for Java