Skip to main content

vil_edge_deploy/
state.rs

1// =============================================================================
2// vil_edge_deploy::state — connector state for ServiceProcess health metrics
3// =============================================================================
4
5use vil_connector_macros::connector_state;
6
7/// Live state metrics for the edge deployment process.
8#[connector_state]
9pub struct EdgeDeployState {
10    /// Total edge builds completed successfully.
11    pub builds_completed: u64,
12    /// Total build failures.
13    pub build_failures: u64,
14    /// FxHash of the most recent target binary hash (0 if none built).
15    pub target_hash: u32,
16    /// Timestamp (ns) of the most recent successful build (0 if none).
17    pub last_build_ns: u64,
18}