Kaizen
Browse modulesInsightsinsights/serverInterfaces

Interface: InsightsHooks

Defined in: server/insights/deps.ts:16

Optional lifecycle hooks that fire after significant reads.

Methods

onAskDrafted()?

optional onAskDrafted(info: AskDraftedInfo): void | Promise<void>;

Defined in: server/insights/deps.ts:29

Fires once per AskService.draft call — after the bounded retry, if there was one — whether or not drafting succeeded. Declared here so a consumer configures ONE hooks object; AskHooks is the narrower shape the Ask service depends on, and this interface is structurally assignable to it.

Parameters

ParameterType
infoAskDraftedInfo

Returns

void | Promise<void>


onReportRun()?

optional onReportRun(info: {
  grouped: boolean;
  rowCount: number;
  subject: string;
}): void | Promise<void>;

Defined in: server/insights/deps.ts:18

Fires after a successful report run (audit / metrics).

Parameters

ParameterType
info{ grouped: boolean; rowCount: number; subject: string; }
info.groupedboolean
info.rowCountnumber
info.subjectstring

Returns

void | Promise<void>

On this page