pub enum AgentResponse {
Show 21 variants
ReconcileResult(ReconcileReport),
NodeInfo(NodeInfo),
NodeStats(NodeStats),
TenantList(Vec<String>),
InstanceList(Vec<InstanceState>),
WakeResult {
success: bool,
},
InstanceActionResult {
success: bool,
new_status: String,
error: Option<String>,
},
SandboxResult {
success: bool,
response: Value,
error: Option<String>,
},
Error {
code: u16,
message: String,
},
DeploymentStatus {
pool_id: String,
current_revision: String,
target_revision: Option<String>,
strategy: UpdateStrategy,
phase: DeploymentPhase,
instances_updated: u32,
instances_pending: u32,
canary_health: Option<f64>,
paused: bool,
errors: Vec<String>,
},
DeploymentControlResult {
success: bool,
pool_id: String,
new_phase: String,
message: String,
},
BatchActionResult {
results: Vec<BatchActionItemResult>,
total: u32,
succeeded: u32,
failed: u32,
},
PoolActionResult {
success: bool,
pool_id: String,
instances_affected: u32,
errors: Vec<String>,
},
Metrics(MetricsSnapshot),
AuditLog {
entries: Vec<AuditEntry>,
total_count: u32,
},
HealthStatus {
instances: Vec<InstanceHealthReport>,
unhealthy_count: u32,
degraded_count: u32,
},
ReconcileHistory {
runs: Vec<ReconcileHistoryEntry>,
},
StateDump(Box<StateDumpContent>),
SecretsUpdateResult {
success: bool,
tenant_id: String,
instances_reloaded: u32,
errors: Vec<String>,
},
ConfigUpdateResult {
success: bool,
pool_id: String,
instances_updated: u32,
errors: Vec<String>,
},
SyncEventsResult {
events: Vec<Value>,
current_sequence: u64,
},
}Expand description
Strongly typed response returned over QUIC streams.
Variants§
ReconcileResult(ReconcileReport)
Result of a reconcile pass.
NodeInfo(NodeInfo)
Node info.
NodeStats(NodeStats)
Aggregate node stats.
TenantList(Vec<String>)
List of tenant IDs.
InstanceList(Vec<InstanceState>)
List of instance states.
WakeResult
Result of a wake operation.
InstanceActionResult
Result of an imperative instance action.
SandboxResult
Result of a sandbox operation (filesystem, exec, logs).
Error
Error response.
DeploymentStatus
Deployment status with rollout progress.
DeploymentControlResult
Result of pause/resume/rollback operations.
BatchActionResult
Result of batch instance operations.
PoolActionResult
Result of pool-level action.
Metrics(MetricsSnapshot)
Metrics snapshot.
AuditLog
Audit log entries.
HealthStatus
Health status report for instances.
ReconcileHistory
Reconciliation history.
Fields
§
runs: Vec<ReconcileHistoryEntry>StateDump(Box<StateDumpContent>)
Complete node state dump (boxed due to size).
SecretsUpdateResult
Result of secrets update.
ConfigUpdateResult
Result of config update.
SyncEventsResult
Incremental state events in response to SyncEvents.
Trait Implementations§
Source§impl Clone for AgentResponse
impl Clone for AgentResponse
Source§fn clone(&self) -> AgentResponse
fn clone(&self) -> AgentResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentResponse
impl Debug for AgentResponse
Source§impl<'de> Deserialize<'de> for AgentResponse
impl<'de> Deserialize<'de> for AgentResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentResponse
impl RefUnwindSafe for AgentResponse
impl Send for AgentResponse
impl Sync for AgentResponse
impl Unpin for AgentResponse
impl UnsafeUnpin for AgentResponse
impl UnwindSafe for AgentResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more