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

Gauge that gives the user an aggregate of requested counters in a cache.
Inheritance: ICounterValue
Datei anzeigen Open project: Microsoft/ApplicationInsights-dotnet-server Class Usage Examples

Public Methods

Method Description
GetValueAndReset ( ) : double

Returns the current value of the counter as a and resets the metric.

RawCounterGauge ( string name, string jsonId, AzureWebApEnvironmentVariables environmentVariable ) : Microsoft.ApplicationInsights.DataContracts

Initializes a new instance of the RawCounterGauge class.

Private Methods

Method Description
RawCounterGauge ( string name, string jsonId, AzureWebApEnvironmentVariables environmentVariable, ICachedEnvironmentVariableAccess cache ) : Microsoft.ApplicationInsights.DataContracts

Method Details

GetValueAndReset() public method

Returns the current value of the counter as a and resets the metric.
public GetValueAndReset ( ) : double
return double

RawCounterGauge() public method

Initializes a new instance of the RawCounterGauge class.
public RawCounterGauge ( string name, string jsonId, AzureWebApEnvironmentVariables environmentVariable ) : Microsoft.ApplicationInsights.DataContracts
name string Name of counter variable.
jsonId string JSON identifier of the counter variable.
environmentVariable AzureWebApEnvironmentVariables Identifier of the environment variable.
return Microsoft.ApplicationInsights.DataContracts