你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ActivityLogAlertResource 构造函数

定义

重载

ActivityLogAlertResource()

初始化 ActivityLogAlertResource 类的新实例。

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

初始化 ActivityLogAlertResource 类的新实例。

ActivityLogAlertResource()

初始化 ActivityLogAlertResource 类的新实例。

public ActivityLogAlertResource ();
Public Sub New ()

适用于

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

初始化 ActivityLogAlertResource 类的新实例。

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)

参数

location
String

资源位置

scopes
IList<String>

将用作前缀的资源 ID 列表。 警报仅适用于资源 ID 属于这些前缀之一的活动日志事件。 此列表必须至少包含一项。

condition
AlertRuleAllOfCondition

将导致此警报激活的条件。

actions
ActionList

满足条件时将激活的操作。

id
String

Azure 资源 ID

name
String

Azure 资源名称

type
String

Azure 资源类型

kind
String

Azure 资源类型

identity
String

Azure 资源标识

tags
IDictionary<String,String>

资源标记

enabled
Nullable<Boolean>

指示是否启用此活动日志警报规则。 如果未启用活动日志警报规则,则不会激活其任何操作。

description
String

此活动日志警报规则的说明。

适用于