pub struct SoftwareStatesPayload {
pub tenant_id: Uuid,
pub items: Vec<SoftwareStateItem>,
pub host_summaries: Vec<HostPackageSummary>,
pub hosts: Vec<HostStateMetadata>,
pub page: SoftwareStatesPage,
}Expand description
Controller -> MQTT service: current software version state for a tenant.
Sent after tenant assignment and after any version check or update result. Safe to write to the outbox (contains no credentials).
Large tenants use multi-page delivery. The page field indicates which
page this payload represents. Receivers must accumulate all pages before
applying the full state update (see page_index + 1 == total_pages for
the last-page signal).
Fields§
§tenant_id: UuidTenant this state belongs to.
items: Vec<SoftwareStateItem>All active software items for the tenant with per-host version data.
host_summaries: Vec<HostPackageSummary>Per-host aggregate summary of unpinned (unfeatured) software items.
Each entry summarises all enabled, non-deactivated unfeatured items for one host. Only hosts with at least one such item are included. Defaults to an empty list on deserialization for backward compatibility with older MQTT services.
hosts: Vec<HostStateMetadata>Per-host metadata for all hosts referenced in items or host_summaries.
Includes OS info, tags, and agent last-seen data. Sourced exclusively from DB. Defaults to an empty list for backward compatibility with older MQTT services.
page: SoftwareStatesPagePagination metadata indicating which page this payload represents.
Trait Implementations§
Source§impl Clone for SoftwareStatesPayload
impl Clone for SoftwareStatesPayload
Source§fn clone(&self) -> SoftwareStatesPayload
fn clone(&self) -> SoftwareStatesPayload
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more