你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
LogsIngestionClient 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
LogsIngestionClient() |
初始化用于模拟的 LogsIngestionClient 的新实例。 |
LogsIngestionClient(Uri, TokenCredential) |
初始化 LogsIngestionClient 的新实例。 |
LogsIngestionClient(Uri, TokenCredential, LogsIngestionClientOptions) |
初始化 LogsIngestionClient 的新实例。 |
LogsIngestionClient()
- Source:
- LogsIngestionClient.cs
- Source:
- LogsIngestionClient.cs
初始化用于模拟的 LogsIngestionClient 的新实例。
protected LogsIngestionClient ();
Protected Sub New ()
适用于
LogsIngestionClient(Uri, TokenCredential)
- Source:
- LogsIngestionClient.cs
- Source:
- LogsIngestionClient.cs
初始化 LogsIngestionClient 的新实例。
public LogsIngestionClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.Monitor.Ingestion.LogsIngestionClient : Uri * Azure.Core.TokenCredential -> Azure.Monitor.Ingestion.LogsIngestionClient
Public Sub New (endpoint As Uri, credential As TokenCredential)
参数
- endpoint
- Uri
数据收集规则的数据收集终结点,例如 https://dce-name.eastus-2.ingest.monitor.azure.com。
- credential
- TokenCredential
用于向 Azure 服务进行身份验证的凭据。
例外
endpoint
或 credential
为 null。
适用于
LogsIngestionClient(Uri, TokenCredential, LogsIngestionClientOptions)
- Source:
- LogsIngestionClient.cs
- Source:
- LogsIngestionClient.cs
初始化 LogsIngestionClient 的新实例。
public LogsIngestionClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.Monitor.Ingestion.LogsIngestionClientOptions options);
new Azure.Monitor.Ingestion.LogsIngestionClient : Uri * Azure.Core.TokenCredential * Azure.Monitor.Ingestion.LogsIngestionClientOptions -> Azure.Monitor.Ingestion.LogsIngestionClient
Public Sub New (endpoint As Uri, credential As TokenCredential, options As LogsIngestionClientOptions)
参数
- endpoint
- Uri
数据收集规则的数据收集终结点。 例如,https://dce-name.eastus-2.ingest.monitor.azure.com。
- credential
- TokenCredential
用于对 Azure 服务进行身份验证的凭据。
- options
- LogsIngestionClientOptions
用于配置客户端的选项。
例外
endpoint
或 credential
为 null。