pub struct HookRunTelemetryEntry {Show 15 fields
pub timestamp: DateTime<Utc>,
pub loop_id: String,
pub phase_event: String,
pub hook_name: String,
pub started_at: DateTime<Utc>,
pub ended_at: DateTime<Utc>,
pub duration_ms: u64,
pub exit_code: Option<i32>,
pub timed_out: bool,
pub stdout: HookStreamOutput,
pub stderr: HookStreamOutput,
pub disposition: HookDisposition,
pub suspend_mode: HookSuspendMode,
pub retry_attempt: u32,
pub retry_max_attempts: u32,
}Expand description
Structured diagnostics record persisted for each hook invocation.
Fields§
§timestamp: DateTime<Utc>§loop_id: String§phase_event: String§hook_name: String§started_at: DateTime<Utc>§ended_at: DateTime<Utc>§duration_ms: u64§exit_code: Option<i32>§timed_out: bool§stdout: HookStreamOutput§stderr: HookStreamOutput§disposition: HookDisposition§suspend_mode: HookSuspendMode§retry_attempt: u32§retry_max_attempts: u32Implementations§
Source§impl HookRunTelemetryEntry
impl HookRunTelemetryEntry
Sourcepub fn from_run_result(
loop_id: impl Into<String>,
phase_event: impl Into<String>,
hook_name: impl Into<String>,
disposition: HookDisposition,
suspend_mode: HookSuspendMode,
retry_attempt: u32,
retry_max_attempts: u32,
run_result: &HookRunResult,
) -> Self
pub fn from_run_result( loop_id: impl Into<String>, phase_event: impl Into<String>, hook_name: impl Into<String>, disposition: HookDisposition, suspend_mode: HookSuspendMode, retry_attempt: u32, retry_max_attempts: u32, run_result: &HookRunResult, ) -> Self
Creates a telemetry record from executor output and lifecycle metadata.
Trait Implementations§
Source§impl Clone for HookRunTelemetryEntry
impl Clone for HookRunTelemetryEntry
Source§fn clone(&self) -> HookRunTelemetryEntry
fn clone(&self) -> HookRunTelemetryEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HookRunTelemetryEntry
impl Debug for HookRunTelemetryEntry
Source§impl<'de> Deserialize<'de> for HookRunTelemetryEntry
impl<'de> Deserialize<'de> for HookRunTelemetryEntry
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 HookRunTelemetryEntry
impl RefUnwindSafe for HookRunTelemetryEntry
impl Send for HookRunTelemetryEntry
impl Sync for HookRunTelemetryEntry
impl Unpin for HookRunTelemetryEntry
impl UnsafeUnpin for HookRunTelemetryEntry
impl UnwindSafe for HookRunTelemetryEntry
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