MetricDefinitionOperationsExtensions.GetMetricDefinitions Method (IMetricDefinitionOperations, String, String)
The List Metric Definitions operation lists the metric definitions for the resource.
Assembly: Microsoft.Azure.Insights (in Microsoft.Azure.Insights.dll)
public static MetricDefinitionListResponse GetMetricDefinitions( this IMetricDefinitionOperations operations, string resourceUri, string filterString )
Parameters
- operations
-
Type:
Microsoft.Azure.Insights.IMetricDefinitionOperations
Reference to the Microsoft.Azure.Insights.IMetricDefinitionOperations.
- 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: Microsoft.Azure.Insights.Models.MetricDefinitionListResponseThe List Metric Definitions operation response.
Show: