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

Gauge that computes the ratio of two different gauges.
Inheritance: ICounterValue
显示文件 Open project: Microsoft/ApplicationInsights-dotnet-server Class Usage Examples

Public Methods

Method 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 method

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

RatioCounterGauge() public method

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.