AlertProcessingRuleProperties Class
- java.
lang. Object - com.
azure. resourcemanager. alertsmanagement. models. AlertProcessingRuleProperties
- com.
Implements
public final class AlertProcessingRuleProperties
implements JsonSerializable<AlertProcessingRuleProperties>
Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing rule.
Constructor Summary
| Constructor | Description |
|---|---|
| AlertProcessingRuleProperties() |
Creates an instance of Alert |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<Action> |
actions()
Get the actions property: Actions to be applied. |
| List<Condition> |
conditions()
Get the conditions property: Conditions on which alerts will be filtered. |
| String |
description()
Get the description property: Description of alert processing rule. |
| Boolean |
enabled()
Get the enabled property: Indicates if the given alert processing rule is enabled or disabled. |
|
static
Alert |
fromJson(JsonReader jsonReader)
Reads an instance of Alert |
| Schedule |
schedule()
Get the schedule property: Scheduling for alert processing rule. |
| List<String> |
scopes()
Get the scopes property: Scopes on which alert processing rule will apply. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Alert |
withActions(List<Action> actions)
Set the actions property: Actions to be applied. |
|
Alert |
withConditions(List<Condition> conditions)
Set the conditions property: Conditions on which alerts will be filtered. |
|
Alert |
withDescription(String description)
Set the description property: Description of alert processing rule. |
|
Alert |
withEnabled(Boolean enabled)
Set the enabled property: Indicates if the given alert processing rule is enabled or disabled. |
|
Alert |
withSchedule(Schedule schedule)
Set the schedule property: Scheduling for alert processing rule. |
|
Alert |
withScopes(List<String> scopes)
Set the scopes property: Scopes on which alert processing rule will apply. |
Methods inherited from java.lang.Object
Constructor Details
AlertProcessingRuleProperties
public AlertProcessingRuleProperties()
Creates an instance of AlertProcessingRuleProperties class.
Method Details
actions
public List<Action> actions()
Get the actions property: Actions to be applied.
Returns:
conditions
public List<Condition> conditions()
Get the conditions property: Conditions on which alerts will be filtered.
Returns:
description
public String description()
Get the description property: Description of alert processing rule.
Returns:
enabled
public Boolean enabled()
Get the enabled property: Indicates if the given alert processing rule is enabled or disabled.
Returns:
fromJson
public static AlertProcessingRuleProperties fromJson(JsonReader jsonReader)
Reads an instance of AlertProcessingRuleProperties from the JsonReader.
Parameters:
Returns:
Throws:
schedule
public Schedule schedule()
Get the schedule property: Scheduling for alert processing rule.
Returns:
scopes
public List<String> scopes()
Get the scopes property: Scopes on which alert processing rule will apply.
Returns:
toJson
validate
public void validate()
Validates the instance.
withActions
public AlertProcessingRuleProperties withActions(List<Action> actions)
Set the actions property: Actions to be applied.
Parameters:
Returns:
withConditions
public AlertProcessingRuleProperties withConditions(List<Condition> conditions)
Set the conditions property: Conditions on which alerts will be filtered.
Parameters:
Returns:
withDescription
public AlertProcessingRuleProperties withDescription(String description)
Set the description property: Description of alert processing rule.
Parameters:
Returns:
withEnabled
public AlertProcessingRuleProperties withEnabled(Boolean enabled)
Set the enabled property: Indicates if the given alert processing rule is enabled or disabled.
Parameters:
Returns:
withSchedule
public AlertProcessingRuleProperties withSchedule(Schedule schedule)
Set the schedule property: Scheduling for alert processing rule.
Parameters:
Returns:
withScopes
public AlertProcessingRuleProperties withScopes(List<String> scopes)
Set the scopes property: Scopes on which alert processing rule will apply.
Parameters:
Returns: