HookPolicyMetrics
The time spent evaluating the Policies of one hook in one Turn.
An object with 5 fields.
Fields
dispatchesintegerrequiredHow many times the hook was dispatched in the Turn.
elapsed_usintegerrequiredThe time of every dispatch of the hook in the Turn, summed, in microseconds.
evaluatedintegerrequiredThe 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.
firedintegerrequiredThe number of evaluations whose action applied, across every dispatch; one per
policy.fired event.max_usintegerrequiredThe longest single dispatch in microseconds, which the hook's budget bounds.