共用方式為


IMetricOperations Interface

 

Operations for metric values.

Namespace:   Microsoft.Azure.Insights
Assembly:  Microsoft.Azure.Insights (in Microsoft.Azure.Insights.dll)

Syntax

public interface IMetricOperations
public interface class IMetricOperations
type IMetricOperations = interface end
Public Interface IMetricOperations

Methods

Name Description
System_CAPS_pubmethod GetMetricsAsync(String, String, CancellationToken)

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

System_CAPS_pubmethod GetMetricsAsync(String, String, IEnumerable<MetricDefinition>, CancellationToken)

Get Metrics function that takes in the MetricDefinitions (rather than names in the filter string) to allow users to cache the definitions themselves

Extension Methods

Name Description
System_CAPS_pubmethod GetMetrics(String, String)

Overloaded. The List Metric operation lists the metric value sets for the resource metrics.(Defined by MetricOperationsExtensions.)

System_CAPS_pubmethod GetMetrics(String, String, IEnumerable<MetricDefinition>)

Overloaded. Non-async version returns the MetricListResponse straight (consistent with overload for get metrics by name functions)(Defined by MetricOperationsExtensions.)

System_CAPS_pubmethod GetMetricsAsync(String, String)

Overloaded. The List Metric operation lists the metric value sets for the resource metrics.(Defined by MetricOperationsExtensions.)

System_CAPS_pubmethod GetMetricsAsync(String, String, IEnumerable<MetricDefinition>)

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

See Also

Microsoft.Azure.Insights Namespace

Return to top