FleetSpec class

Constructors

FleetSpec({String? arch, int? cpus, String? gpuModel, int? gpus, int? memory, String? os})
Returns a new FleetSpec instance.

Properties

arch ↔ String?
Arch is the CPU architecture, amd64 or arm64, and it is what decides whether a binary built for the fleet will run here. Only the sources that report one carry it (a linked run-target, a BYO worker).
getter/setter pair
cpus ↔ int?
CPUs is logical cores on the unit.
getter/setter pair
gpuModel ↔ String?
GPUModel names the FIRST accelerator ("NVIDIA GB10") as the representative of the set; GPUs carries how many. Empty for a cluster, whose cards are counted rather than modelled, and for a unit with none.
getter/setter pair
gpus ↔ int?
GPUs is how many accelerators the unit has. For a cluster it is the vendor totals summed across every node, so it counts cards, not machines.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
memory ↔ int?
Memory is total system RAM in BYTES — not GB, and not what is free right now (fleetMetrics carries that). Absent when the source reports no RAM figure.
getter/setter pair
os ↔ String?
OS is the operating system the unit runs: linux, darwin or windows. Empty when the source does not report one — a cluster row does not.
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) → FleetSpec?
Returns a new FleetSpec instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<FleetSpec>
mapFromJson(dynamic json) → Map<String, FleetSpec>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<FleetSpec>>

Constants

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