Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Diagnostics.Metrics.AggregationManager Class Referencesealed

Public Member Functions

 AggregationManager (int maxTimeSeries, int maxHistograms, Action< Instrument, LabeledAggregationStatistics > collectMeasurement, Action< DateTime, DateTime > beginCollection, Action< DateTime, DateTime > endCollection, Action< Instrument > beginInstrumentMeasurements, Action< Instrument > endInstrumentMeasurements, Action< Instrument > instrumentPublished, Action initialInstrumentEnumerationComplete, Action< Exception > collectionError, Action timeSeriesLimitReached, Action histogramLimitReached, Action< Exception > observableInstrumentCallbackError)
 
void Include (string meterName)
 
void Include (string meterName, string instrumentName)
 
AggregationManager SetCollectionPeriod (TimeSpan collectionPeriod)
 
void Start ()
 
void Dispose ()
 

Package Functions

InstrumentState BuildInstrumentState (Instrument instrument)
 
void Collect ()
 

Private Member Functions

void Include (Predicate< Instrument > instrumentFilter)
 
void CollectWorker (CancellationToken cancelToken)
 
void RemoveInstrumentState (Instrument instrument, InstrumentState state)
 
InstrumentState GetInstrumentState (Instrument instrument)
 
Func< AggregatorGetAggregatorFactory (Instrument instrument)
 
bool CheckTimeSeriesAllowed ()
 
bool CheckHistogramAllowed ()
 

Private Attributes

readonly List< Predicate< Instrument > > _instrumentConfigFuncs = new List<Predicate<Instrument>>()
 
TimeSpan _collectionPeriod
 
readonly ConcurrentDictionary< Instrument, InstrumentState_instrumentStates = new ConcurrentDictionary<Instrument, InstrumentState>()
 
readonly CancellationTokenSource _cts = new CancellationTokenSource()
 
Thread _collectThread
 
readonly MeterListener _listener
 
int _currentTimeSeries
 
int _currentHistograms
 
readonly int _maxTimeSeries
 
readonly int _maxHistograms
 
readonly Action< Instrument, LabeledAggregationStatistics_collectMeasurement
 
readonly Action< DateTime, DateTime_beginCollection
 
readonly Action< DateTime, DateTime_endCollection
 
readonly Action< Instrument_beginInstrumentMeasurements
 
readonly Action< Instrument_endInstrumentMeasurements
 
readonly Action< Instrument_instrumentPublished
 
readonly Action _initialInstrumentEnumerationComplete
 
readonly Action< Exception_collectionError
 
readonly Action _timeSeriesLimitReached
 
readonly Action _histogramLimitReached
 
readonly Action< Exception_observableInstrumentCallbackError
 

Static Private Attributes

static readonly QuantileAggregation s_defaultHistogramConfig = new QuantileAggregation(0.5, 0.95, 0.99)
 

Detailed Description

Definition at line 9 of file AggregationManager.cs.


The documentation for this class was generated from the following file: