diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/LogsQueryAsyncClient.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/LogsQueryAsyncClient.java index 360cf0fa21c4..1a56141c4720 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/LogsQueryAsyncClient.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/LogsQueryAsyncClient.java @@ -37,8 +37,16 @@ import static com.azure.monitor.query.implementation.logs.models.LogsQueryHelper.mapLogsQueryError; /** - * The asynchronous client for querying Azure Monitor logs. - *

Instantiating an asynchronous Logs query Client

+ *

Provides an asynchronous service client for querying logs in the Azure Monitor Service.

+ * + *

The LogsQueryClient is an asynchronous client that provides methods to execute Kusto queries against + * Azure Monitor logs. It provides methods to query logs in a specific workspace, execute a batch of queries, and + * query logs for a specific Azure resource.

+ * + *

Getting Started

+ * + *

Authenticating and building instances of this client are handled by {@link LogsQueryClientBuilder}. + * This sample shows how to authenticate and build a LogQueryAsyncClient instance using LogQueryClientBuilder.

* * *
@@ -47,6 +55,38 @@
  *         .buildAsyncClient();
  * 
* + * + *

For more information on building and authenticating, see the {@link LogsQueryClientBuilder} documentation.

+ * + *

Client Usage

+ * + *

+ * For more information on how to use this client, see the following method documentation: + *

+ * + * + * + * @see com.azure.monitor.query + * @see LogsQueryClientBuilder */ @ServiceClient(builder = LogsQueryClientBuilder.class, isAsync = true) public final class LogsQueryAsyncClient { diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/LogsQueryClient.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/LogsQueryClient.java index 08b73749048f..06595ff25426 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/LogsQueryClient.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/LogsQueryClient.java @@ -35,9 +35,16 @@ import static com.azure.monitor.query.implementation.logs.models.LogsQueryHelper.updateContext; /** - * The synchronous client for querying Azure Monitor logs. + *

Provides a synchronous service client for querying logs in the Azure Monitor Service.

* - *

Instantiating a synchronous Logs query Client

+ *

The LogsQueryClient is a synchronous client that provides methods to execute Kusto queries against + * Azure Monitor logs. It provides methods to query logs in a specific workspace, execute a batch of queries, and + * query logs for a specific Azure resource.

+ * + *

Getting Started

+ * + *

Authenticating and building instances of this client are handled by {@link LogsQueryClientBuilder}. + * his sample shows how to authenticate and build a LogsQueryClient instance using LogQueryClientBuilder.

* * *
@@ -46,6 +53,38 @@
  *         .buildClient();
  * 
* + * + *

For more information on building and authenticating, see the {@link LogsQueryClientBuilder} documentation.

+ * + *

Client Usage

+ * + *

+ * For more information on how to use this client, see the following method documentation: + *

+ * + * + * + * @see com.azure.monitor.query + * @see LogsQueryClientBuilder */ @ServiceClient(builder = LogsQueryClientBuilder.class) public final class LogsQueryClient { diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/LogsQueryClientBuilder.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/LogsQueryClientBuilder.java index 5859275c1317..2bc4e72086af 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/LogsQueryClientBuilder.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/LogsQueryClientBuilder.java @@ -21,9 +21,23 @@ import com.azure.monitor.query.implementation.logs.AzureLogAnalyticsImplBuilder; /** - * Fluent builder for creating instances of {@link LogsQueryClient} and {@link LogsQueryAsyncClient}. + *

Fluent builder for creating instances of {@link LogsQueryClient} and {@link LogsQueryAsyncClient}.

* - *

Instantiating an asynchronous Logs query Client

+ *

The LogsQueryClientBuilder is responsible for authenticating a building instances of {@link LogsQueryClient} and + * {@link LogsQueryAsyncClient}. Customizations can be applied to clients through the builder using the various options + * available.

+ * + *

Getting Started

+ * + *

+ * To create instances of the clients, sufficient authentication credentials are required. {@link TokenCredential} 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. + *

+ * + *

Client Builder Usage

+ * + *

The following sample shows instantiating an asynchronous Logs query Client using Token Credential

* * *
@@ -33,7 +47,7 @@
  * 
* * - *

Instantiating a synchronous Logs query Client

+ *

The following sample shows instantiating a synchronous Logs query Client using Token Credential

* * *
@@ -42,6 +56,15 @@
  *         .buildClient();
  * 
* + * + *

+ * For more information about the other types of credentials that can be used to authenticate your client, please see + * this documentation: Azure Identity + *

+ * + * @see com.azure.monitor.query + * @see LogsQueryClient + * @see LogsQueryAsyncClient */ @ServiceClientBuilder(serviceClients = {LogsQueryClient.class, LogsQueryAsyncClient.class}) public final class LogsQueryClientBuilder implements EndpointTrait, @@ -50,6 +73,11 @@ public final class LogsQueryClientBuilder implements EndpointTraitInstantiating an asynchronous Metrics query Client

+ *

The asynchronous client for querying Azure Monitor metrics.

+ * + *

Azure Monitor Metrics is a feature of Azure Monitor that collects numeric data from monitored resources into a + * time-series database. Metrics are numerical values that are collected at regular intervals and describe some aspect + * of a system at a particular time. The MetricsQueryClient provides synchronous implementations of methods that query + * metrics from your Azure services.

+ * + *

Getting Started

+ * + *

+ * Authenticating and building MetricsQueryAsyncClient instances are done through {@link MetricsQueryClientBuilder}. + * The following sample shows how to build a new MetricsQueryClient instance. + *

* * *
@@ -43,6 +54,27 @@
  *         .buildAsyncClient();
  * 
* + * + *

+ * For more information on building and authenticating, see the {@link MetricsQueryClientBuilder} documentation. + *

+ * + *

Client Usage

+ * + *

+ * For more information on using the MetricsQueryAsyncClient, see the following method documentation: + *

+ * + * + * + * @see com.azure.monitor.query + * @see MetricsQueryClientBuilder */ @ServiceClient(builder = MetricsQueryClientBuilder.class, isAsync = true) public final class MetricsQueryAsyncClient { diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryClient.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryClient.java index 10b50a41da48..340bc6ce986e 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryClient.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryClient.java @@ -33,9 +33,20 @@ import static com.azure.monitor.query.implementation.metrics.models.MetricsHelper.convertToMetricsQueryResult; /** - * The synchronous client for querying Azure Monitor metrics. + *

The synchronous client for querying Azure Monitor metrics.

+ * + *

Azure Monitor Metrics is a feature of Azure Monitor that collects numeric data from monitored resources into a + * time-series database. Metrics are numerical values that are collected at regular intervals and describe some aspect + * of a system at a particular time. The MetricsQueryClient provides synchronous implementations of methods that query + * metrics from your Azure services.

+ * + *

Getting Started

+ * + *

+ * Authenticating and building MetricsQueryClient instances are done through {@link MetricsQueryClientBuilder}. + * The following sample shows how to build a new MetricsQueryClient instance. + *

* - *

Instantiating a synchronous Metrics query Client

* *
  * MetricsQueryClient metricsQueryClient = new MetricsQueryClientBuilder()
@@ -43,6 +54,27 @@
  *         .buildClient();
  * 
* + * + *

+ * For more information on building and authenticating, see the {@link MetricsQueryClientBuilder} documentation. + *

+ * + *

Client Usage

+ * + *

+ * For more information on using the MetricsQueryClient, see the following method documentation: + *

+ * + * + * + * @see com.azure.monitor.query + * @see MetricsQueryClientBuilder */ @ServiceClient(builder = MetricsQueryClientBuilder.class) public final class MetricsQueryClient { diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryClientBuilder.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryClientBuilder.java index c9227ecfae53..be8a683be297 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryClientBuilder.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryClientBuilder.java @@ -24,9 +24,27 @@ import com.azure.monitor.query.implementation.metricsnamespaces.MetricsNamespacesClientImplBuilder; /** - * Fluent builder for creating instances of {@link MetricsQueryClient} and {@link MetricsQueryAsyncClient}. + *

Fluent builder for creating instances of {@link MetricsQueryClient} and {@link MetricsQueryAsyncClient}.

* - *

Instantiating an asynchronous Metrics query Client

+ *

+ * The MetricsQueryClientBuilder is responsible for authenticating a building instances of {@link MetricsQueryClient} and + * {@link MetricsQueryAsyncClient}. Customizations can be applied to clients through the builder using the various options + * available. + *

+ * + *

Getting Started

+ * + *

+ * To create instances of the clients, sufficient authentication credentials are required. {@link TokenCredential} 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. + *

+ * + *

Client Builder Usage

+ * + *

+ * The following sample shows instantiating an asynchronous Metrics query Client using Token Credential + *

* * *
@@ -36,7 +54,9 @@
  * 
* * - *

Instantiating a synchronous Metrics query Client

+ *

+ * The following sample shows instantiating a synchronous Metrics query Client using Token Credential + *

* * *
@@ -45,6 +65,15 @@
  *         .buildClient();
  * 
* + * + *

+ * For more information about the other types of credentials that can be used to authenticate your client, please see + * this documentation: Azure Identity + *

+ * + * @see com.azure.monitor.query + * @see MetricsQueryClient + * @see MetricsQueryAsyncClient */ @ServiceClientBuilder(serviceClients = {MetricsQueryClient.class, MetricsQueryAsyncClient.class}) public final class MetricsQueryClientBuilder implements EndpointTrait, @@ -60,6 +89,11 @@ public final class MetricsQueryClientBuilder implements EndpointTrait { /** Static value timespan for LogsColumnType. */ public static final LogsColumnType TIMESPAN = fromString("timespan"); + /** + * Creates an instance of LogsColumnType. + */ + public LogsColumnType() { } + /** * Creates or finds a LogsColumnType from its string representation. * @@ -50,7 +55,11 @@ public static LogsColumnType fromString(String name) { return fromString(name, LogsColumnType.class); } - /** @return known LogsColumnType values. */ + /** + * Returns known LogsColumnType values. + * + * @return The {@link Collection} of known LogsColumnType values. + */ public static Collection values() { return values(LogsColumnType.class); } diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/LogsQueryOptions.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/LogsQueryOptions.java index fe1487c452d1..a560793d0824 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/LogsQueryOptions.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/LogsQueryOptions.java @@ -20,6 +20,11 @@ public final class LogsQueryOptions { private Duration serverTimeout; private List additionalWorkspaces; + /** + * Creates an instance of LogsQueryOptions. + */ + public LogsQueryOptions() { } + /** * Returns the server timeout for this query. * @return The server timeout duration. diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricAvailability.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricAvailability.java index 8d875fd77378..75037bb2d7a9 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricAvailability.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricAvailability.java @@ -19,6 +19,11 @@ public final class MetricAvailability { MetricsHelper.setMetricAvailabilityAccessor(MetricAvailability::setMetricAvailabilityProperties); } + /** + * Creates an instance of MetricAvailability. + */ + public MetricAvailability() { } + private void setMetricAvailabilityProperties(Duration retention, Duration granularity) { this.retention = retention; this.granularity = granularity; diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricClass.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricClass.java index 15010f5b9a7b..7916fe8762d7 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricClass.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricClass.java @@ -24,6 +24,11 @@ public final class MetricClass extends ExpandableStringEnum { /** Static value Saturation for MetricClass. */ public static final MetricClass SATURATION = fromString("Saturation"); + /** + * Creates an instance of MetricClass. + */ + public MetricClass() { } + /** * Creates or finds a MetricClass from its string representation. * @@ -35,7 +40,11 @@ public static MetricClass fromString(String name) { return fromString(name, MetricClass.class); } - /** @return known MetricClass values. */ + /** + * Returns the known MetricClass values. + * + * @return The {@link Collection} of known MetricClass values. + */ public static Collection values() { return values(MetricClass.class); } diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricDefinition.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricDefinition.java index afa2531e88d5..6256a24c8631 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricDefinition.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricDefinition.java @@ -30,6 +30,11 @@ public final class MetricDefinition { MetricsHelper.setMetricDefinitionAccessor(MetricDefinition::setMetricDefinitionProperties); } + /** + * Creates an instance of MetricDefinition. + */ + public MetricDefinition() { } + private void setMetricDefinitionProperties(Boolean dimensionRequired, String resourceId, String namespace, diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricNamespace.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricNamespace.java index 50ce62705640..93bb1ee5c10e 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricNamespace.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricNamespace.java @@ -19,6 +19,11 @@ public final class MetricNamespace { MetricsHelper.setMetricNamespaceAccessor(MetricNamespace::setMetricNamespaceProperties); } + /** + * Creates an instance of MetricNamespace. + */ + public MetricNamespace() { } + private void setMetricNamespaceProperties(NamespaceClassification classification, String id, String name, String fullyQualifiedName, String type) { this.classification = classification; diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricUnit.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricUnit.java index 699088b6dc8a..34d07f49fb61 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricUnit.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricUnit.java @@ -48,6 +48,11 @@ public final class MetricUnit extends ExpandableStringEnum { /** Static value BitsPerSecond for MetricUnit. */ public static final MetricUnit BITS_PER_SECOND = fromString("BitsPerSecond"); + /** + * Creates an instance of MetricUnit. + */ + public MetricUnit() { } + /** * Creates or finds a MetricUnit from its string representation. * @@ -59,7 +64,11 @@ public static MetricUnit fromString(String name) { return fromString(name, MetricUnit.class); } - /** @return known MetricUnit values. */ + /** + * Returns the known MetricUnit values. + * + * @return The {@link Collection} of known MetricUnit values. + */ public static Collection values() { return values(MetricUnit.class); } diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricsQueryOptions.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricsQueryOptions.java index 57d6eed36194..75f7af9c279e 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricsQueryOptions.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricsQueryOptions.java @@ -22,6 +22,11 @@ public final class MetricsQueryOptions { private String filter; private String metricNamespace; + /** + * Creates an instance of MetricsQueryOptions. + */ + public MetricsQueryOptions() { } + /** * Returns the time span for which the metrics data is queried. * @return the time span for which the metrics data is queried. diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricsQueryResourcesOptions.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricsQueryResourcesOptions.java index 02d6cd2ba54a..b5e03446eb80 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricsQueryResourcesOptions.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricsQueryResourcesOptions.java @@ -20,8 +20,12 @@ public final class MetricsQueryResourcesOptions { private String orderBy; private String filter; - private String rollupBy; + /** + * Creates an instance of MetricsQueryResourcesOptions. + */ + public MetricsQueryResourcesOptions() { } + private String rollupBy; /** * Returns the time span for which the metrics data is queried. diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/NamespaceClassification.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/NamespaceClassification.java index e366de2d3c57..f94469cf9f6f 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/NamespaceClassification.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/NamespaceClassification.java @@ -18,6 +18,11 @@ public final class NamespaceClassification extends ExpandableStringEnum values() { return values(NamespaceClassification.class); } diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/package-info.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/package-info.java index d4471509d853..6f5ecd316e98 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/package-info.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/package-info.java @@ -2,6 +2,121 @@ // Licensed under the MIT License. /** - * Package containing clients for querying logs and metrics from Azure Monitor. + *

Azure Monitor Query service is a powerful tool that allows you to query and analyze log data from various sources + * in Azure. It is built on top of the Kusto Query Language (KQL), which is a powerful query language that allows you + * to perform complex queries on large datasets. With Azure Monitor Query, you can easily search and analyze + * log data from various sources, including virtual machines, containers, and applications.

+ * + *

Azure Monitor Query java client library is a library that allows you to execute read-only queries against + * Azure Monitor’s two data platforms: Logs and Metrics. The library provides both synchronous and asynchronous forms + * of the clients.

+ * + *
    + *
  • Logs - Collects and + * organizes log and performance data from monitored resources. Data from different sources such as platform logs + * from Azure services, log and performance data from virtual machines agents, and usage and performance data from + * apps can be consolidated into a single Azure Log Analytics workspace. + * The various data types can be analyzed together using the Kusto Query Language.
  • + * + *
  • Metrics - Collects + * numeric data from monitored resources into a time series database. Metrics are numerical values that are + * collected at regular intervals and describe some aspect of a system at a particular time. Metrics are lightweight + * and capable of supporting near real-time scenarios, making them particularly useful for alerting and fast + * detection of issues.
  • + *
+ * + *

Getting Started

+ * + *

In order to interact with the Monitor service you'll need to create an instance of the + * {@link com.azure.monitor.query.LogsQueryClient} or {@link com.azure.monitor.query.MetricsQueryClient} class. To make + * this possible you'll need to use AAD authentication via + * Azure Identity + * to connect to the service.

+ * + *

Sample: Construct Asynchronous Clients

+ * + *

The following code sample demonstrates the creation of a {@link com.azure.monitor.query.LogsQueryAsyncClient} + * using the {@link com.azure.monitor.query.LogsQueryClientBuilder}.

+ * + * + *
+ * LogsQueryAsyncClient logsQueryAsyncClient = new LogsQueryClientBuilder()
+ *         .credential(tokenCredential)
+ *         .buildAsyncClient();
+ * 
+ * + * + *

The following code sample demonstrates the creation of a {@link com.azure.monitor.query.MetricsQueryAsyncClient} + * using the {@link com.azure.monitor.query.MetricsQueryClientBuilder}.

+ * + * + *
+ * MetricsQueryAsyncClient metricsQueryAsyncClient = new MetricsQueryClientBuilder()
+ *         .credential(tokenCredential)
+ *         .buildAsyncClient();
+ * 
+ * + * + *

Sample: Construct Synchronous Clients

+ * + *

The following code sample demonstrates the creation of a {@link com.azure.monitor.query.LogsQueryClient} + * using the {@link com.azure.monitor.query.LogsQueryClientBuilder}.

+ * + * + *
+ * LogsQueryClient logsQueryClient = new LogsQueryClientBuilder()
+ *         .credential(tokenCredential)
+ *         .buildClient();
+ * 
+ * + * + *

The following code sample demonstrates the creation of a {@link com.azure.monitor.query.MetricsQueryClient} + * using the {@link com.azure.monitor.query.MetricsQueryClientBuilder}.

+ * + * + *
+ * MetricsQueryClient metricsQueryClient = new MetricsQueryClientBuilder()
+ *         .credential(tokenCredential)
+ *         .buildClient();
+ * 
+ * + * + *
+ * + *
+ * + *

Query Workspace

+ * + *

The {@link com.azure.monitor.query.LogsQueryClient#queryWorkspace(java.lang.String, java.lang.String, com.azure.monitor.query.models.QueryTimeInterval) Query Workspace API} method can be used to + * query logs from a given workspace.

+ * + *

The sample below shows how to query logs from the last 24 hours

+ * + * + *
+ * LogsQueryResult queryResult = logsQueryClient.queryWorkspace("{workspace-id}", "{kusto-query}",
+ *         QueryTimeInterval.LAST_DAY);
+ * for (LogsTableRow row : queryResult.getTable().getRows()) {
+ *     System.out.println(row.getRow()
+ *             .stream()
+ *             .map(LogsTableCell::getValueAsString)
+ *             .collect(Collectors.joining(",")));
+ * }
+ * 
+ * + * + * + *

Note: For asynchronous sample, refer to {@link com.azure.monitor.query.LogsQueryAsyncClient#queryWorkspace(java.lang.String, java.lang.String, com.azure.monitor.query.models.QueryTimeInterval) QueryWorkspace Async API}.

+ * + *
+ * + *
+ * + * @see com.azure.monitor.query.LogsQueryClientBuilder + * @see com.azure.monitor.query.LogsQueryClient + * @see com.azure.monitor.query.LogsQueryAsyncClient + * @see com.azure.monitor.query.MetricsQueryClientBuilder + * @see com.azure.monitor.query.MetricsQueryClient + * @see com.azure.monitor.query.MetricsQueryAsyncClient */ package com.azure.monitor.query;