Share via


MetricOperationsExtensions.GetMetricsAsync Method (IMetricOperations, String, String, IEnumerable<MetricDefinition>)

 

Overload for get metrics by definitions that does not require cancellation token (consistent with overload for get metrics by name functions)

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

Syntax

public static Task<MetricListResponse> GetMetricsAsync(
    this IMetricOperations operations,
    string resourceUri,
    string filterString,
    IEnumerable<MetricDefinition> definitions
)
public:
[ExtensionAttribute]
static Task<MetricListResponse^>^ GetMetricsAsync(
    IMetricOperations^ operations,
    String^ resourceUri,
    String^ filterString,
    IEnumerable<MetricDefinition^>^ definitions
)
static member GetMetricsAsync : 
        operations:IMetricOperations *
        resourceUri:string *
        filterString:string *
        definitions:IEnumerable<MetricDefinition> -> Task<MetricListResponse>
<ExtensionAttribute>
Public Shared Function GetMetricsAsync (
    operations As IMetricOperations,
    resourceUri As String,
    filterString As String,
    definitions As IEnumerable(Of MetricDefinition)
) As Task(Of MetricListResponse)

Parameters

  • filterString
    Type: System.String

    OData filter string (no name specifitations allowed in this one)

Return Value

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

The requested Metrics

See Also

GetMetricsAsync Overload
MetricOperationsExtensions Class
Microsoft.Azure.Insights Namespace

Return to top