bbas-devicer - v0.2.1
    Preparing search index...

    Function computeVelocitySignals

    • Record a new request for deviceId and return the current velocity signals for the configured sliding window.

      This function reads history from storage, counts snapshots within the window, and returns the computed signals. It does not persist a new snapshot — that is done in BbasManager.analyze() after all signals are assembled.

      Parameters

      • history: BbasSnapshot[]

        Pre-fetched snapshot history for this device.

      • windowMs: number

        Sliding window length in milliseconds.

      • maxRequestsPerWindow: number

        Threshold above which exceedsThreshold fires.

      Returns VelocitySignals