Expand description
Audit log data structures.
The audit log is logging that is produced by user actions and consumed
by users in the form of the mz_catalog.mz_audit_events
SQL table and
by the cloud management layer for billing and introspection. This crate
is designed to make the production and consumption of the logs type
safe. Events and their metadata are versioned and the data structures
replicated here so that if the data change in some other crate, a
new version here can be made. This avoids needing to poke at the data
when reading it to determine what it means and should have full backward
compatibility. This is its own crate so that production and consumption can
be in different processes and production is not allowed to specify private
data structures unknown to the reader.
Structs§
- Alter
Default Privilege V1 - Alter
Retain History V1 - Alter
SetCluster V1 - Alter
Source Sink V1 - Create
Cluster Replica V1 - Create
Cluster Replica V2 - Create
Cluster Replica V3 - Create
Index V1 - Create
Materialized View V1 - Create
Source Sink V1 - Create
Source Sink V2 - Create
Source Sink V3 - Create
Source Sink V4 - Drop
Cluster Replica V1 - Drop
Cluster Replica V2 - Drop
Cluster Replica V3 - EventV1
- From
Previous IdV1 - Full
Name V1 - Grant
Role V1 - Grant
Role V2 - IdFull
Name V1 - IdName
V1 - Refresh
Decision With Reason V1 - Refresh
Decision With Reason V2 - Rename
Cluster Replica V1 - Rename
Cluster V1 - Rename
Item V1 - Rename
Schema V1 - Revoke
Role V1 - Revoke
Role V2 - Rotate
Keys V1 - Scheduling
Decisions With Reasons V1 - The reason for the automated cluster scheduling to turn a cluster On or Off. Each existing policy’s On/Off opinion should be recorded, along with their reasons. (Among the reasons there can be settings of the policy as well as other information about the state of the system.)
- Scheduling
Decisions With Reasons V2 - The reason for the automated cluster scheduling to turn a cluster On or Off. Each existing policy’s On/Off opinion should be recorded, along with their reasons. (Among the reasons there can be settings of the policy as well as other information about the state of the system.)
- Schema
V1 - Schema
V2 - SetV1
- Storage
Usage V1 - ToNew
IdV1 - Update
Item V1 - Update
Owner V1 - Update
Privilege V1
Enums§
- Create
OrDrop Cluster Replica Reason V1 - Event
Details - Event
Type - Object
Type - Scheduling
Decision V1 - Versioned
Event - New version variants should be added if fields need to be added, changed, or removed.
- Versioned
Storage Usage - Describes the environment’s storage usage at a point in time.