#[non_exhaustive]pub enum EventPayload {
Show 15 variants
ProfilingStarted {
source: String,
},
ProfilingCompleted {
source: String,
fields: usize,
rows: usize,
duration_ms: u64,
},
MaterializationStarted {
entity: String,
platform: String,
},
MaterializationCompleted {
entity: String,
platform: String,
artifacts: usize,
duration_ms: u64,
},
MaterializationFailed {
design: String,
platform: String,
message: String,
},
DesignValidated {
design: String,
errors: usize,
warnings: usize,
},
DesignLoaded {
path: String,
entities: usize,
},
PluginLoaded {
name: String,
plugin_type: String,
source: String,
},
StorageOperationCompleted {
operation: String,
path: String,
bytes: u64,
duration_ms: u64,
},
StorageWarning {
entity: String,
feature: String,
platform: String,
recommendation: String,
},
LlmRequestCompleted {
provider: String,
model: String,
tokens: u64,
duration_ms: u64,
},
FileRouted {
path: String,
destination: String,
rule: String,
bytes: u64,
},
FileSetAside {
path: String,
destination: String,
reason: String,
},
FileNotMoved {
path: String,
reason: String,
},
ScanCompleted {
location: String,
files: usize,
routed: usize,
set_aside: usize,
not_moved: usize,
duration_ms: u64,
},
}Expand description
Structured payload variants carried by the event envelope.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ProfilingStarted
Data profiling started on a source.
ProfilingCompleted
Data profiling completed.
Fields
MaterializationStarted
SQL materialization started for an entity.
Fields
MaterializationCompleted
SQL materialization completed.
Fields
MaterializationFailed
SQL materialization failed.
Fields
DesignValidated
Design validated with warning and error counts.
Fields
DesignLoaded
Design document loaded.
Fields
PluginLoaded
A plugin was loaded.
Fields
StorageOperationCompleted
Storage I/O operation completed.
Fields
StorageWarning
Materializer detected a storage feature that the target platform cannot honor. Emitted instead of panicking (TP-010).
Fields
LlmRequestCompleted
LLM request completed.
Fields
FileRouted
A file the agent found was moved to where a routing rule sends it.
Fields
FileSetAside
A file the agent found was set aside: no rule routes it, or it failed a check. A warning, so a person looks at it.
Fields
FileNotMoved
A file the agent found could not be moved at all, and stays where it was. An error.
ScanCompleted
The agent finished one pass over a landing location.
Implementations§
Source§impl EventPayload
impl EventPayload
Sourcepub fn category(&self) -> EventCategory
pub fn category(&self) -> EventCategory
Category derived from the payload variant.
Sourcepub fn severity(&self) -> EventSeverity
pub fn severity(&self) -> EventSeverity
Severity derived from the payload variant.
Sourcepub fn requires_workflow_context(&self) -> bool
pub fn requires_workflow_context(&self) -> bool
Whether this payload must be correlated to a workflow.