Skip to main content
zerotal

Documentation


Documentation / @zerotal/monitor / MonitorPanel

Variable: MonitorPanel

const MonitorPanel: object

Defined in: monitor/src/panel.ts:125

The monitor's contribution registry.

Module-level rather than instance state because the panel is a single process-wide product, matching how the store and config are published.

Type Declaration

configure()

configure(sections): void

Record which contributors the app disabled. Called by the provider on boot.

Parameters

sections

Record<string, boolean> | undefined

Returns

void

host()

host(): MonitorPanelHost

The write surface handed to contributors through the container.

Returns

MonitorPanelHost

sections()

sections(): MonitorSection[]

Every contributed section, sorted for display.

Returns

MonitorSection[]

find()

find(id): MonitorSection | undefined

Resolve a contributed section by id.

Parameters

id

string

Returns

MonitorSection | undefined

reset()

reset(): void

Reset the registry (tests).

Returns

void