pub enum ResourceType {
Mem,
Block,
Gpu,
GpuMem,
Cpu,
Net,
}Expand description
Resource types tracked by the observability system.
Maps to the grafOS resource kinds (memory, block storage, GPU, CPU).
Variants§
Mem
Memory (DRAM, CXL-attached).
Block
Block storage (NVMe, SD).
Gpu
GPU compute.
GpuMem
Accelerator-local memory / GPU VRAM.
Cpu
CPU compute.
Net
Network (service listeners, sessions).
Trait Implementations§
Source§impl Clone for ResourceType
impl Clone for ResourceType
Source§fn clone(&self) -> ResourceType
fn clone(&self) -> ResourceType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourceType
impl Debug for ResourceType
Source§impl Display for ResourceType
impl Display for ResourceType
Source§impl From<ResourceKind> for ResourceType
Canonical bridge from the substrate-level resource taxonomy
(grafos_core::ResourceKind, 7 variants) to the event-layer
resource taxonomy (grafos_observe::ResourceType, 6 variants).
impl From<ResourceKind> for ResourceType
Canonical bridge from the substrate-level resource taxonomy
(grafos_core::ResourceKind, 7 variants) to the event-layer
resource taxonomy (grafos_observe::ResourceType, 6 variants).
Six of seven variants map 1:1 to a matching ResourceType.
The seventh — Tasklet — is composite CPU+memory on the same
node; this bridge reports it as Cpu (the typically-fenced
half, mirroring the v1.1 §3 ResourceKind docstring that the
CPU half is the binding-determining resource). Picking a
single canonical bridge resolves a pre-existing divergence
between grafos-scheduler::observe_hooks (which used
Tasklet → Mem) and grafos-scheduler-service::observe_resource _type_for (which used Tasklet → Cpu) — same data path,
different SIEM labels.
Future variant additions on either side force this impl to be updated.