Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias IntervalDemand

    demand in one interval: what the origin did, and what spool removed of it, per resource

    type IntervalDemand = {
        avoided?: Record<string, number>;
        demand: Record<string, number>;
        seconds: number;
        start: number;
    }
    Index
    avoided?: Record<string, number>

    the part of demand spool removed, per resource and per second; missing means none

    demand: Record<string, number>

    the origin's need per resource, per second

    seconds: number

    length of the interval in seconds

    start: number

    when the interval starts, on the clock of the samples it came from