다음을 통해 공유


LogsIngestionClient Constructors

Definition

Overloads

LogsIngestionClient()

Initializes a new instance of LogsIngestionClient for mocking.

LogsIngestionClient(Uri, TokenCredential)

Initializes a new instance of LogsIngestionClient.

LogsIngestionClient(Uri, TokenCredential, LogsIngestionClientOptions)

Initializes a new instance of LogsIngestionClient.

LogsIngestionClient()

Source:
LogsIngestionClient.cs
Source:
LogsIngestionClient.cs

Initializes a new instance of LogsIngestionClient for mocking.

protected LogsIngestionClient ();
Protected Sub New ()

Applies to

LogsIngestionClient(Uri, TokenCredential)

Source:
LogsIngestionClient.cs
Source:
LogsIngestionClient.cs

Initializes a new instance of 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)

Parameters

endpoint
Uri

The Data Collection Endpoint for the Data Collection Rule, for example https://dce-name.eastus-2.ingest.monitor.azure.com.

credential
TokenCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

Applies to

LogsIngestionClient(Uri, TokenCredential, LogsIngestionClientOptions)

Source:
LogsIngestionClient.cs
Source:
LogsIngestionClient.cs

Initializes a new instance of 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)

Parameters

endpoint
Uri

The Data Collection Endpoint for the Data Collection Rule. For example, https://dce-name.eastus-2.ingest.monitor.azure.com.

credential
TokenCredential

A credential used to authenticate to an Azure service.

options
LogsIngestionClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to