217 строки
22 KiB
YAML
217 строки
22 KiB
YAML
### YamlMime:JavaType
|
|
uid: "com.azure.monitor.query.LogsQueryClientBuilder"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder"
|
|
name: "LogsQueryClientBuilder"
|
|
nameWithType: "LogsQueryClientBuilder"
|
|
summary: "Fluent builder for creating instances of <xref uid=\"com.azure.monitor.query.LogsQueryClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClient\"></xref> and <xref uid=\"com.azure.monitor.query.LogsQueryAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryAsyncClient\"></xref>."
|
|
inheritances:
|
|
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
|
|
inheritedClassMethods:
|
|
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
|
|
methodsRef:
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
|
|
syntax: "public final class **LogsQueryClientBuilder**</br> implements <xref href=\"com.azure.core.client.traits.EndpointTrait?alt=com.azure.core.client.traits.EndpointTrait&text=EndpointTrait\" data-throw-if-not-resolved=\"False\" /><<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />>, <xref href=\"com.azure.core.client.traits.HttpTrait?alt=com.azure.core.client.traits.HttpTrait&text=HttpTrait\" data-throw-if-not-resolved=\"False\" /><<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />>, <xref href=\"com.azure.core.client.traits.ConfigurationTrait?alt=com.azure.core.client.traits.ConfigurationTrait&text=ConfigurationTrait\" data-throw-if-not-resolved=\"False\" /><<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />>, <xref href=\"com.azure.core.client.traits.TokenCredentialTrait?alt=com.azure.core.client.traits.TokenCredentialTrait&text=TokenCredentialTrait\" data-throw-if-not-resolved=\"False\" /><<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />>"
|
|
constructors:
|
|
- uid: "com.azure.monitor.query.LogsQueryClientBuilder.LogsQueryClientBuilder()"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder.LogsQueryClientBuilder()"
|
|
name: "LogsQueryClientBuilder()"
|
|
nameWithType: "LogsQueryClientBuilder.LogsQueryClientBuilder()"
|
|
summary: "Creates an instance of Logs<wbr>Query<wbr>Client<wbr>Builder."
|
|
syntax: "public LogsQueryClientBuilder()"
|
|
desc: "Creates an instance of LogsQueryClientBuilder."
|
|
methods:
|
|
- uid: "com.azure.monitor.query.LogsQueryClientBuilder.addPolicy(com.azure.core.http.policy.HttpPipelinePolicy)"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder.addPolicy(HttpPipelinePolicy customPolicy)"
|
|
name: "addPolicy(HttpPipelinePolicy customPolicy)"
|
|
nameWithType: "LogsQueryClientBuilder.addPolicy(HttpPipelinePolicy customPolicy)"
|
|
summary: "Adds a custom Http pipeline policy."
|
|
parameters:
|
|
- description: "The custom Http pipeline policy to add."
|
|
name: "customPolicy"
|
|
type: "<xref href=\"com.azure.core.http.policy.HttpPipelinePolicy?alt=com.azure.core.http.policy.HttpPipelinePolicy&text=HttpPipelinePolicy\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public LogsQueryClientBuilder addPolicy(HttpPipelinePolicy customPolicy)"
|
|
desc: "Adds a custom Http pipeline policy."
|
|
returns:
|
|
description: "the <xref uid=\"com.azure.monitor.query.LogsQueryClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClientBuilder\"></xref>."
|
|
type: "<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.monitor.query.LogsQueryClientBuilder.buildAsyncClient()"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder.buildAsyncClient()"
|
|
name: "buildAsyncClient()"
|
|
nameWithType: "LogsQueryClientBuilder.buildAsyncClient()"
|
|
summary: "Creates an asynchronous client with the configured options in this builder."
|
|
syntax: "public LogsQueryAsyncClient buildAsyncClient()"
|
|
desc: "Creates an asynchronous client with the configured options in this builder."
|
|
returns:
|
|
description: "An asynchronous <xref uid=\"com.azure.monitor.query.LogsQueryAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryAsyncClient\"></xref>."
|
|
type: "<xref href=\"com.azure.monitor.query.LogsQueryAsyncClient?alt=com.azure.monitor.query.LogsQueryAsyncClient&text=LogsQueryAsyncClient\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.monitor.query.LogsQueryClientBuilder.buildClient()"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder.buildClient()"
|
|
name: "buildClient()"
|
|
nameWithType: "LogsQueryClientBuilder.buildClient()"
|
|
summary: "Creates a synchronous client with the configured options in this builder."
|
|
syntax: "public LogsQueryClient buildClient()"
|
|
desc: "Creates a synchronous client with the configured options in this builder."
|
|
returns:
|
|
description: "A synchronous <xref uid=\"com.azure.monitor.query.LogsQueryClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClient\"></xref>."
|
|
type: "<xref href=\"com.azure.monitor.query.LogsQueryClient?alt=com.azure.monitor.query.LogsQueryClient&text=LogsQueryClient\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.monitor.query.LogsQueryClientBuilder.clientOptions(com.azure.core.util.ClientOptions)"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder.clientOptions(ClientOptions clientOptions)"
|
|
name: "clientOptions(ClientOptions clientOptions)"
|
|
nameWithType: "LogsQueryClientBuilder.clientOptions(ClientOptions clientOptions)"
|
|
summary: "Set the <xref uid=\"com.azure.core.util.ClientOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ClientOptions\"></xref> used for creating the client."
|
|
parameters:
|
|
- description: "The <xref uid=\"com.azure.core.util.ClientOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ClientOptions\"></xref>."
|
|
name: "clientOptions"
|
|
type: "<xref href=\"com.azure.core.util.ClientOptions?alt=com.azure.core.util.ClientOptions&text=ClientOptions\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public LogsQueryClientBuilder clientOptions(ClientOptions clientOptions)"
|
|
desc: "Set the <xref uid=\"com.azure.core.util.ClientOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ClientOptions\"></xref> used for creating the client."
|
|
returns:
|
|
description: "the <xref uid=\"com.azure.monitor.query.LogsQueryClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClientBuilder\"></xref>."
|
|
type: "<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.monitor.query.LogsQueryClientBuilder.configuration(com.azure.core.util.Configuration)"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder.configuration(Configuration configuration)"
|
|
name: "configuration(Configuration configuration)"
|
|
nameWithType: "LogsQueryClientBuilder.configuration(Configuration configuration)"
|
|
summary: "Sets The configuration store that is used during construction of the service client."
|
|
parameters:
|
|
- description: "the configuration value."
|
|
name: "configuration"
|
|
type: "<xref href=\"com.azure.core.util.Configuration?alt=com.azure.core.util.Configuration&text=Configuration\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public LogsQueryClientBuilder configuration(Configuration configuration)"
|
|
desc: "Sets The configuration store that is used during construction of the service client."
|
|
returns:
|
|
description: "the <xref uid=\"com.azure.monitor.query.LogsQueryClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClientBuilder\"></xref>."
|
|
type: "<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.monitor.query.LogsQueryClientBuilder.credential(com.azure.core.credential.TokenCredential)"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder.credential(TokenCredential tokenCredential)"
|
|
name: "credential(TokenCredential tokenCredential)"
|
|
nameWithType: "LogsQueryClientBuilder.credential(TokenCredential tokenCredential)"
|
|
summary: "Sets The Token<wbr>Credential used for authentication."
|
|
parameters:
|
|
- description: "the tokenCredential value."
|
|
name: "tokenCredential"
|
|
type: "<xref href=\"com.azure.core.credential.TokenCredential?alt=com.azure.core.credential.TokenCredential&text=TokenCredential\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public LogsQueryClientBuilder credential(TokenCredential tokenCredential)"
|
|
desc: "Sets The TokenCredential used for authentication."
|
|
returns:
|
|
description: "the <xref uid=\"com.azure.monitor.query.LogsQueryClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClientBuilder\"></xref>."
|
|
type: "<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.monitor.query.LogsQueryClientBuilder.endpoint(java.lang.String)"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder.endpoint(String endpoint)"
|
|
name: "endpoint(String endpoint)"
|
|
nameWithType: "LogsQueryClientBuilder.endpoint(String endpoint)"
|
|
summary: "Sets the log query endpoint."
|
|
parameters:
|
|
- description: "the host value."
|
|
name: "endpoint"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
syntax: "public LogsQueryClientBuilder endpoint(String endpoint)"
|
|
desc: "Sets the log query endpoint."
|
|
returns:
|
|
description: "the <xref uid=\"com.azure.monitor.query.LogsQueryClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClientBuilder\"></xref>."
|
|
type: "<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.monitor.query.LogsQueryClientBuilder.httpClient(com.azure.core.http.HttpClient)"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder.httpClient(HttpClient httpClient)"
|
|
name: "httpClient(HttpClient httpClient)"
|
|
nameWithType: "LogsQueryClientBuilder.httpClient(HttpClient httpClient)"
|
|
summary: "Sets The HTTP client used to send the request."
|
|
parameters:
|
|
- description: "the httpClient value."
|
|
name: "httpClient"
|
|
type: "<xref href=\"com.azure.core.http.HttpClient?alt=com.azure.core.http.HttpClient&text=HttpClient\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public LogsQueryClientBuilder httpClient(HttpClient httpClient)"
|
|
desc: "Sets The HTTP client used to send the request."
|
|
returns:
|
|
description: "the <xref uid=\"com.azure.monitor.query.LogsQueryClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClientBuilder\"></xref>."
|
|
type: "<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.monitor.query.LogsQueryClientBuilder.httpLogOptions(com.azure.core.http.policy.HttpLogOptions)"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder.httpLogOptions(HttpLogOptions httpLogOptions)"
|
|
name: "httpLogOptions(HttpLogOptions httpLogOptions)"
|
|
nameWithType: "LogsQueryClientBuilder.httpLogOptions(HttpLogOptions httpLogOptions)"
|
|
summary: "Sets The logging configuration for HTTP requests and responses."
|
|
parameters:
|
|
- description: "the httpLogOptions value."
|
|
name: "httpLogOptions"
|
|
type: "<xref href=\"com.azure.core.http.policy.HttpLogOptions?alt=com.azure.core.http.policy.HttpLogOptions&text=HttpLogOptions\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public LogsQueryClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)"
|
|
desc: "Sets The logging configuration for HTTP requests and responses."
|
|
returns:
|
|
description: "the <xref uid=\"com.azure.monitor.query.LogsQueryClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClientBuilder\"></xref>."
|
|
type: "<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.monitor.query.LogsQueryClientBuilder.pipeline(com.azure.core.http.HttpPipeline)"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder.pipeline(HttpPipeline pipeline)"
|
|
name: "pipeline(HttpPipeline pipeline)"
|
|
nameWithType: "LogsQueryClientBuilder.pipeline(HttpPipeline pipeline)"
|
|
summary: "Sets The HTTP pipeline to send requests through."
|
|
parameters:
|
|
- description: "the pipeline value."
|
|
name: "pipeline"
|
|
type: "<xref href=\"com.azure.core.http.HttpPipeline?alt=com.azure.core.http.HttpPipeline&text=HttpPipeline\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public LogsQueryClientBuilder pipeline(HttpPipeline pipeline)"
|
|
desc: "Sets The HTTP pipeline to send requests through."
|
|
returns:
|
|
description: "the <xref uid=\"com.azure.monitor.query.LogsQueryClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClientBuilder\"></xref>."
|
|
type: "<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.monitor.query.LogsQueryClientBuilder.retryOptions(com.azure.core.http.policy.RetryOptions)"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder.retryOptions(RetryOptions retryOptions)"
|
|
name: "retryOptions(RetryOptions retryOptions)"
|
|
nameWithType: "LogsQueryClientBuilder.retryOptions(RetryOptions retryOptions)"
|
|
summary: "Sets the <xref uid=\"com.azure.core.http.policy.RetryOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"RetryOptions\"></xref> used for creating the client."
|
|
parameters:
|
|
- description: "The <xref uid=\"com.azure.core.http.policy.RetryOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"RetryOptions\"></xref>."
|
|
name: "retryOptions"
|
|
type: "<xref href=\"com.azure.core.http.policy.RetryOptions?alt=com.azure.core.http.policy.RetryOptions&text=RetryOptions\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public LogsQueryClientBuilder retryOptions(RetryOptions retryOptions)"
|
|
desc: "Sets the <xref uid=\"com.azure.core.http.policy.RetryOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"RetryOptions\"></xref> used for creating the client."
|
|
returns:
|
|
description: "the updated <xref uid=\"com.azure.monitor.query.LogsQueryClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClientBuilder\"></xref>."
|
|
type: "<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.monitor.query.LogsQueryClientBuilder.retryPolicy(com.azure.core.http.policy.RetryPolicy)"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder.retryPolicy(RetryPolicy retryPolicy)"
|
|
name: "retryPolicy(RetryPolicy retryPolicy)"
|
|
nameWithType: "LogsQueryClientBuilder.retryPolicy(RetryPolicy retryPolicy)"
|
|
summary: "Sets The retry policy that will attempt to retry failed requests, if applicable."
|
|
parameters:
|
|
- description: "the retryPolicy value."
|
|
name: "retryPolicy"
|
|
type: "<xref href=\"com.azure.core.http.policy.RetryPolicy?alt=com.azure.core.http.policy.RetryPolicy&text=RetryPolicy\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public LogsQueryClientBuilder retryPolicy(RetryPolicy retryPolicy)"
|
|
desc: "Sets The retry policy that will attempt to retry failed requests, if applicable."
|
|
returns:
|
|
description: "the <xref uid=\"com.azure.monitor.query.LogsQueryClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClientBuilder\"></xref>."
|
|
type: "<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.monitor.query.LogsQueryClientBuilder.serviceVersion(com.azure.monitor.query.LogsQueryServiceVersion)"
|
|
fullName: "com.azure.monitor.query.LogsQueryClientBuilder.serviceVersion(LogsQueryServiceVersion serviceVersion)"
|
|
name: "serviceVersion(LogsQueryServiceVersion serviceVersion)"
|
|
nameWithType: "LogsQueryClientBuilder.serviceVersion(LogsQueryServiceVersion serviceVersion)"
|
|
summary: "The service version to use when creating the client."
|
|
parameters:
|
|
- description: "The <xref uid=\"com.azure.monitor.query.LogsQueryServiceVersion\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryServiceVersion\"></xref>."
|
|
name: "serviceVersion"
|
|
type: "<xref href=\"com.azure.monitor.query.LogsQueryServiceVersion?alt=com.azure.monitor.query.LogsQueryServiceVersion&text=LogsQueryServiceVersion\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public LogsQueryClientBuilder serviceVersion(LogsQueryServiceVersion serviceVersion)"
|
|
desc: "The service version to use when creating the client."
|
|
returns:
|
|
description: "the <xref uid=\"com.azure.monitor.query.LogsQueryClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClientBuilder\"></xref>."
|
|
type: "<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />"
|
|
type: "class"
|
|
desc: "Fluent builder for creating instances of <xref uid=\"com.azure.monitor.query.LogsQueryClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClient\"></xref> and <xref uid=\"com.azure.monitor.query.LogsQueryAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryAsyncClient\"></xref>.\n\nThe LogsQueryClientBuilder is responsible for authenticating a building instances of <xref uid=\"com.azure.monitor.query.LogsQueryClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryClient\"></xref> and <xref uid=\"com.azure.monitor.query.LogsQueryAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsQueryAsyncClient\"></xref>. Customizations can be applied to clients through the builder using the various options available.\n\n## Getting Started ##\n\nTo create instances of the clients, sufficient authentication credentials are required. <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> is a common form of authentication. The resource / workspace is not required for client creation, but the authentication credentials must have access to the resources / workspaces utilized by the client.\n\n### Client Builder Usage ###\n\nThe following sample shows instantiating an asynchronous Logs query Client using Token Credential\n\n```java\nLogsQueryAsyncClient logsQueryAsyncClient = new LogsQueryClientBuilder()\n .credential(tokenCredential)\n .buildAsyncClient();\n```\n\nThe following sample shows instantiating a synchronous Logs query Client using Token Credential\n\n```java\nLogsQueryClient logsQueryClient = new LogsQueryClientBuilder()\n .credential(tokenCredential)\n .buildClient();\n```\n\nFor more information about the other types of credentials that can be used to authenticate your client, please see this documentation: [Azure Identity][]\n\n\n[Azure Identity]: https://learn.microsoft.com/java/api/overview/azure/identity-readme?view=azure-java-stable"
|
|
implements:
|
|
- "<xref href=\"com.azure.core.client.traits.ConfigurationTrait?alt=com.azure.core.client.traits.ConfigurationTrait&text=ConfigurationTrait\" data-throw-if-not-resolved=\"False\" /><<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />>"
|
|
- "<xref href=\"com.azure.core.client.traits.EndpointTrait?alt=com.azure.core.client.traits.EndpointTrait&text=EndpointTrait\" data-throw-if-not-resolved=\"False\" /><<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />>"
|
|
- "<xref href=\"com.azure.core.client.traits.HttpTrait?alt=com.azure.core.client.traits.HttpTrait&text=HttpTrait\" data-throw-if-not-resolved=\"False\" /><<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />>"
|
|
- "<xref href=\"com.azure.core.client.traits.TokenCredentialTrait?alt=com.azure.core.client.traits.TokenCredentialTrait&text=TokenCredentialTrait\" data-throw-if-not-resolved=\"False\" /><<xref href=\"com.azure.monitor.query.LogsQueryClientBuilder?alt=com.azure.monitor.query.LogsQueryClientBuilder&text=LogsQueryClientBuilder\" data-throw-if-not-resolved=\"False\" />>"
|
|
metadata: {}
|
|
package: "com.azure.monitor.query"
|
|
artifact: com.azure:azure-monitor-query:1.5.3
|