Scale Intelligence■ Docs
Docs / The model / PlatformState

PlatformState.

Every service with its life, every reader's distance behind the log, events set aside, settings changed, cost by kind

Figure 1PlatformStatespecified
PLATFORMSTATEview at platform scopeservices[RunningService]readers_behind{text:count}events_set_aside[Event]settings_changed[Event]cost_by_kindCostRUNNINGSERVICEthrough servicesEVENTthrough events_set_asideCOSTthrough cost_by_kind
PlatformState is a view at platform scope. The drawing shows its fields and the objects that they point at.
kind
view
scope
platform
key
the moment
store
derived
family
ops_console

Fields#

fieldtyperequirednote
servicesRunningServiceyes
readers_behind{text:count}yes
events_set_asideEventyes
settings_changedEventyes
cost_by_kindCostyes

Routes that use it#

No route takes or returns PlatformState directly. The record holds it, and the objects that point at it reach it.