LogsQueryClient Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
LogsQueryClient() |
Creates an instance of LogsQueryClient to support mocking. |
LogsQueryClient(TokenCredential) |
Creates an instance of LogsQueryClient for Azure Public Cloud usage. Uses the default 'https://api.loganalytics.io' endpoint.
|
LogsQueryClient(TokenCredential, LogsQueryClientOptions) |
Creates an instance of LogsQueryClient for Azure Public Cloud usage. Uses the default 'https://api.loganalytics.io' endpoint, unless Audience is set to an Azure sovereign cloud. |
LogsQueryClient()
- Source:
- LogsQueryClient.cs
- Source:
- LogsQueryClient.cs
Creates an instance of LogsQueryClient to support mocking.
protected LogsQueryClient ();
Protected Sub New ()
Applies to
LogsQueryClient(TokenCredential)
- Source:
- LogsQueryClient.cs
- Source:
- LogsQueryClient.cs
Creates an instance of LogsQueryClient for Azure Public Cloud usage. Uses the default 'https://api.loganalytics.io' endpoint.
var client = new LogsQueryClient(new DefaultAzureCredential());
public LogsQueryClient (Azure.Core.TokenCredential credential);
new Azure.Monitor.Query.LogsQueryClient : Azure.Core.TokenCredential -> Azure.Monitor.Query.LogsQueryClient
Public Sub New (credential As TokenCredential)
Parameters
- credential
- TokenCredential
The TokenCredential instance to use for authentication.
Applies to
LogsQueryClient(TokenCredential, LogsQueryClientOptions)
- Source:
- LogsQueryClient.cs
- Source:
- LogsQueryClient.cs
Creates an instance of LogsQueryClient for Azure Public Cloud usage. Uses the default 'https://api.loganalytics.io' endpoint, unless Audience is set to an Azure sovereign cloud.
public LogsQueryClient (Azure.Core.TokenCredential credential, Azure.Monitor.Query.LogsQueryClientOptions options);
new Azure.Monitor.Query.LogsQueryClient : Azure.Core.TokenCredential * Azure.Monitor.Query.LogsQueryClientOptions -> Azure.Monitor.Query.LogsQueryClient
Public Sub New (credential As TokenCredential, options As LogsQueryClientOptions)
Parameters
- credential
- TokenCredential
The TokenCredential instance to use for authentication.
- options
- LogsQueryClientOptions
The LogsQueryClientOptions instance to use as client configuration.
Applies to
Azure SDK for .NET