Skip to main content

EventPayload

Enum EventPayload 

Source
#[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
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.

Fields

§source: String

Name of the data source being profiled.

§

ProfilingCompleted

Data profiling completed.

Fields

§source: String

Name of the data source that was profiled.

§fields: usize

Number of fields discovered.

§rows: usize

Number of rows sampled.

§duration_ms: u64

Duration of the profiling run in milliseconds.

§

MaterializationStarted

SQL materialization started for an entity.

Fields

§entity: String

Name of the entity being materialized.

§platform: String

Target SQL platform name.

§

MaterializationCompleted

SQL materialization completed.

Fields

§entity: String

Name of the entity that was materialized.

§platform: String

Target SQL platform name.

§artifacts: usize

Number of SQL artifacts produced.

§duration_ms: u64

Duration of the materialization run in milliseconds.

§

MaterializationFailed

SQL materialization failed.

Fields

§design: String

Name of the design that failed.

§platform: String

Target SQL platform name.

§message: String

Human-readable failure description.

§

DesignValidated

Design validated with warning and error counts.

Fields

§design: String

Name of the validated design.

§errors: usize

Number of validation errors.

§warnings: usize

Number of validation warnings.

§

DesignLoaded

Design document loaded.

Fields

§path: String

File path or URI from which the design was loaded.

§entities: usize

Number of entities in the design.

§

PluginLoaded

A plugin was loaded.

Fields

§name: String

Plugin name.

§plugin_type: String

Plugin extension point type (e.g. "dialect").

§source: String

Source description (e.g. "static" or a library path).

§

StorageOperationCompleted

Storage I/O operation completed.

Fields

§operation: String

Operation name (e.g. "put", "get", "delete").

§path: String

Storage path of the object.

§bytes: u64

Number of bytes transferred.

§duration_ms: u64

Duration of the operation in milliseconds.

§

StorageWarning

Materializer detected a storage feature that the target platform cannot honor. Emitted instead of panicking (TP-010).

Fields

§entity: String

Name of the entity that triggered the warning.

§feature: String

Storage feature that is unsupported.

§platform: String

Target SQL platform name.

§recommendation: String

Suggested alternative or workaround.

§

LlmRequestCompleted

LLM request completed.

Fields

§provider: String

LLM provider name.

§model: String

Model identifier used for the request.

§tokens: u64

Total tokens consumed.

§duration_ms: u64

Duration of the request in milliseconds.

§

FileRouted

A file the agent found was moved to where a routing rule sends it.

Fields

§path: String

Where the file was found.

§destination: String

Where it was moved to.

§rule: String

The routing rule that sent it there.

§bytes: u64

Its size in bytes.

§

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

§path: String

Where the file was found.

§destination: String

Where it was set aside.

§reason: String

Why, in a reader’s words.

§

FileNotMoved

A file the agent found could not be moved at all, and stays where it was. An error.

Fields

§path: String

Where the file is.

§reason: String

What stopped the move, in a reader’s words.

§

ScanCompleted

The agent finished one pass over a landing location.

Fields

§location: String

The location scanned.

§files: usize

Files found.

§routed: usize

Of those, routed.

§set_aside: usize

Of those, set aside.

§not_moved: usize

Of those, not moved.

§duration_ms: u64

How long the pass took, in milliseconds.

Implementations§

Source§

impl EventPayload

Source

pub fn category(&self) -> EventCategory

Category derived from the payload variant.

Source

pub fn severity(&self) -> EventSeverity

Severity derived from the payload variant.

Source

pub fn requires_workflow_context(&self) -> bool

Whether this payload must be correlated to a workflow.

Trait Implementations§

Source§

impl Clone for EventPayload

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EventPayload

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for EventPayload

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for EventPayload

Source§

impl PartialEq for EventPayload

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for EventPayload

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for EventPayload

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more