Crate mz_audit_log

Source
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§

AlterDefaultPrivilegeV1
AlterRetainHistoryV1
AlterSetClusterV1
AlterSourceSinkV1
CreateClusterReplicaV1
CreateClusterReplicaV2
CreateClusterReplicaV3
CreateIndexV1
CreateMaterializedViewV1
CreateSourceSinkV1
CreateSourceSinkV2
CreateSourceSinkV3
CreateSourceSinkV4
DropClusterReplicaV1
DropClusterReplicaV2
DropClusterReplicaV3
EventV1
FromPreviousIdV1
FullNameV1
GrantRoleV1
GrantRoleV2
IdFullNameV1
IdNameV1
RefreshDecisionWithReasonV1
RefreshDecisionWithReasonV2
RenameClusterReplicaV1
RenameClusterV1
RenameItemV1
RenameSchemaV1
RevokeRoleV1
RevokeRoleV2
RotateKeysV1
SchedulingDecisionsWithReasonsV1
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.)
SchedulingDecisionsWithReasonsV2
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.)
SchemaV1
SchemaV2
SetV1
StorageUsageV1
ToNewIdV1
UpdateItemV1
UpdateOwnerV1
UpdatePrivilegeV1

Enums§

CreateOrDropClusterReplicaReasonV1
EventDetails
EventType
ObjectType
SchedulingDecisionV1
VersionedEvent
New version variants should be added if fields need to be added, changed, or removed.
VersionedStorageUsage
Describes the environment’s storage usage at a point in time.