Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IQuestionMetricsOptions<Data>

Options that can be used to construct QuestionMetrics instances

Type parameters

  • Data

Hierarchy

Index

Properties

Optional attempts

attempts: ITallyOptions

Optional catcher

catcher: ICatcher

Can be provided to catch exceptions in listeners.

Optional generator

generator: IEventEmitterListen<IEventRecord<Data>>

The generator that the metrics will listen for events on. The events are processed to determine how a question is being processed. The metrics will then emit more fine-grained question lifecycle events.

Optional maxListeners

maxListeners: undefined | number

The maximum number of listeners that are allowed on an event. Helps prevent memory leaks from not removing old listeners.

Optional points

points: ITallyOptions

Optional reward

reward: undefined | number

The amount to add on to the multiplier when the user gets an answer correct