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

LoggerContract 类

定义

记录器协定扩展。

[Microsoft.Rest.Serialization.JsonTransformation]
public class LoggerContract : Microsoft.Azure.Management.ApiManagement.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type LoggerContract = class
    inherit Resource
Public Class LoggerContract
Inherits Resource
继承
LoggerContract
属性

构造函数

LoggerContract()

初始化 LoggerContract 类的新实例。

LoggerContract(String, String, String, String, String, IDictionary<String,String>, Nullable<Boolean>, String)

初始化 LoggerContract 类的新实例。

属性

Credentials

获取或设置 azureEventHub 记录器的事件中心的名称和 SendRule 连接字符串。 applicationInsights 记录器检测密钥。

CredentialsPropertyName

记录器协定扩展。

Description

获取或设置记录器说明。

Id

获取资源的完全限定资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

(继承自 Resource)
IsBuffered

获取或设置发布前记录是否在记录器中缓冲。 假定默认值为 true。

LoggerType

获取或设置记录器类型。 可能的值包括:“azureEventHub”、“applicationInsights”、“azureMonitor”

Name

获取资源的名称

(继承自 Resource)
ResourceId

获取或设置日志目标的 azure 资源 ID, (Azure 事件中心资源或 Azure 应用程序 Insights 资源) 。

Type

获取资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”

(继承自 Resource)

方法

Validate()

验证 对象。

适用于