Skip to main content
zerotal

Documentation


Documentation / @zerotal/monitor / MonitorSection

Interface: MonitorSection

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

A section contributed to the monitor's navigation.

Properties

id

id: string

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

Stable id — the URL segment (/monitor/<id>) and the nav key.


label

label: string

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


group?

optional group?: string

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

Sidebar group heading. Contributed groups sort after the built-in ones.


icon?

optional icon?: string

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

Raw SVG markup for the nav icon. Falls back to a generic glyph.


sort?

optional sort?: number

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

Methods

resolve()

resolve(range): MonitorSectionData | Promise<MonitorSectionData>

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

Resolve the section's content for the selected time range.

Called on every render and every auto-refresh, so it should read from whatever the package already records rather than doing expensive work.

Parameters

range

MonitorRange

Returns

MonitorSectionData | Promise<MonitorSectionData>