C# Класс Microsoft.Azure.Insights.Legacy.MetricOperationsExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
GetMetrics ( this operations, string resourceUri, string filterString ) : MetricListResponse

The List Metric operation lists the metric value sets for the resource metrics.

GetMetrics ( this operations, string resourceUri, string filterString, IEnumerable definitions ) : MetricListResponse

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 definitions ) : Task

Overload for get metrics by definitions that does not require cancellation token (consistent with overload for get metrics by name functions)

Описание методов

GetMetrics() публичный статический Метод

The List Metric operation lists the metric value sets for the resource metrics.
public static GetMetrics ( this operations, string resourceUri, string filterString ) : MetricListResponse
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. ///
Результат Microsoft.Azure.Insights.Legacy.Models.MetricListResponse

GetMetrics() публичный статический Метод

Non-async version returns the MetricListResponse straight (consistent with overload for get metrics by name functions)
public static GetMetrics ( this operations, string resourceUri, string filterString, IEnumerable definitions ) : MetricListResponse
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
Результат Microsoft.Azure.Insights.Legacy.Models.MetricListResponse

GetMetricsAsync() публичный статический Метод

The List Metric operation lists the metric value sets for the resource metrics.
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. ///
Результат Task

GetMetricsAsync() публичный статический Метод

Overload for get metrics by definitions that does not require cancellation token (consistent with overload for get metrics by name functions)
public static GetMetricsAsync ( this operations, string resourceUri, string filterString, IEnumerable definitions ) : Task
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
Результат Task