Metrics class

Constructors

Metrics({int? at, num? gpuUtil, num? load1, num? load5, num? load15, int? memFree, int? memUsed})
Returns a new Metrics instance.

Properties

at ↔ int?
unix seconds, server-stamped
getter/setter pair
gpuUtil ↔ num?
0..1 aggregate utilization
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
load1 ↔ num?
Load1 is the machine's own one-minute load average — a count of runnable and uninterruptible tasks, NOT a percentage and NOT already divided by core count, so it is read against Spec.CPUs: 8.0 is idle on 16 cores and swamped on 4. Coerced finite and non-negative on write, so 0 means either genuinely idle or nothing reported.
getter/setter pair
load15 ↔ num?
Load15 is the same figure over fifteen. The three together are what separate a machine that is busy right now from one that has been busy all along — which is the question a dispatcher is really asking.
getter/setter pair
load5 ↔ num?
Load5 is the same figure averaged over five minutes.
getter/setter pair
memFree ↔ int?
bytes
getter/setter pair
memUsed ↔ int?
bytes
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Metrics?
Returns a new Metrics instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Metrics>
mapFromJson(dynamic json) → Map<String, Metrics>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Metrics>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.