Class EventBase
Syntax
[Serializable]
public abstract class EventBase
Constructors
EventBase(String, Single, ContinuousEvents.EventCollectionDelegate)
Constucts an Event that collects a metric each interval and aggregates over a period.
Declaration
public EventBase(string eventName, float interval, ContinuousEvents.EventCollectionDelegate collector = null)
Parameters
Fields
_elapsedInterval
Declaration
protected float _elapsedInterval
Field Value
_elapsedPeriod
Declaration
protected float _elapsedPeriod
Field Value
_interval
Declaration
protected float _interval
Field Value
_period
Declaration
Field Value
allowMultipledEventsOfType
Declaration
protected bool allowMultipledEventsOfType
Field Value
eventName
Declaration
Field Value
resetOnEachSampleCollection
Declaration
public bool resetOnEachSampleCollection
Field Value
Properties
collector
The delegate to use for collecting a metric to aggregate.
Declaration
public ContinuousEvents.EventCollectionDelegate collector { get; set; }
Property Value
dispatchDelegate
The delegate to use for dispatching events.
Declaration
public ContinuousEvents.EventDispatchDelegate dispatchDelegate { get; set; }
Property Value
Methods
IngestValue(Double)
Override this method to provide implementation for ingesting the value to perform some aggregation.
Declaration
public virtual void IngestValue(double value)
Parameters
Type |
Name |
Description |
Double |
value |
Value ingested from the data source.
|
Exceptions
IsMultipleEventsInstancesAllowed()
Declaration
public bool IsMultipleEventsInstancesAllowed()
Returns
Reset()
Implement this method to override the reset logic for the event before each sample capture.
Declaration
public virtual void Reset()
Update(Single)
Declaration
public virtual void Update(float deltaTime)
Parameters
Type |
Name |
Description |
Single |
deltaTime |
|