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

Struct for metrics dependant on time.
Inheritance: ICounterValue
ファイルを表示 Open project: Microsoft/ApplicationInsights-dotnet-server Class Usage Examples

Public Methods

Method Description
GetValueAndReset ( ) : double

Computes the rate of a specific counter by tracking the last collected time and value.

RateCounterGauge ( string name, string jsonId, AzureWebApEnvironmentVariables environmentVariable, ICounterValue counter = null ) : System

Initializes a new instance of the RateCounterGauge class.

Private Methods

Method Description
RateCounterGauge ( string name, string jsonId, AzureWebApEnvironmentVariables environmentVariable, ICounterValue counter, ICachedEnvironmentVariableAccess cache ) : System

Initializes a new instance of the RateCounterGauge class. This constructor is intended for Unit Tests.

Method Details

GetValueAndReset() public method

Computes the rate of a specific counter by tracking the last collected time and value.
public GetValueAndReset ( ) : double
return double

RateCounterGauge() public method

Initializes a new instance of the RateCounterGauge class.
public RateCounterGauge ( string name, string jsonId, AzureWebApEnvironmentVariables environmentVariable, ICounterValue counter = null ) : System
name string Name of counter variable.
jsonId string JSON identifier of the counter variable.
environmentVariable AzureWebApEnvironmentVariables Identifier of the corresponding environment variable.
counter ICounterValue Dependant counter.
return System