pub struct EventInput {Show 13 fields
pub run_id: String,
pub step_id: String,
pub attempt: u32,
pub kind: Kind,
pub status: Status,
pub cause: Option<Cause>,
pub usage: Option<Usage>,
pub ts_ms: u64,
pub random: String,
pub schema_ref: Option<String>,
pub payload: Option<String>,
pub payload_ref: Option<String>,
pub error: Option<String>,
}Expand description
An event as the host submits it, before the kernel assigns seq and state_hash.
random is 32 hex chars of host-generated randomness, journaled so that every
consumer of randomness (retry jitter, reducer random) is replay-stable.
Fields§
§run_id: StringThe run this event belongs to.
step_id: StringThe step this event belongs to; start for the started marker.
attempt: u32Task attempt this event is about (1-based); a retrying event names the next
attempt. 0 for every other kind.
kind: KindEvent kind; the kernel routes on kind, status and step_id.
status: StatusThe step status this event moves the step to.
cause: Option<Cause>Failure cause on failed / retrying events; None otherwise.
usage: Option<Usage>Resources this event consumed; banked into KernelState::usage_total.
ts_ms: u64Host wall-clock at submission, in milliseconds since the Unix epoch. The reducer’s only clock.
random: String32 lowercase hex chars of host-generated randomness, journaled for replay.
schema_ref: Option<String>Schema the payload conforms to (<name>@<content-hash>), when known.
payload: Option<String>Inline JSON payload, byte-exact. Exactly one of payload / payload_ref may be set.
payload_ref: Option<String>blob://sha256/<hex> when the payload was offloaded.
error: Option<String>Free-text error detail for failed task events. Never interpreted by the kernel.
Trait Implementations§
Source§impl Clone for EventInput
impl Clone for EventInput
Source§fn clone(&self) -> EventInput
fn clone(&self) -> EventInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EventInput
impl Debug for EventInput
Source§impl<'de> Deserialize<'de> for EventInput
impl<'de> Deserialize<'de> for EventInput
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>,
Source§impl JsonSchema for EventInput
impl JsonSchema for EventInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for EventInput
impl PartialEq for EventInput
Source§fn eq(&self, other: &EventInput) -> bool
fn eq(&self, other: &EventInput) -> bool
self and other values to be equal, and is used by ==.