pub struct Event {
pub scope: EventScope,
pub level: Level,
pub target: String,
pub msg: String,
pub fields: HashMap<String, Value>,
pub seq: u64,
}Expand description
A single structured event produced by a scryer ingestion adapter.
The (scope, seq) pair is unique and stable across the event’s lifetime,
per the scryer substrate contract. Tower uses it for dedup in the supervisor.
Fields§
§scope: EventScopeIdentifies which service, task-run, forge-run, or health stream this event belongs to.
level: LevelLog level. Defaults to Info for unstructured lines.
target: StringEvent category, e.g. "raft.term_change" or "database.query_slow".
msg: StringHuman-readable message.
fields: HashMap<String, Value>Structured key-value payload, JSON-typed.
seq: u64Per-scope monotonically increasing event number. Unique with scope.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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