C# Класс Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.WebAppPerformanceCollector.RatioCounterGauge

Gauge that computes the ratio of two different gauges.
Наследование: ICounterValue
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

GetValueAndReset() публичный Метод

Returns the current value of the sum of all different gauges attached to this one and resets their values.
public GetValueAndReset ( ) : double
Результат double

RatioCounterGauge() публичный Метод

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.