Method | Description | |
---|---|---|
GetMetrics ( this operations, string resourceUri, string filterString ) : |
The List Metric operation lists the metric value sets for the resource metrics.
|
|
GetMetrics ( this operations, string resourceUri, string filterString, IEnumerable |
Non-async version returns the MetricListResponse straight (consistent with overload for get metrics by name functions)
|
|
GetMetricsAsync ( this operations, string resourceUri, string filterString ) : Task |
The List Metric operation lists the metric value sets for the resource metrics.
|
|
GetMetricsAsync ( this operations, string resourceUri, string filterString, IEnumerable |
Overload for get metrics by definitions that does not require cancellation token (consistent with overload for get metrics by name functions)
|
public static GetMetrics ( this operations, string resourceUri, string filterString ) : |
||
operations | this | /// Reference to the Microsoft.Azure.Insights.Legacy.IMetricOperations. /// |
resourceUri | string | /// Required. The resource identifier of the target resource to get /// metrics for. /// |
filterString | string | /// Optional. An OData $filter expression that supports querying by the /// name, startTime, endTime and timeGrain of the metric value sets. /// For example, "(name.value eq 'Percentage CPU') and startTime eq /// 2014-07-02T01:00Z and endTime eq 2014-08-21T01:00:00Z and /// timeGrain eq duration'PT1H'". In the expression, startTime, /// endTime and timeGrain are required. Name is optional. /// |
return |
public static GetMetrics ( this operations, string resourceUri, string filterString, IEnumerable |
||
operations | this | Reference to IMetricOperations |
resourceUri | string | Resource Uri for the metrics |
filterString | string | OData filter string (no name specifitations allowed in this one) |
definitions | IEnumerable |
The MetricDefinitions |
return |
public static GetMetricsAsync ( this operations, string resourceUri, string filterString ) : Task |
||
operations | this | /// Reference to the Microsoft.Azure.Insights.Legacy.IMetricOperations. /// |
resourceUri | string | /// Required. The resource identifier of the target resource to get /// metrics for. /// |
filterString | string | /// Optional. An OData $filter expression that supports querying by the /// name, startTime, endTime and timeGrain of the metric value sets. /// For example, "(name.value eq 'Percentage CPU') and startTime eq /// 2014-07-02T01:00Z and endTime eq 2014-08-21T01:00:00Z and /// timeGrain eq duration'PT1H'". In the expression, startTime, /// endTime and timeGrain are required. Name is optional. /// |
return | Task |
public static GetMetricsAsync ( this operations, string resourceUri, string filterString, IEnumerable |
||
operations | this | Reference to IMetricOperations |
resourceUri | string | Resource Uri for the metrics |
filterString | string | OData filter string (no name specifitations allowed in this one) |
definitions | IEnumerable |
The MetricDefinitions |
return | Task |