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

Struct for metrics dependant on time.
Наследование: ICounterValue
Показать файл Открыть проект Примеры использования класса

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

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

Приватные методы

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

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

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

Computes the rate of a specific counter by tracking the last collected time and value.
public GetValueAndReset ( ) : double
Результат double

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

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.
Результат System