Share via


MetricDefinitionOperationsExtensions.GetMetricDefinitionsAsync Method (IMetricDefinitionOperations, String, String)

 

The List Metric Definitions operation lists the metric definitions for the resource.

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

Syntax

public static Task<MetricDefinitionListResponse> GetMetricDefinitionsAsync(
    this IMetricDefinitionOperations operations,
    string resourceUri,
    string filterString
)
public:
[ExtensionAttribute]
static Task<MetricDefinitionListResponse^>^ GetMetricDefinitionsAsync(
    IMetricDefinitionOperations^ operations,
    String^ resourceUri,
    String^ filterString
)
static member GetMetricDefinitionsAsync : 
        operations:IMetricDefinitionOperations *
        resourceUri:string *
        filterString:string -> Task<MetricDefinitionListResponse>
<ExtensionAttribute>
Public Shared Function GetMetricDefinitionsAsync (
    operations As IMetricDefinitionOperations,
    resourceUri As String,
    filterString As String
) As Task(Of MetricDefinitionListResponse)

Parameters

  • resourceUri
    Type: System.String

    Required. The resource identifier of the target resource to get metrics for.

  • filterString
    Type: System.String

    Required. An OData $filter expression that supports querying by the name of the metric definition. For example, "name.value eq 'Percentage CPU'". Name is optional, meaning the expression may be "".

Return Value

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

The List Metric Definitions operation response.

See Also

MetricDefinitionOperationsExtensions Class
Microsoft.Azure.Insights Namespace

Return to top