Share via


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

 

Non-async version returns the MetricListResponse straight (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 MetricListResponse GetMetrics(
    this IMetricOperations operations,
    string resourceUri,
    string filterString,
    IEnumerable<MetricDefinition> definitions
)
public:
[ExtensionAttribute]
static MetricListResponse^ GetMetrics(
    IMetricOperations^ operations,
    String^ resourceUri,
    String^ filterString,
    IEnumerable<MetricDefinition^>^ definitions
)
static member GetMetrics : 
        operations:IMetricOperations *
        resourceUri:string *
        filterString:string *
        definitions:IEnumerable<MetricDefinition> -> MetricListResponse
<ExtensionAttribute>
Public Shared Function GetMetrics (
    operations As IMetricOperations,
    resourceUri As String,
    filterString As String,
    definitions As IEnumerable(Of MetricDefinition)
) As MetricListResponse

Parameters

  • filterString
    Type: System.String

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

Return Value

Type: Microsoft.Azure.Insights.Models.MetricListResponse

The requested Metrics

See Also

GetMetrics Overload
MetricOperationsExtensions Class
Microsoft.Azure.Insights Namespace

Return to top