Expand description
The platform-neutral data model.
Every type here is plain data. Nothing in this module knows how /proc is
parsed or how a process row is coloured — that is the dependency direction
§10.1 requires, and it is what makes the whole model testable with fixtures.
Structs§
- Ancestor
Entry - One entry in a process’s ancestry chain.
- Battery
Capacity - A battery’s design capacity beside the capacity it can hold today.
- Battery
Snapshot - Battery state.
- Capability
Snapshot - Every capability the UI branches on.
- Collector
Health - Overall collector health.
- Collector
Issue - A recurring collector problem, aggregated rather than logged per occurrence.
- Container
Identity - A container identified from a cgroup path.
- Core
Class - A class of logical CPUs that differ in kind, not just in load.
- CpuBreakdown
- The per-state split of CPU time.
- CpuQuota
- A cgroup CPU quota: how much CPU time the group may use per period.
- CpuSnapshot
- System-wide CPU state.
- CpuUsage
- Aggregate or per-core CPU utilization.
- Disk
Snapshot - Throughput of one block device.
- Disk
Totals - Cumulative device counters, kept alongside rates so the Inspect screen can show totals as well as throughput.
- Filesystem
Snapshot - Capacity of one mounted filesystem.
- Host
Environment - A heuristic environment classification together with its evidence.
- Host
Snapshot - System identity, mostly from the slow sampling tier (§8.6).
- Inode
Usage - Inode occupancy of one filesystem.
- Interface
Address - An address assigned to an interface.
- Interface
Errors - Error and drop counters.
- Load
Snapshot - Load averages, which are run-queue lengths rather than percentages.
- Measurement
- A labelled raw measurement, used as pressure evidence and diagnostic evidence.
- Memory
Detail - The secondary memory breakdown.
- Memory
Snapshot - System memory state.
- Network
Snapshot - State of one network interface.
- Open
File Entry - One open file descriptor of a process.
- Open
File List - The descriptors of one process, as far as the listing cap allowed.
- Pressure
Signal - One radar signal.
- Pressure
Snapshot - The whole radar.
- Process
Detail - The expensive per-process fields, collected on demand for the selected process only (§8.6).
- Process
Identity - A process identity that survives PID reuse.
- Process
Io - Per-process disk I/O.
- Process
Memory - Per-process memory figures.
- Process
Snapshot - The cheap per-process fields collected on every fast tick.
- PsiResource
- The Linux PSI figures for one resource.
- PsiSnapshot
- All three Linux PSI resources.
- Self
Overhead - monitrs’s own resource use.
- Sensor
Snapshot - All sensor readings.
- Swap
Snapshot - Swap capacity and activity.
- System
Snapshot - One complete, internally consistent observation of the system.
- Temperature
Reading - One temperature sensor reading.
- Tier
Health - Timing and failure counts for one tier.
- Traffic
Totals - Cumulative byte and packet counters.
- User
Identity - The owning user of a process.
Enums§
- Capability
State - Whether one capability is usable on this system.
- Charge
State - Whether the battery is charging.
- Confidence
- How much the evidence actually supports a heuristic conclusion.
- Container
Runtime - A container runtime recognised from a cgroup path.
- CpuNormalization
- How process CPU percentages are scaled (§8.3).
- Environment
Kind - Whether we appear to be running on hardware, in a VM, or in a container.
- Filesystem
Kind - What kind of filesystem a mount point is backed by.
- Interface
Kind - What kind of interface this is.
- Link
State - Operational state of a link.
- Measured
Value - A raw measured quantity, tagged with what kind of quantity it is.
- Memory
Semantics - Which platform definition produced the headline memory numbers.
- Metric
State - The availability of a single metric in a single sample.
- Open
File Kind - What kind of object a file descriptor refers to.
- Pressure
Id - Which resource a signal describes.
- Pressure
State - The three states a pressure signal can be in (§2.3).
- Process
Detail Result - The outcome of a detail lookup, which may fail because the process exited.
- Process
State - The kernel scheduling state of a process.
- Severity
- How serious a finding is.
- Tier
- Which sampling tier a measurement belongs to (§8.6).
- Unavailable
Reason - Why a normally-available metric is missing from this particular sample.
Constants§
- MAX_
RETAINED_ ISSUES - The maximum number of distinct issues retained.