UsageMetricsOperationsExtensions.List 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 UsageMetricListResponse List(
this IUsageMetricsOperations operations,
string resourceUri,
string filterString
)
public:
[ExtensionAttribute]
static UsageMetricListResponse^ List(
IUsageMetricsOperations^ operations,
String^ resourceUri,
String^ filterString
)
static member List :
operations:IUsageMetricsOperations *
resourceUri:string *
filterString:string -> UsageMetricListResponse
<ExtensionAttribute>
Public Shared Function List (
operations As IUsageMetricsOperations,
resourceUri As String,
filterString As String
) As UsageMetricListResponse
Parameters
operations
Type: Microsoft.Azure.Insights.IUsageMetricsOperationsReference to the Microsoft.Azure.Insights.IUsageMetricsOperations.
resourceUri
Type: System.StringRequired. The resource identifier of the target resource to get usages for.
filterString
Type: System.StringRequired. 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: Microsoft.Azure.Insights.Models.UsageMetricListResponse
The List Usage Metric operation response.
See Also
UsageMetricsOperationsExtensions Class
Microsoft.Azure.Insights Namespace
Return to top