Class CounterEvent
Assembly: Unity.Simulation.Core.dll
Syntax
[Serializable]
public class CounterEvent : EventBase
Constructors
CounterEvent(string, float, EventCollectionDelegate)
Declaration
public CounterEvent(string eventName, float interval, ContinuousEvents.EventCollectionDelegate collector = null)
Parameters
Fields
CounterStore
Declaration
public ConcurrentDictionary<string, CounterEventData> CounterStore
Field Value
Methods
IncrementCount(string)
Increment the count of the function call.
Declaration
public void IncrementCount(string functionName)
Parameters
| Type |
Name |
Description |
| string |
functionName |
|
IngestValue(double)
Override this method to provide implementation for ingesting the value to perform some aggregation.
Declaration
public override void IngestValue(double value)
Parameters
| Type |
Name |
Description |
| double |
value |
Value ingested from the data source.
|
Overrides
Exceptions