footprintjs - v11.2.0
    Preparing search index...

    Class QualityRecorder

    Pluggable observer for scope operations.

    All methods are optional — implement only the hooks you need. Recorders are invoked synchronously in attachment order. If a recorder throws, the error is caught and passed to onError hooks of other recorders; the scope operation continues normally.

    Implements

    Index
    id: string
    preferredOperation: RecorderOperation
    • Accumulate: reduce scored steps up to a slider position.

      Type Parameters

      • R

      Parameters

      • fn: (acc: R, entry: QualityEntry, key: string) => R
      • initial: R
      • Optionalkeys: ReadonlySet<string>

      Returns R

    • Progressive quality score up to a slider position.

      Parameters

      • visibleKeys: ReadonlySet<string>

      Returns number

    • A series that ended after giving up or timing out is a drop at its stage. onAttempt for the last attempt fires after that attempt's onStageEnd (when it returned), so a recovered series amends the scored entry; a series that gave up has none, and is scored here.

      Parameters

      Returns void

    • Expose collected data for inclusion in executor.getSnapshot().recorders.

      Returns {
          data: {
              lowestStep: string | undefined;
              numericField: string;
              overallScore: number;
              steps: Record<string, unknown>;
          };
          description: string;
          name: string;
          preferredOperation: RecorderOperation;
      }