Interface StatsHandler

interface StatsHandler {
    trackRunQueueDidCancelAllCancelableEntries?: ((args) => void);
    trackRunQueueDidCancelEntry?: ((args) => void);
    trackRunQueueDidCompleteIteration?: ((args) => void);
    trackRunQueueDidProcessEntry?: ((args) => void);
    trackRunQueueDidSchedule?: ((args) => void);
}

Properties

trackRunQueueDidCancelAllCancelableEntries?: ((args) => void)

Called whenever cancelAll is called on RunQueue

Type declaration

    • (args): void
    • Called whenever cancelAll is called on RunQueue

      Parameters

      • args: {
            numEntriesCanceled: number;
            runQueue: RunQueue;
        }
        • numEntriesCanceled: number
        • runQueue: RunQueue

      Returns void

trackRunQueueDidCancelEntry?: ((args) => void)

Called whenever a RunQueue entry is actually canceled

Type declaration

    • (args): void
    • Called whenever a RunQueue entry is actually canceled

      Parameters

      • args: {
            entryId: string;
            runQueue: RunQueue;
        }

      Returns void

trackRunQueueDidCompleteIteration?: ((args) => void)

Called at the end of every RunQueue processing iteration

Type declaration

    • (args): void
    • Called at the end of every RunQueue processing iteration

      Parameters

      • args: {
            durationMSec: number;
            numEntriesProcessed: number;
            runQueue: RunQueue;
        }
        • durationMSec: number
        • numEntriesProcessed: number
        • runQueue: RunQueue

      Returns void

trackRunQueueDidProcessEntry?: ((args) => void)

Called after each RunQueue entry is processed

Type declaration

    • (args): void
    • Called after each RunQueue entry is processed

      Parameters

      • args: {
            durationMSec: number;
            entryId: string;
            runQueue: RunQueue;
            success: boolean;
        }
        • durationMSec: number
        • entryId: string
        • runQueue: RunQueue
        • success: boolean

      Returns void

trackRunQueueDidSchedule?: ((args) => void)

Called for each scheduled RunQueue entry

Type declaration

    • (args): void
    • Called for each scheduled RunQueue entry

      Parameters

      • args: {
            entryId: string;
            runQueue: RunQueue;
        }

      Returns void

Generated using TypeDoc