AlertRuleResource Constructors

Definition

Overloads

AlertRuleResource()

Initializes a new instance of the AlertRuleResource class.

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

Initializes a new instance of the AlertRuleResource class.

AlertRuleResource()

Initializes a new instance of the AlertRuleResource class.

public AlertRuleResource ();
Public Sub New ()

Applies to

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

Initializes a new instance of the AlertRuleResource class.

public AlertRuleResource (string location, string alertRuleResourceName, bool isEnabled, Microsoft.Azure.Management.Monitor.Models.RuleCondition condition, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string kind = default, string etag = 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.AlertRuleResource : string * string * bool * Microsoft.Azure.Management.Monitor.Models.RuleCondition * string * string * string * System.Collections.Generic.IDictionary<string, string> * 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.AlertRuleResource
Public Sub New (location As String, alertRuleResourceName As String, isEnabled As Boolean, condition As RuleCondition, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional kind As String = Nothing, Optional etag As 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

location
String

Resource location

alertRuleResourceName
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.

id
String

Azure resource Id

name
String

Azure resource name

type
String

Azure resource type

tags
IDictionary<String,String>

Resource tags

kind
String

Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

etag
String

The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.

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