MetricOperationsExtensions.GetMetricsAsync Method (IMetricOperations, String, String, IEnumerable<MetricDefinition>)
Overload for get metrics by definitions that does not require cancellation token (consistent with overload for get metrics by name functions)
Namespace: Microsoft.Azure.Insights
Assembly: Microsoft.Azure.Insights (in Microsoft.Azure.Insights.dll)
Syntax
public static Task<MetricListResponse> GetMetricsAsync(
this IMetricOperations operations,
string resourceUri,
string filterString,
IEnumerable<MetricDefinition> definitions
)
public:
[ExtensionAttribute]
static Task<MetricListResponse^>^ GetMetricsAsync(
IMetricOperations^ operations,
String^ resourceUri,
String^ filterString,
IEnumerable<MetricDefinition^>^ definitions
)
static member GetMetricsAsync :
operations:IMetricOperations *
resourceUri:string *
filterString:string *
definitions:IEnumerable<MetricDefinition> -> Task<MetricListResponse>
<ExtensionAttribute>
Public Shared Function GetMetricsAsync (
operations As IMetricOperations,
resourceUri As String,
filterString As String,
definitions As IEnumerable(Of MetricDefinition)
) As Task(Of MetricListResponse)
Parameters
operations
Type: Microsoft.Azure.Insights.IMetricOperationsReference to IMetricOperations
resourceUri
Type: System.StringResource Uri for the metrics
filterString
Type: System.StringOData filter string (no name specifitations allowed in this one)
definitions
Type: System.Collections.Generic.IEnumerable<MetricDefinition>The MetricDefinitions
Return Value
Type: System.Threading.Tasks.Task<MetricListResponse>
The requested Metrics
See Also
GetMetricsAsync Overload
MetricOperationsExtensions Class
Microsoft.Azure.Insights Namespace
Return to top