AlertRuleResourcePatch Constructors

Definition

Overloads

AlertRuleResourcePatch()

Initializes a new instance of the AlertRuleResourcePatch class.

AlertRuleResourcePatch(String, Boolean, RuleCondition, IDictionary<String,String>, String, String, RuleAction, IList<RuleAction>, Nullable<DateTime>)

Initializes a new instance of the AlertRuleResourcePatch class.

AlertRuleResourcePatch()

Initializes a new instance of the AlertRuleResourcePatch class.

public AlertRuleResourcePatch ();
Public Sub New ()

Applies to

AlertRuleResourcePatch(String, Boolean, RuleCondition, IDictionary<String,String>, String, String, RuleAction, IList<RuleAction>, Nullable<DateTime>)

Initializes a new instance of the AlertRuleResourcePatch class.

public AlertRuleResourcePatch (string name, bool isEnabled, Microsoft.Azure.Management.Monitor.Models.RuleCondition condition, System.Collections.Generic.IDictionary<string,string> tags = default, string description = default, string provisioningState = default, Microsoft.Azure.Management.Monitor.Models.RuleAction action = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.RuleAction> actions = default, DateTime? lastUpdatedTime = default);
new Microsoft.Azure.Management.Monitor.Models.AlertRuleResourcePatch : string * bool * Microsoft.Azure.Management.Monitor.Models.RuleCondition * System.Collections.Generic.IDictionary<string, string> * string * string * Microsoft.Azure.Management.Monitor.Models.RuleAction * System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.RuleAction> * Nullable<DateTime> -> Microsoft.Azure.Management.Monitor.Models.AlertRuleResourcePatch
Public Sub New (name As String, isEnabled As Boolean, condition As RuleCondition, Optional tags As IDictionary(Of String, String) = Nothing, Optional description As String = Nothing, Optional provisioningState As String = Nothing, Optional action As RuleAction = Nothing, Optional actions As IList(Of RuleAction) = Nothing, Optional lastUpdatedTime As Nullable(Of DateTime) = Nothing)

Parameters

name
String

the name of the alert rule.

isEnabled
Boolean

the flag that indicates whether the alert rule is enabled.

condition
RuleCondition

the condition that results in the alert rule being activated.

tags
IDictionary<String,String>

Resource tags

description
String

the description of the alert rule that will be included in the alert email.

provisioningState
String

the provisioning state.

action
RuleAction

action that is performed when the alert rule becomes active, and when an alert condition is resolved.

actions
IList<RuleAction>

the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.

lastUpdatedTime
Nullable<DateTime>

Last time the rule was updated in ISO8601 format.

Applies to