Partager via


AlertsSuppressionRule Constructors

Definition

Overloads

AlertsSuppressionRule()

Initializes a new instance of the AlertsSuppressionRule class.

AlertsSuppressionRule(String, String, String, String, Nullable<DateTime>, Nullable<DateTime>, String, Nullable<RuleState>, String, SuppressionAlertsScope)

Initializes a new instance of the AlertsSuppressionRule class.

AlertsSuppressionRule()

Initializes a new instance of the AlertsSuppressionRule class.

public AlertsSuppressionRule ();
Public Sub New ()

Applies to

AlertsSuppressionRule(String, String, String, String, Nullable<DateTime>, Nullable<DateTime>, String, Nullable<RuleState>, String, SuppressionAlertsScope)

Initializes a new instance of the AlertsSuppressionRule class.

public AlertsSuppressionRule (string id = default, string name = default, string type = default, string alertType = default, DateTime? lastModifiedUtc = default, DateTime? expirationDateUtc = default, string reason = default, Microsoft.Azure.Management.Security.Models.RuleState? state = default, string comment = default, Microsoft.Azure.Management.Security.Models.SuppressionAlertsScope suppressionAlertsScope = default);
new Microsoft.Azure.Management.Security.Models.AlertsSuppressionRule : string * string * string * string * Nullable<DateTime> * Nullable<DateTime> * string * Nullable<Microsoft.Azure.Management.Security.Models.RuleState> * string * Microsoft.Azure.Management.Security.Models.SuppressionAlertsScope -> Microsoft.Azure.Management.Security.Models.AlertsSuppressionRule
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional alertType As String = Nothing, Optional lastModifiedUtc As Nullable(Of DateTime) = Nothing, Optional expirationDateUtc As Nullable(Of DateTime) = Nothing, Optional reason As String = Nothing, Optional state As Nullable(Of RuleState) = Nothing, Optional comment As String = Nothing, Optional suppressionAlertsScope As SuppressionAlertsScope = Nothing)

Parameters

id
String

Resource Id

name
String

Resource name

type
String

Resource type

alertType
String

Type of the alert to automatically suppress. For all alert types, use '*'

lastModifiedUtc
Nullable<DateTime>

The last time this rule was modified

expirationDateUtc
Nullable<DateTime>

Expiration date of the rule, if value is not provided or provided as null this field will default to the maximum allowed expiration date.

reason
String

The reason for dismissing the alert

state
Nullable<RuleState>

Possible states of the rule Possible values include: 'Enabled', 'Disabled', 'Expired'

comment
String

Any comment regarding the rule

suppressionAlertsScope
SuppressionAlertsScope

The suppression conditions

Applies to