Share via


AlertProcessingRuleProperties Constructor

Definition

Initializes a new instance of AlertProcessingRuleProperties.

public AlertProcessingRuleProperties (System.Collections.Generic.IEnumerable<string> scopes, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AlertsManagement.Models.AlertProcessingRuleAction> actions);
new Azure.ResourceManager.AlertsManagement.Models.AlertProcessingRuleProperties : seq<string> * seq<Azure.ResourceManager.AlertsManagement.Models.AlertProcessingRuleAction> -> Azure.ResourceManager.AlertsManagement.Models.AlertProcessingRuleProperties
Public Sub New (scopes As IEnumerable(Of String), actions As IEnumerable(Of AlertProcessingRuleAction))

Parameters

scopes
IEnumerable<String>

Scopes on which alert processing rule will apply.

actions
IEnumerable<AlertProcessingRuleAction>

Actions to be applied. Please note AlertProcessingRuleAction is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include AlertProcessingRuleAddGroupsAction and AlertProcessingRuleRemoveAllGroupsAction.

Exceptions

scopes or actions is null.

Applies to