C# 클래스 Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.WebAppPerformanceCollector.RatioCounterGauge

Gauge that computes the ratio of two different gauges.
상속: ICounterValue
파일 보기 프로젝트 열기: Microsoft/ApplicationInsights-dotnet-server 1 사용 예제들

공개 메소드들

메소드 설명
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.