C# Class Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.QuickPulse.Helpers.QuickPulseQuotaTracker

Quota tracker to support throttling telemetry item collection.
Show file Open project: Microsoft/ApplicationInsights-dotnet-server Class Usage Examples

Public Methods

Method Description
ApplyQuota ( ) : bool

Checks if there's quota left.

QuickPulseQuotaTracker ( Clock timeProvider, float maxQuota, float startQuota ) : System

Private Methods

Method Description
AccrueQuota ( long currentTimeFullSeconds ) : void
IncreaseQuota ( long seconds ) : void
UseQuota ( ) : bool

Method Details

ApplyQuota() public method

Checks if there's quota left.
public ApplyQuota ( ) : bool
return bool

QuickPulseQuotaTracker() public method

public QuickPulseQuotaTracker ( Clock timeProvider, float maxQuota, float startQuota ) : System
timeProvider Clock
maxQuota float
startQuota float
return System