docs.unity3d.com
    Show / Hide Table of Contents

    Class AggregationEvent

    Event class which contains the aggregated data.

    Inheritance
    Object
    EventBase
    AggregationEvent
    Inherited Members
    EventBase.dispatchDelegate
    EventBase.collector
    EventBase.eventName
    EventBase.allowMultipledEventsOfType
    EventBase.resetOnEachSampleCollection
    EventBase.IsMultipleEventsInstancesAllowed()
    EventBase.Update(Single)
    EventBase._elapsedInterval
    EventBase._elapsedPeriod
    EventBase._interval
    EventBase._period
    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
    EventBase.IngestValue(Double)

    Reset()

    Declaration
    public override void Reset()
    Overrides
    EventBase.Reset()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023