auditOffunctionfunction auditOf(result: FanOut, by: string): AuditRecordThe record of a fan-out.
| Parameter | What it is |
|---|---|
result | the fan-out |
by | who asked |
Audit of a fan-out (commons data 0059-sql-federate FR-008): optional, and the caller's to place. A fan-out is recorded as a value (who asked what of which targets, and what each answered, without the rows); the caller passes the record to its own sink, or to auditTable, which keeps it in a table of a database the caller gives.
auditOffunctionfunction auditOf(result: FanOut, by: string): AuditRecordThe record of a fan-out.
| Parameter | What it is |
|---|---|
result | the fan-out |
by | who asked |
auditTablefunctionfunction auditTable(on: Runner): AuditSinkA sink that keeps records in the table fleet_audit of a database (made if it is not there): one row for each target of each run.
| Parameter | What it is |
|---|---|
on | the database and its dialect |
AuditRecordinterfaceno test imports itinterface AuditRecordThe record of a fan-out: no rows, no values.
| Member | Type | What it is |
|---|---|---|
runId | string | |
at | string | |
by | string | Who asked, as the caller says. |
sql | string | |
targets | readonly AuditTarget[] | |
quorum | number | |
quorumMet | boolean |
AuditTargetinterfaceno test imports itinterface AuditTargetOne line of what a target answered.
| Member | Type | What it is |
|---|---|---|
target | string | |
status | "error" | "ok" | |
rows | number | |
error? | string | |
durationMs | number |