Class AggregationEvent
Event class which contains the aggregated data.
Inherited Members
Namespace: Unity.Simulation
Syntax
[Serializable]
public class AggregationEvent : EventBase
Constructors
AggregationEvent(String, Single, ContinuousEvents.EventCollectionDelegate, Boolean)
Constucts an Event that collects a metric each interval and aggregates over a period.
Declaration
public AggregationEvent(string eventName, float interval, ContinuousEvents.EventCollectionDelegate collector = null, bool resetOnEachSample = true)
Parameters
Type | Name | Description |
---|---|---|
String | eventName | The name of the event. |
Single | interval | The interval in which to collect the metric, in seconds. |
ContinuousEvents.EventCollectionDelegate | collector | A delegate to collect the metric. |
Boolean | resetOnEachSample |
Fields
max
The max value collected over the aggregation period.
Declaration
public double max
Field Value
Type | Description |
---|---|
Double |
mean
The mean value collected over the aggregation period.
Declaration
public double mean
Field Value
Type | Description |
---|---|
Double |
min
The min value collected over the aggregation period.
Declaration
public double min
Field Value
Type | Description |
---|---|
Double |
variance
The variance of the values collected over the aggregation period.
Declaration
public double variance
Field Value
Type | Description |
---|---|
Double |
Methods
IngestValue(Double)
Declaration
public override void IngestValue(double value)
Parameters
Type | Name | Description |
---|---|---|
Double | value |
Overrides
Reset()
Declaration
public override void Reset()