C# Class Microsoft.Azure.Insights.Legacy.MetricOperationsExtensions

Show file Open project: Azure/azure-powershell

Public Methods

Method Description
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)

Method Details

GetMetrics() public static method

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. ///
return Microsoft.Azure.Insights.Legacy.Models.MetricListResponse

GetMetrics() public static method

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
return Microsoft.Azure.Insights.Legacy.Models.MetricListResponse

GetMetricsAsync() public static method

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. ///
return Task

GetMetricsAsync() public static method

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
return Task