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?
optionalgroup?:string
Defined in: monitor/src/panel.ts:84
Sidebar group heading. Contributed groups sort after the built-in ones.
icon?
optionalicon?:string
Defined in: monitor/src/panel.ts:86
Raw SVG markup for the nav icon. Falls back to a generic glyph.
sort?
optionalsort?: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
Returns
MonitorSectionData | Promise<MonitorSectionData>