def Ctl.snap
import bend-kube-runtime@0.2.0.0/src/runtime.bend as Runtimeimport Base
import bend-kube-runtime@0.2.0.0/src/store.bend as S
import bend-kube-runtime@0.2.0.0/src/queue.bend as Q
473def Ctl.snap(st: CState, name: String) -> Snap:
474 match st:
475 case CState{+s, +q, Stats{r, e, v}}:
476 Snap{name, S.Store.ready(s), r, e, v, Q.Queue.nrun(q), U32.from_nat(S.Store.size(s))}