NodeStatus class

A point-in-time live snapshot of a node's health and resource utilisation.

Assembled by the agent's monitors and reported to the Hub via heartbeats / status reports. Designed to feed future real-time dashboards.

Annotations
  • @immutable

Constructors

NodeStatus({required DateTime capturedAt, required CpuInfo cpu, required MemoryInfo memory, required List<StorageDevice> storage, required PlatformInfo os, List<ProcessInfo> processes = const []})
Creates a node status snapshot.
const

Properties

capturedAt DateTime
When this snapshot was captured (UTC).
final
cpu CpuInfo
CPU utilisation.
final
hashCode int
The hash code for this object.
no setterinherited
memory MemoryInfo
Memory utilisation.
final
os PlatformInfo
Operating-system facts.
final
processes List<ProcessInfo>
Top processes by resource consumption (may be truncated).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storage List<StorageDevice>
Storage devices / mount points.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
JSON form.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> json) NodeStatus
Decodes from JSON.