Skip to main content

MGCEarmarkEventLog

One append-only log of the governed acts recorded across the whole Earmark series - deals, amendments, parameters, line prices, accrual instances and transactions, claims and migration batches all write here rather than each keeping a log of its own. Rows are written after the originating document has committed and are never edited or deleted by a user; a wrongly recorded act is corrected by recording the correcting act. Rows older than the timeline retention day count are purged by the retention cleanup task, which is deliberate: the timeline is an operational log, and permanence belongs to the governed records themselves.

Fields​

NameTypeMandatoryDescription
ActorUserIdYesThe user who actually performed the act. It is the real executing user in every case, including engine, batch and post-commit writes, where the question worth answering is who ran the batch. An automated write says so through the Automation column rather than by putting an automation identity here.
AfterValueMGCEarmarkReasonNoteNoThe value as it stands after the act, where a before and after pair is meaningful.
AutomationWriteNoYesIdNoWhether the act was performed by an engine, a batch or a post-commit step rather than directly by a person. When it is set, the timeline FactBox and the timeline inquiry present the act as automation while the Actor column still records who ran it. Two facts, two columns - collapsing them would lose the only answer to the audit question.
BeforeValueMGCEarmarkReasonNoteNoThe value as it stood before the act, where a before and after pair is meaningful - a status, an amount, a cap, a targeting row. It is blank for acts that changed nothing, such as a submission or a copy.
DetailNotesNoWhat the act changed, in words - which column moved, which targeting row was added, which cap was reached. It carries the context that the event type alone cannot, and it is the column a support engineer reads first when reconstructing what happened.
DocumentNaturalKeyMGCEarmarkNaturalKeyNoThe readable identifier of the document - the deal ID, the claim reference, the inventory transaction - stored beside the record reference so the row stays explicable in an export and after the document itself has been archived or migrated. A timeline row outlives what it describes, which is exactly why both halves are kept.
DocumentRecIdRefRecIdYesThe record reference of the document the act was recorded against. It is the join to the document and, with the document type, the key the timeline FactBox, the timeline inquiry and the retention purge all read.
DocumentTypeMGCEarmarkDocumentTypeNo
EventDateTimeTransDateTimeYesWhen the act was recorded, in UTC. It is stamped by the timeline service rather than supplied by the caller, and it is the column the timeline retention purge and every date filter read.
EventTypeMGCEarmarkEventTypeNo