pub struct RevisionRollback {
pub tenant: String,
pub environment: EnvironmentTag,
pub from: RevisionId,
pub to: Option<RevisionId>,
pub cause: String,
pub author: ProvenanceAuthor,
pub rolled_back_at: DateTime<Utc>,
}Expand description
A serving revision was rolled back: the journaled payload of a
crate::record::RunEventKind::RevisionRolledBack event, and the
move DeploymentPointer::rolled_back applies. Byte-exact by
construction: to is derived from the chain’s transition history —
the immutable revision that served before — so the restored serving
state is a fact about what happened, not a guess at what should.
Fields§
§tenant: StringThe tenant the rollback governs.
environment: EnvironmentTagThe environment rolling back.
from: RevisionIdThe revision that was serving.
to: Option<RevisionId>The previously serving revision, re-derived from the journaled
transition history (None: the environment returns to serving
nothing — the state before its first promotion).
cause: StringWhy the rollback happened — the operator’s note, the incident id.
Who rolled back (human:{id}).
rolled_back_at: DateTime<Utc>When the rollback journaled.