MetricsClient class
A client that can query batch metrics.
Constructors
Metrics |
Methods
query |
Returns all the Azure Monitor metrics requested for the batch of resources. |
Constructor Details
MetricsClient(string, TokenCredential, MetricsClientOptions)
new MetricsClient(endpoint: string, tokenCredential: TokenCredential, options?: MetricsClientOptions)
Parameters
- endpoint
-
string
- tokenCredential
- TokenCredential
- options
- MetricsClientOptions
Method Details
queryResources(string[], string[], string, MetricsQueryResourcesOptions)
Returns all the Azure Monitor metrics requested for the batch of resources.
function queryResources(resourceIds: string[], metricNames: string[], metricNamespace: string, options?: MetricsQueryResourcesOptions): Promise<MetricsQueryResult[]>
Parameters
- resourceIds
-
string[]
- metricNames
-
string[]
- metricNamespace
-
string
- options
- MetricsQueryResourcesOptions
Returns
Promise<MetricsQueryResult[]>