你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
LoggerContract 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
LoggerContract() |
初始化 LoggerContract 类的新实例。 |
LoggerContract(String, String, String, String, String, IDictionary<String,String>, Nullable<Boolean>, String) |
初始化 LoggerContract 类的新实例。 |
LoggerContract()
初始化 LoggerContract 类的新实例。
public LoggerContract ();
Public Sub New ()
适用于
LoggerContract(String, String, String, String, String, IDictionary<String,String>, Nullable<Boolean>, String)
初始化 LoggerContract 类的新实例。
public LoggerContract (string loggerType, string id = default, string name = default, string type = default, string description = default, System.Collections.Generic.IDictionary<string,string> credentials = default, bool? isBuffered = default, string resourceId = default);
new Microsoft.Azure.Management.ApiManagement.Models.LoggerContract : string * string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Nullable<bool> * string -> Microsoft.Azure.Management.ApiManagement.Models.LoggerContract
Public Sub New (loggerType As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional description As String = Nothing, Optional credentials As IDictionary(Of String, String) = Nothing, Optional isBuffered As Nullable(Of Boolean) = Nothing, Optional resourceId As String = Nothing)
参数
- loggerType
- String
记录器类型。 可能的值包括:“azureEventHub”、“applicationInsights”、“azureMonitor”
- id
- String
资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name
- String
资源的名称
- type
- String
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”
- description
- String
记录器说明。
- credentials
- IDictionary<String,String>
azureEventHub 记录器的事件中心的名称和 SendRule 连接字符串。 applicationInsights 记录器检测密钥。
- resourceId
- String
日志目标的 Azure 资源 ID (Azure 事件中心资源或 Azure 应用程序 Insights 资源) 。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈