pub struct LogLineEvent {
pub id: Uuid,
pub run_id: Uuid,
pub step_id: Uuid,
pub step_name: String,
pub stream: LogStream,
pub line: String,
pub at: DateTime<Utc>,
}Expand description
Payload of the Event::LogLine event.
§Examples
use chrono::Utc;
use ironflow_engine::notify::{LogLineEvent, LogStream};
use uuid::Uuid;
let payload = LogLineEvent {
id: Uuid::now_v7(),
run_id: Uuid::now_v7(),
step_id: Uuid::now_v7(),
step_name: "build".to_string(),
stream: LogStream::Stdout,
line: "Compiling ironflow v0.1.0".to_string(),
at: Utc::now(),
};
assert_eq!(payload.line, "Compiling ironflow v0.1.0");Fields§
§id: UuidPersisted entry identifier (UUID v7, time-ordered).
Matches the id of the log entry later stored for this line, so clients
can de-duplicate the live SSE stream against the persisted history
fetched from GET /runs/:id/logs.
Defaults to the nil UUID when absent, so a payload emitted by an older producer still deserializes instead of dropping the whole event.
run_id: UuidRun identifier.
step_id: UuidStep identifier.
step_name: StringHuman-readable step name.
stream: LogStreamOutput stream.
line: StringThe log line content.
at: DateTime<Utc>When the line was emitted.
Trait Implementations§
Source§impl Clone for LogLineEvent
impl Clone for LogLineEvent
Source§impl Debug for LogLineEvent
impl Debug for LogLineEvent
Source§impl<'de> Deserialize<'de> for LogLineEvent
impl<'de> Deserialize<'de> for LogLineEvent
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
Auto Trait Implementations§
impl Freeze for LogLineEvent
impl RefUnwindSafe for LogLineEvent
impl Send for LogLineEvent
impl Sync for LogLineEvent
impl Unpin for LogLineEvent
impl UnsafeUnpin for LogLineEvent
impl UnwindSafe for LogLineEvent
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