#[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.
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>,
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 Forget for EventPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.