Compartir a través de


IMetricDefinitionOperations.GetMetricDefinitionsAsync Method (String, String, CancellationToken)

 

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

Task<MetricDefinitionListResponse> GetMetricDefinitionsAsync(
    string resourceUri,
    string filterString,
    CancellationToken cancellationToken
)
Task<MetricDefinitionListResponse^>^ GetMetricDefinitionsAsync(
    String^ resourceUri,
    String^ filterString,
    CancellationToken cancellationToken
)
abstract GetMetricDefinitionsAsync : 
        resourceUri:string *
        filterString:string *
        cancellationToken:CancellationToken -> Task<MetricDefinitionListResponse>
Function GetMetricDefinitionsAsync (
    resourceUri As String,
    filterString As String,
    cancellationToken As CancellationToken
) As Task(Of MetricDefinitionListResponse)

Parameters

  • resourceUri
    Type: System.String

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

  • filterString
    Type: System.String

    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

IMetricDefinitionOperations Interface
Microsoft.Azure.Insights Namespace

Return to top