Interface StatsHandler

interface StatsHandler {
    trackRunQueueDidCancelAllCancelableEntries?: ((args: {
        numEntriesCanceled: number;
        runQueue: RunQueue;
    }) => void);
    trackRunQueueDidCancelEntry?: ((args: {
        entryId: string;
        runQueue: RunQueue;
    }) => void);
    trackRunQueueDidCompleteIteration?: ((args: {
        durationMSec: number;
        numEntriesProcessed: number;
        runQueue: RunQueue;
    }) => void);
    trackRunQueueDidProcessEntry?: ((args: {
        durationMSec: number;
        entryId: string;
        runQueue: RunQueue;
        success: boolean;
    }) => void);
    trackRunQueueDidSchedule?: ((args: {
        entryId: string;
        runQueue: RunQueue;
    }) => void);
}

Properties

trackRunQueueDidCancelAllCancelableEntries?: ((args: {
    numEntriesCanceled: number;
    runQueue: RunQueue;
}) => void)

Called whenever cancelAll is called on RunQueue

trackRunQueueDidCancelEntry?: ((args: {
    entryId: string;
    runQueue: RunQueue;
}) => void)

Called whenever a RunQueue entry is actually canceled

trackRunQueueDidCompleteIteration?: ((args: {
    durationMSec: number;
    numEntriesProcessed: number;
    runQueue: RunQueue;
}) => void)

Called at the end of every RunQueue processing iteration

trackRunQueueDidProcessEntry?: ((args: {
    durationMSec: number;
    entryId: string;
    runQueue: RunQueue;
    success: boolean;
}) => void)

Called after each RunQueue entry is processed

trackRunQueueDidSchedule?: ((args: {
    entryId: string;
    runQueue: RunQueue;
}) => void)

Called for each scheduled RunQueue entry