pub struct Event {
pub seq: u64,
pub at: u64,
pub level: String,
pub stack: String,
pub service: String,
pub instance: Option<String>,
pub message: String,
pub kind: Option<String>,
}Expand description
Something that happened, for the event feed.
Fields§
§seq: u64Increases by one per event; pass the last one seen as since.
at: u64Unix milliseconds.
level: Stringinfo, warn or error.
stack: String§service: String§instance: Option<String>§message: String§kind: Option<String>What happened, for consumers that act on events (notifications):
dotted, <subject>.<outcome>. In use: deploy.succeeded,
deploy.failed, health.unhealthy, health.recovered,
backup.succeeded, backup.failed, restore.succeeded,
restore.failed, job.succeeded, job.failed, cert.issued,
cert.failed, preview.created, preview.removed (a preview’s
deploys are deploy.* under its own stack), server.unreachable,
server.recovered (on a control plane, stack <org>/@servers for
each org on the server and system/@servers, service = the server).
Most events have none.
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