Probe class

How a DevStack finds out what state it is in.

Two shapes, because the minimum and the useful maximum are different commands. Probe.exitCode works against any health check that already exists; Probe.json needs the tool to say more, and gives more back.

Constructors

Probe.exitCode(StackRun run)
Zero is up, anything else is down. The command's last non-empty output line becomes the detail shown beside the status.
const
Probe.json(StackRun run)
The command prints one JSON object on stdout:
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
run → StackRun
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape → ProbeShape
final

Methods

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

Operators

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

Static Methods

fromJson(Map<String, Object?> json) → Probe?