Skip to content

brokkr-models::models::agent_k8s_events

Rust

Persisted kube Events for objects an agent manages.

Short-lived operational buffer with a hard 6-hour retention ceiling enforced by the broker’s eviction worker (see brokkr-broker). See [[BROKKR-I-0019]] and project_log_retention_stance.

pub

Derives: Queryable, Selectable, Identifiable, Debug, Clone, Serialize, Deserialize, ToSchema

Name Type Description
id Uuid
agent_id Uuid
stack_id Option<Uuid> The stack the row belongs to. No value: it belongs to a work order.
observed_at DateTime<Utc>
reason String
message String
event_type String
source Option<String>
involved_object serde_json::Value
created_at DateTime<Utc>
work_order_id Option<Uuid> The work order the row belongs to. No value: it belongs to a stack. Exactly one of stack_id and work_order_id has a value (BROKKR-T-0405).

pub

Derives: Insertable, Debug, Clone, Serialize, Deserialize

Name Type Description
agent_id Uuid
stack_id Option<Uuid>
work_order_id Option<Uuid>
observed_at DateTime<Utc>
reason String
message String
event_type String
source Option<String>
involved_object serde_json::Value