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)

public:
[ExtensionAttribute]
static Task<MetricListResponse^>^ GetMetricsAsync(
	IMetricOperations^ operations,
	String^ resourceUri,
	String^ filterString,
	IEnumerable<MetricDefinition^>^ definitions
)

Parameters

operations
Type: Microsoft.Azure.Insights::IMetricOperations^

Reference to IMetricOperations

resourceUri
Type: System::String^

Resource Uri for the metrics

filterString
Type: System::String^

OData 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

Return to top
Show: