ixfx
    Preparing search index...

    Module @ixfx/trackers - v0.56.16

    @ixfx/trackers npm

    Please refer to README.md

    Functions

    frequency
    handleChangeResult

    Run a function if a value changes

    interval

    Returns a new IntervalTracker instance. IntervalTracker records the interval between each call to mark.

    number

    Keeps track of the total, min, max and avg in a stream of values. By default values are not stored.

    rate
    trackBooleanChange

    Returns a function to track changes in a boolean value

    trackNumberChange

    Returns a function to monitor value changes.

    Classes

    FrequencyTracker

    Frequency keeps track of how many times a particular value is seen, but unlike a Map it does not store the data. By default compares items by value (via JSON.stringify).

    GatedFrequencyTracker

    Wraps a FrequencyTracker, but ignores values that come from the same source.

    IntervalTracker

    A Tracker that tracks interval between calls to mark()

    NumberTracker

    Base tracker class

    ObjectTracker

    A tracked value of type V.

    PrimitiveTracker

    Base tracker class

    RateTracker

    Tracks the rate of events: eg, how many times an event happens per second.

    TrackedValueMap

    Keeps track of keyed values of type V (eg Point). It stores occurences in type T, which must extend from TrackerBase<V>, eg PointTracker.

    TrackerBase

    Base tracker class

    Type Aliases

    FrequencyEventMap
    NumberTrackerResults
    RateTrackerOpts

    Options for a RateTracker

    Timestamped
    TimestampedObject
    TimestampedPrimitive
    TrackChangeOptions
    TrackChangeResult
    TrackedValueOpts

    Options

    TrackNumberChangeOptions
    TrimReason