Share via


MetricsBatchQueryAsyncClient Class

  • java.lang.Object
    • com.azure.monitor.query.MetricsBatchQueryAsyncClient

public final class MetricsBatchQueryAsyncClient

This class provides an asynchronous client that contains all the query operations that use batch requests to retrieve metrics for multiple resources.

Method Summary

Modifier and Type Method and Description
Mono<MetricsBatchResult> queryBatch(List<String> resourceUris, List<String> metricsNames, String metricsNamespace)

Returns all the Azure Monitor metrics requested for the batch of resources.

Mono<Response<MetricsBatchResult>> queryBatchWithResponse(List<String> resourceUris, List<String> metricsNames, String metricsNamespace, MetricsQueryOptions options)

Returns all the Azure Monitor metrics requested for the batch of resources.

Methods inherited from java.lang.Object

Method Details

queryBatch

public Mono<MetricsBatchResult> queryBatch(List<String> resourceUris, List<String> metricsNames, String metricsNamespace)

Returns all the Azure Monitor metrics requested for the batch of resources.

Parameters:

resourceUris - The resource URIs for which the metrics is requested.
metricsNames - The names of the metrics to query.
metricsNamespace - The namespace of the metrics to query.

Returns:

A time-series metrics result for the requested metric names.

queryBatchWithResponse

public Mono<Response<MetricsBatchResult>> queryBatchWithResponse(List<String> resourceUris, List<String> metricsNames, String metricsNamespace, MetricsQueryOptions options)

Returns all the Azure Monitor metrics requested for the batch of resources.

Parameters:

resourceUris - The resource URIs for which the metrics is requested.
metricsNames - The names of the metrics to query.
metricsNamespace - The namespace of the metrics to query.
options - The MetricsQueryOptions to include for the request.

Returns:

A time-series metrics result for the requested metric names.

Applies to