Skip to main content

container_limit_frame

Function container_limit_frame 

Source
pub fn container_limit_frame(
    provider: &str,
    block_id: &str,
    agent: (&str, &str),
    state: &str,
    memory_mb: Option<u64>,
    cpus: Option<f64>,
    by: Option<&str>,
    error: Option<&str>,
) -> Value
Expand description

An agentmux_container_limit frame: a container’s CPU or memory limit changed (state changed, by by), something in the container was stopped for going over its memory limit (oom), or the daemon refused a limit (failed, with error). agent is the agent’s id and name, for the row’s button. memory_mb and cpus are the limits in force; each frame is its own row.