共用方式為


MetricConfiguration Constructors

Definition

Overloads

MetricConfiguration(Int32, IEnumerable<Int32>, IMetricSeriesConfiguration)

Creates a new instance of MetricConfiguration.

MetricConfiguration(Int32, Int32, IMetricSeriesConfiguration)

Creates a new instance of MetricConfiguration.

MetricConfiguration(Int32, IEnumerable<Int32>, IMetricSeriesConfiguration)

Creates a new instance of MetricConfiguration.

public MetricConfiguration (int seriesCountLimit, System.Collections.Generic.IEnumerable<int> valuesPerDimensionLimits, Microsoft.ApplicationInsights.Metrics.IMetricSeriesConfiguration seriesConfig);
new Microsoft.ApplicationInsights.Metrics.MetricConfiguration : int * seq<int> * Microsoft.ApplicationInsights.Metrics.IMetricSeriesConfiguration -> Microsoft.ApplicationInsights.Metrics.MetricConfiguration
Public Sub New (seriesCountLimit As Integer, valuesPerDimensionLimits As IEnumerable(Of Integer), seriesConfig As IMetricSeriesConfiguration)

Parameters

seriesCountLimit
Int32

How many data time series a metric can contain as a maximum. Once this limit is reached, calls to TrackValue(..), TryGetDataSeries(..) and similar that would normally result in new series will return false.

valuesPerDimensionLimits
IEnumerable<Int32>

How many different values each of the dimensions of a metric can have as a maximum. If this enumeration contains less elements than the number of supported dimensions, then the last specified element is replicated for subsequent dimensions. If this enumeration contains too many elements, superfluous elements are ignored. Once this limit is reached, calls to TrackValue(..), TryGetDataSeries(..) and similar that would normally result in new series will return false.

seriesConfig
IMetricSeriesConfiguration

The configuration for how each series of this metric should be aggregated.

Applies to

MetricConfiguration(Int32, Int32, IMetricSeriesConfiguration)

Creates a new instance of MetricConfiguration.

public MetricConfiguration (int seriesCountLimit, int valuesPerDimensionLimit, Microsoft.ApplicationInsights.Metrics.IMetricSeriesConfiguration seriesConfig);
new Microsoft.ApplicationInsights.Metrics.MetricConfiguration : int * int * Microsoft.ApplicationInsights.Metrics.IMetricSeriesConfiguration -> Microsoft.ApplicationInsights.Metrics.MetricConfiguration
Public Sub New (seriesCountLimit As Integer, valuesPerDimensionLimit As Integer, seriesConfig As IMetricSeriesConfiguration)

Parameters

seriesCountLimit
Int32

How many data time series a metric can contain as a maximum. Once this limit is reached, calls to TrackValue(..), TryGetDataSeries(..) and similar that would normally result in new series will return false.

valuesPerDimensionLimit
Int32

How many different values each of the dimensions of a metric can have as a maximum. Once this limit is reached, calls to TrackValue(..), TryGetDataSeries(..) and similar that would normally result in new series will return false.

seriesConfig
IMetricSeriesConfiguration

The configuration for how each series of this metric should be aggregated.

Applies to