共用方式為


ActivityLogAlertResource Constructors

Definition

Overloads

ActivityLogAlertResource()

Initializes a new instance of the ActivityLogAlertResource class.

ActivityLogAlertResource(String, IList<String>, AlertRuleAllOfCondition, ActionList, String, String, String, String, String, IDictionary<String, String>, Nullable<Boolean>, String)

Initializes a new instance of the ActivityLogAlertResource class.

ActivityLogAlertResource()

Initializes a new instance of the ActivityLogAlertResource class.

public ActivityLogAlertResource ();
Public Sub New ()

Applies to

ActivityLogAlertResource(String, IList<String>, AlertRuleAllOfCondition, ActionList, String, String, String, String, String, IDictionary<String, String>, Nullable<Boolean>, String)

Initializes a new instance of the ActivityLogAlertResource class.

public ActivityLogAlertResource (string location, System.Collections.Generic.IList<string> scopes, Microsoft.Azure.Management.Monitor.Models.AlertRuleAllOfCondition condition, Microsoft.Azure.Management.Monitor.Models.ActionList actions, string id = default, string name = default, string type = default, string kind = default, string identity = default, System.Collections.Generic.IDictionary<string,string> tags = default, bool? enabled = default, string description = default);
new Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource : string * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.Monitor.Models.AlertRuleAllOfCondition * Microsoft.Azure.Management.Monitor.Models.ActionList * string * string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Nullable<bool> * string -> Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource
Public Sub New (location As String, scopes As IList(Of String), condition As AlertRuleAllOfCondition, actions As ActionList, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional kind As String = Nothing, Optional identity As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional enabled As Nullable(Of Boolean) = Nothing, Optional description As String = Nothing)

Parameters

location
String

Resource location

scopes
IList<String>

A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.

condition
AlertRuleAllOfCondition

The condition that will cause this alert to activate.

actions
ActionList

The actions that will activate when the condition is met.

id
String

Azure resource Id

name
String

Azure resource name

type
String

Azure resource type

kind
String

Azure resource kind

identity
String

Azure resource identity

tags
IDictionary<String,String>

Resource tags

enabled
Nullable<Boolean>

Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.

description
String

A description of this Activity Log Alert rule.

Applies to