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:
| Name | Type | Required | Description |
|---|---|---|---|
schemaVersion | String | yes | Contract version, major 1 (1.x); minor bumps stay backward compatible. |
eventId | String | yes | Id of the audit event. |
sequence | Long | yes | Ordered steps of the failover, as free objects. |
occurredAt | OffsetDateTime | yes | Time the audited action happened. |
tenantId | String | yes | Tenant of the agent. Default default. |
actor | JsonNode | yes | Author of the action: object with kind (user, service, agent, system) and id. |
action | String | yes | Action as domain.verb, for example model.invoke or agent.suspend. |
resource | JsonNode | yes | Resource targeted by the action, as a JSON object. |
decision | JsonNode | yes | approve or reject. |
outcome | String | yes | Outcome of the action: success, failure or error. |
evidence | JsonNode | yes | Evidence of the measures (logs, timestamps, screenshots references...). |
classification | String | yes | Classification of the data involved: public, internal, confidential, restricted or secret. |
prevHash | String | yes | SHA-256 hash (64 hex characters) of the previous event of the chain. |
hash | String | yes | Digest of the source content, for example sha256:.... |