DashboardService class
Service that runs a local web dashboard for monitoring runs.
Symphony refactor: the dashboard is run-first. State comes from a
RuntimeSnapshot (live when a Scheduler is supplied, otherwise read from
the persisted .spectra/RUNTIME.json snapshot). The legacy AGENTS.json
view stays available for one release as a compatibility shim.
Constructors
- DashboardService({required Logger logger, int port = 3000, Scheduler? scheduler, String runtimePath = '.spectra/RUNTIME.json', String legacyAgentsPath = '.spectra/AGENTS.json'})
- Creates a dashboard service.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- legacyAgentsPath → String
-
Path to the legacy agents file kept for one release.
final
- logger → Logger
-
Logger for status messages.
final
- port → int
-
HTTP port (overridable from CLI).
final
- runtimePath → String
-
Path to the persisted runtime snapshot, used as a fallback.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
attachScheduler(
Scheduler scheduler) → void - Attaches a live Scheduler so the dashboard can render in-memory state instead of relying on the persisted snapshot file.
-
detachScheduler(
) → void - Detaches the current live scheduler.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
) → Future< void> - Starts the dashboard HTTP server.
-
stop(
) → Future< void> - Stops the dashboard server.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited