C# Class Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.WebAppPerformanceCollector.RatioCounterGauge

Gauge that computes the ratio of two different gauges.
Inheritance: ICounterValue
Afficher le fichier Open project: Microsoft/ApplicationInsights-dotnet-server Class Usage Examples

Méthodes publiques

Méthode Description
GetValueAndReset ( ) : double

Returns the current value of the sum of all different gauges attached to this one and resets their values.

RatioCounterGauge ( string name, ICounterValue numeratorGauge, ICounterValue denominatorGauge, double scale = 1 )

Initializes a new instance of the RatioCounterGauge class.

Method Details

GetValueAndReset() public méthode

Returns the current value of the sum of all different gauges attached to this one and resets their values.
public GetValueAndReset ( ) : double
Résultat double

RatioCounterGauge() public méthode

Initializes a new instance of the RatioCounterGauge class.
public RatioCounterGauge ( string name, ICounterValue numeratorGauge, ICounterValue denominatorGauge, double scale = 1 )
name string Name of the RatioCounterGauge.
numeratorGauge ICounterValue The numerator for computing the ratio.
denominatorGauge ICounterValue The denominator for computing the ratio.
scale double Scale to measure the percentage or increase the scaling of the ratio.