MetricsBatchQueryClient class
A client that can query batch metrics.
Methods
| query |
Returns all the Azure Monitor metrics requested for the batch of resources. |
Constructor Details
MetricsBatchQueryClient(string, TokenCredential, MetricsBatchQueryClientOptions)
new MetricsBatchQueryClient(batchEndPoint: string, tokenCredential: TokenCredential, options?: MetricsBatchQueryClientOptions)
Parameters
- batchEndPoint
-
string
- tokenCredential
- TokenCredential
- options
- MetricsBatchQueryClientOptions
Method Details
queryBatch(string[], string, string[], MetricsBatchOptionalParams)
Returns all the Azure Monitor metrics requested for the batch of resources.
function queryBatch(resourceIds: string[], metricNamespace: string, metricNames: string[], options?: MetricsBatchOptionalParams): Promise<MetricResultsResponseValuesItem[]>
Parameters
- resourceIds
-
string[]
- metricNamespace
-
string
- metricNames
-
string[]
- options
- MetricsBatchOptionalParams
Returns
Promise<MetricResultsResponseValuesItem[]>