Skip to main content

MGCWardenAuditEventEntity

One row of the Warden audit store: a captured event (a read, a write, a guard decision and others) with who acted, on which record, when, and its rendered detail. Read-only; rows never change, and only a certified purge removes them. RefTableId and RefRecId are valid only in the environment that wrote them; RecordKey is portable.

  • Public collection name: WardenAuditEvents
  • Primary key: PartitionKey, SequenceNo

Fields​

NameTypeMandatoryDescription
PartitionKeystrNoThe company the row was recorded in, which is also its store partition. Sequence numbers run without gaps within each partition.
SequenceNoint64No
EventKindMGCWardenAuditEventKindNo
ActorMGCWardenUserRefNoWho acted, as a subject reference (WP- and twelve characters; older rows hold the user ID); blank when no person is known to have acted. Only the Warden identity resolver role can turn it into a person.
RefTableIdRefTableIdNo
RefRecIdRefRecIdNo
RecordKeyMGCWardenDocumentKeyNoNatural key of the governed document (e.g. purchase order number). Carried beside RefTableId/RefRecId so timeline rows survive document deletion: no field is ever added to a standard table (suite rule).
MenuItemNamestrNo
FormNamestrNo
CompanyDataAreaIdNo
GrainMGCWardenAuditSensorGrainNo
OccurrenceCountintNoHow many identical captures this row stands for: repeats by the same actor on the same object within the dedup window add to this count instead of writing new rows. 1 means a single capture.
FirstOccurredTransDateTimeNo
LastOccurredTransDateTimeNo
SourceRefstrNoIdentifies the guard event or database log row this store row was taken from, when it came from one.
DetailNotesNoThe event described in words, as forms, entities, evidence packs and the timeline show it. It is rendered from the detail template and its parameters; on older rows it is the only record of the detail.
DetailTemplateMGCWardenAuditDetailTemplateNoWhich wording template the Detail text is rendered from. Unmapped marks an older row whose Detail text was stored as written and is its only source.

Mappings​

Entity fieldData sourceField
PartitionKeyMGCWardenAuditEventPartitionKey
SequenceNoMGCWardenAuditEventSequenceNo
EventKindMGCWardenAuditEventEventKind
ActorMGCWardenAuditEventActor
RefTableIdMGCWardenAuditEventRefTableId
RefRecIdMGCWardenAuditEventRefRecId
RecordKeyMGCWardenAuditEventRecordKey
MenuItemNameMGCWardenAuditEventMenuItemName
FormNameMGCWardenAuditEventFormName
CompanyMGCWardenAuditEventCompany
GrainMGCWardenAuditEventGrain
OccurrenceCountMGCWardenAuditEventOccurrenceCount
FirstOccurredMGCWardenAuditEventFirstOccurred
LastOccurredMGCWardenAuditEventLastOccurred
SourceRefMGCWardenAuditEventSourceRef
DetailMGCWardenAuditEventDetail
DetailTemplateMGCWardenAuditEventDetailTemplate