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

LogProfileResourcePatch 构造函数

定义

重载

LogProfileResourcePatch()

初始化 LogProfileResourcePatch 类的新实例。

LogProfileResourcePatch(IList<String>, IList<String>, RetentionPolicy, IDictionary<String,String>, String, String)

初始化 LogProfileResourcePatch 类的新实例。

LogProfileResourcePatch()

初始化 LogProfileResourcePatch 类的新实例。

public LogProfileResourcePatch ();
Public Sub New ()

适用于

LogProfileResourcePatch(IList<String>, IList<String>, RetentionPolicy, IDictionary<String,String>, String, String)

初始化 LogProfileResourcePatch 类的新实例。

public LogProfileResourcePatch (System.Collections.Generic.IList<string> locations, System.Collections.Generic.IList<string> categories, Microsoft.Azure.Management.Monitor.Models.RetentionPolicy retentionPolicy, System.Collections.Generic.IDictionary<string,string> tags = default, string storageAccountId = default, string serviceBusRuleId = default);
new Microsoft.Azure.Management.Monitor.Models.LogProfileResourcePatch : System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.Monitor.Models.RetentionPolicy * System.Collections.Generic.IDictionary<string, string> * string * string -> Microsoft.Azure.Management.Monitor.Models.LogProfileResourcePatch
Public Sub New (locations As IList(Of String), categories As IList(Of String), retentionPolicy As RetentionPolicy, Optional tags As IDictionary(Of String, String) = Nothing, Optional storageAccountId As String = Nothing, Optional serviceBusRuleId As String = Nothing)

参数

locations
IList<String>

应存储或流式传输活动日志事件的区域列表。 它是有效 ARM 位置(包括“全局”位置)的逗号分隔列表。

categories
IList<String>

日志的类别。 创建这些类别是方便用户使用的。 某些值为:“Write”、“Delete”和/或“Action”。

retentionPolicy
RetentionPolicy

日志中事件的保留策略。

tags
IDictionary<String,String>

资源标记

storageAccountId
String

要向其发送活动日志的存储帐户的资源 ID。

serviceBusRuleId
String

要在其中创建事件中心以流式传输活动日志的服务总线命名空间的服务总线规则 ID。 规则 ID 的格式为:“{服务总线资源 ID}/authorizationrules/{key name}”。

适用于