#[non_exhaustive]pub enum EventPayload {
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,
},
}Expand description
Structured payload variants carried by the event envelope.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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.
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.
Trait Implementations§
Source§impl Clone for EventPayload
impl Clone for EventPayload
Source§impl Debug for EventPayload
impl Debug for EventPayload
Source§impl<'de> Deserialize<'de> for EventPayload
impl<'de> Deserialize<'de> for EventPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EventPayload
Source§impl PartialEq for EventPayload
impl PartialEq for EventPayload
Source§impl Serialize for EventPayload
impl Serialize for EventPayload
impl StructuralPartialEq for EventPayload
Auto Trait Implementations§
impl Freeze for EventPayload
impl RefUnwindSafe for EventPayload
impl Send for EventPayload
impl Sync for EventPayload
impl Unpin for EventPayload
impl UnsafeUnpin for EventPayload
impl UnwindSafe for EventPayload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more