IMetricOperations.GetMetricsAsync Method (String, String, IEnumerable<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)

Syntax

Task<MetricListResponse> GetMetricsAsync(
    string resourceUri,
    string filterString,
    IEnumerable<MetricDefinition> definitions,
    CancellationToken cancellationToken
)
Task<MetricListResponse^>^ GetMetricsAsync(
    String^ resourceUri,
    String^ filterString,
    IEnumerable<MetricDefinition^>^ definitions,
    CancellationToken cancellationToken
)
abstract GetMetricsAsync : 
        resourceUri:string *
        filterString:string *
        definitions:IEnumerable<MetricDefinition> *
        cancellationToken:CancellationToken -> Task<MetricListResponse>
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)

Return Value

Type: System.Threading.Tasks.Task<MetricListResponse>

See Also

GetMetricsAsync Overload
IMetricOperations Interface
Microsoft.Azure.Insights Namespace

Return to top