PatchTargetIn class

Constructors

PatchTargetIn({String? capacity, String? host, String? id, String? kind, String? label, Metrics? metrics, Spec? spec, String? status})
Returns a new PatchTargetIn instance.

Properties

capacity ↔ String?
Capacity rewrites the human summary, up to 256 characters. "" clears it.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
host ↔ String?
Host re-points the hostname sessions are matched by. Moving it moves the load: the session counts follow the new name from the next read.
getter/setter pair
id ↔ String?
ID is the target to update, from the path.
getter/setter pair
kind ↔ String?
Kind re-files it under laptop | cloud | gpu | cluster | machine.
getter/setter pair
label ↔ String?
Label renames the machine, up to 128 characters. Empty STRING is refused — a target with no name is a row nobody can pick out of a fleet.
getter/setter pair
metrics ↔ Metrics?
Metrics replaces the live sample, and sending one IS A HEARTBEAT: the server stamps the time and appends the point to the fleet series. Sending an all-zero sample CLEARS the heartbeat — the machine goes back to having no liveness fact at all, and its stored status is taken at face value again.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spec ↔ Spec?
Spec replaces the static capability whole, sanitized and clamped the same way a register's is.
getter/setter pair
status ↔ String?
Status sets operator INTENT: online | offline | draining. Draining is how a machine is taken out of dispatch without ending what is already on it. What comes back may still read offline, because the heartbeat outranks the intent.
getter/setter pair

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

Constants

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