IMetricOperations.GetMetricsAsync Method (String, String, IEnumerable(Of MetricDefinition), CancellationToken)

 

Get Metrics function that takes in the MetricDefinitions (rather than names in the filter string) to allow users to cache the definitions themselves

Namespace:   Microsoft.Azure.Insights
Assembly:  Microsoft.Azure.Insights (in Microsoft.Azure.Insights.dll)

Function GetMetricsAsync (
	resourceUri As String,
	filterString As String,
	definitions As IEnumerable(Of MetricDefinition),
	cancellationToken As CancellationToken
) As Task(Of MetricListResponse)

Parameters

resourceUri
Type: System.String

The Resource Uri for the metrics

filterString
Type: System.String

The filter string (no name specification allowed in this one)

definitions
Type: System.Collections.Generic.IEnumerable(Of MetricDefinition)

The MetricDefinitions

cancellationToken
Type: System.Threading.CancellationToken

Cancellation Token

Return to top
Show: