Skip to main content

io.enterpriseai.model.AuditEvent

Source: sdks/java/enterprise-ai-java/src/main/java/io/enterpriseai/model/AuditEvent.java. Back to the Java SDK reference index.

note

This page is generated by tools/docs/gen_sdk_reference.py from the SDK sources and the OpenAPI text folders. Do not edit it by hand: change the source and regenerate.

Model AuditEvent​

Audit Event v1 (contracts/v1/audit-event.schema.json): hash chained record of a mutation or decision.

Fields:

NameTypeRequiredDescription
schemaVersionStringyesContract version, major 1 (1.x); minor bumps stay backward compatible.
eventIdStringyesId of the audit event.
sequenceLongyesOrdered steps of the failover, as free objects.
occurredAtOffsetDateTimeyesTime the audited action happened.
tenantIdStringyesTenant of the agent. Default default.
actorJsonNodeyesAuthor of the action: object with kind (user, service, agent, system) and id.
actionStringyesAction as domain.verb, for example model.invoke or agent.suspend.
resourceJsonNodeyesResource targeted by the action, as a JSON object.
decisionJsonNodeyesapprove or reject.
outcomeStringyesOutcome of the action: success, failure or error.
evidenceJsonNodeyesEvidence of the measures (logs, timestamps, screenshots references...).
classificationStringyesClassification of the data involved: public, internal, confidential, restricted or secret.
prevHashStringyesSHA-256 hash (64 hex characters) of the previous event of the chain.
hashStringyesDigest of the source content, for example sha256:....