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, secret.rotated (a new secret version reached a
service, saying what its on_change does; a workspace under stack
<org>/@workspaces), 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.