UsageMetricsOperationsExtensions.ListAsync Method (IUsageMetricsOperations, String, String)

 

The List operation lists the usage metrics for the resource.

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

Syntax

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

Parameters

  • resourceUri
    Type: System.String

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

  • filterString
    Type: System.String

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

Return Value

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

The List Usage Metric operation response.

See Also

UsageMetricsOperationsExtensions Class
Microsoft.Azure.Insights Namespace

Return to top