#[non_exhaustive]pub enum AdminEvent {
Show 20 variants
HostUpdated {
id: Uuid,
},
HostCreated {
id: Uuid,
},
HostDeleted {
id: Uuid,
},
ServiceStatusChanged {
id: Uuid,
status: String,
},
SoftwareItemUpdated {
id: Uuid,
},
SoftwareItemCreated {
id: Uuid,
},
VersionCheckCompleted {
host_id: Uuid,
software_item_id: Uuid,
},
UpdateTriggered {
update_history_id: Uuid,
host_id: Uuid,
software_item_id: Uuid,
},
UpdateProtectionStarted {
update_history_id: Uuid,
host_id: Uuid,
software_item_id: Uuid,
},
UpdateStarted {
update_history_id: Uuid,
host_id: Uuid,
software_item_id: Uuid,
interactive: bool,
},
UpdateCompleted {
update_history_id: Uuid,
host_id: Uuid,
software_item_id: Uuid,
status: String,
},
DiscoveryCompleted {
host_id: Uuid,
},
SystemServiceStatusChanged {
id: Uuid,
status: String,
},
SchedulerTaskCompleted {
task_id: Uuid,
},
HostTagCreated {
id: Uuid,
},
HostTagUpdated {
id: Uuid,
},
HostTagDeleted {
id: Uuid,
},
HostTagsChanged {
host_id: Uuid,
},
GlobalGitHubProviderMisconfigured {
problem: String,
},
DataReset,
}Expand description
A real-time event pushed to admin SSE subscribers.
Each variant represents a state change that the frontend can use to invalidate and refresh the relevant data. Events are lightweight invalidation signals — they carry only enough context (entity IDs, status strings) for the subscriber to decide whether to refetch.
§Wire format
Sent as SSE with event: set to event_name() and
data: set to the JSON-serialised inner fields of the variant.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
HostUpdated
A host’s metadata was updated.
HostCreated
A new host was created (e.g. reported by an agent).
HostDeleted
A host was deactivated / deleted.
ServiceStatusChanged
A service’s status changed (approved, rejected, deactivated).
SoftwareItemUpdated
A software item was updated.
SoftwareItemCreated
A new software item was created.
VersionCheckCompleted
A version check completed for a host + software item pair.
UpdateTriggered
A software update was created and dispatched to the agent.
Emitted immediately after trigger_update_for_host succeeds, before
the agent confirms start. Allows the History page to show the new
pending/queued entry in real-time without polling.
UpdateProtectionStarted
Controller pre-update protection started for a software update.
Emitted by the orchestrator when protection (snapshot/backup) begins. The frontend transitions the update record to In Progress state on receipt.
UpdateStarted
A software update started executing.
Fields
UpdateCompleted
A software update completed (successfully or with failure).
DiscoveryCompleted
Autodiscovery completed for a host.
SystemServiceStatusChanged
A system service’s status changed (approved, rejected, deactivated).
SchedulerTaskCompleted
A scheduled task completed execution.
HostTagCreated
A host tag was created.
HostTagUpdated
A host tag was updated.
HostTagDeleted
A host tag was deleted.
HostTagsChanged
Tag assignments changed on a host.
GlobalGitHubProviderMisconfigured
The global GitHub provider settings are stored in an invalid state.
DataReset
All tenant data was reset (hosts, software items, etc. deleted).
Implementations§
Source§impl AdminEvent
impl AdminEvent
Sourcepub fn event_name(&self) -> &'static str
pub fn event_name(&self) -> &'static str
Returns the SSE event: field name for this variant.
The name is the snake_case version of the variant name, matching the
serde rename_all = "snake_case" serialisation.
Trait Implementations§
Source§impl Clone for AdminEvent
impl Clone for AdminEvent
Source§fn clone(&self) -> AdminEvent
fn clone(&self) -> AdminEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more