pub struct MonitorRecord {
pub tool_use_id: String,
pub task_id: Option<String>,
pub description: String,
pub command: String,
pub persistent: bool,
pub timeout_ms: u64,
pub status: MonitorStatus,
pub output_file: Option<String>,
pub ended_at: Option<SystemTime>,
}Expand description
One Monitor this session has running or has finished: the tool call that started it, the CLI’s task id once the wire names one, and where it got to.
Fields§
§tool_use_id: Stringtool_use_id of the Monitor tool call - the id every
monitor surface is keyed by.
task_id: Option<String>Task id the CLI assigned, from task_started or a
task_* lifecycle message. None until one arrives, which
is why a view’s transitions key on it rather than the
tool_use id.
description: Stringtool_input.description - the headline label.
command: Stringtool_input.command - the watched shell command.
persistent: booltool_input.persistent - whether the monitor outlives the
event that triggered it.
timeout_ms: u64tool_input.timeout_ms - zero when no explicit timeout.
status: MonitorStatus§output_file: Option<String>Path the watched command writes to, once task_notification
names one. A view reads the file for the monitor’s tail.
ended_at: Option<SystemTime>When the task ended, from the end_time a task_updated patch
carries. None while it runs and for any transition that
stated no instant, which is why a view draws an age only when
one is here rather than counting from the status.
Trait Implementations§
Source§impl Clone for MonitorRecord
impl Clone for MonitorRecord
Source§impl Debug for MonitorRecord
impl Debug for MonitorRecord
Source§impl<'de> Deserialize<'de> for MonitorRecord
impl<'de> Deserialize<'de> for MonitorRecord
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 MonitorRecord
Source§impl PartialEq for MonitorRecord
impl PartialEq for MonitorRecord
Source§impl Serialize for MonitorRecord
impl Serialize for MonitorRecord
impl StructuralPartialEq for MonitorRecord
Auto Trait Implementations§
impl Freeze for MonitorRecord
impl RefUnwindSafe for MonitorRecord
impl Send for MonitorRecord
impl Sync for MonitorRecord
impl Unpin for MonitorRecord
impl UnsafeUnpin for MonitorRecord
impl UnwindSafe for MonitorRecord
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.