VocalDocs

HookPolicyMetrics

The time spent evaluating the Policies of one hook in one Turn.

An object with 5 fields.

Fields

dispatchesintegerrequired
How many times the hook was dispatched in the Turn.
elapsed_usintegerrequired
The time of every dispatch of the hook in the Turn, summed, in microseconds.
evaluatedintegerrequired
The number of Policies whose outcome was resolved, across every dispatch. A timeout counts as a resolved outcome; a Policy skipped because an earlier Policy ended the dispatch does not count.
firedintegerrequired
The number of evaluations whose action applied, across every dispatch; one per policy.fired event.
max_usintegerrequired
The longest single dispatch in microseconds, which the hook's budget bounds.