panels/stats
The floating stats, in the kit's skin over the shared view
(stats-data.ts, stats-view.tsx): the stream's figures as half-circle gauges, what the
stream runs on, the graphs that grow while it stays open, the figures under
them, and the host's meters. It is a compact strip or the full view, dragged
by its header: the strip reads at a glance, at a toolbar's height, the
stream's three figures against their own scales, then after a divider every
meter of the host's load as shares. The full view keeps the same gauges,
every meter among them, above an accordion of the pipeline rows, the
histories, and the figures, one open at a time, with the uplinks under it.
Functions
StatusMark()
function StatusMark(__namedParameters): Element;Defined in: panels/stats.tsx:33
The mark beside a row.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | { status: Status; } |
__namedParameters.status | Status |
Returns
Element
Gauge()
function Gauge(props): Element;Defined in: panels/stats.tsx:99
One half-circle gauge: the arc fills to percent of the half circle, the
figure sits in the bowl, and the name sits under the base line. A gauge
reads a figure against its scale in one glance, where a graph has to be
read; the scales themselves belong to the caller.
Parameters
| Parameter | Type | Description |
|---|---|---|
props | GaugeProps | The gauge's name, figure, fill, and warn state. |
Returns
Element
The gauge element.
HeaderButton()
function HeaderButton(__namedParameters): Element;Defined in: panels/stats.tsx:122
A header button with its tooltip.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | { label: string; onClick: () => void; children: ReactNode; } |
__namedParameters.label | string |
__namedParameters.onClick | () => void |
__namedParameters.children | ReactNode |
Returns
Element
StreamStats()
function StreamStats(): Element;Defined in: panels/stats.tsx:139
Renders the stats, compact or detailed by its own toggle, telling the core the stats are on screen for as long as it is mounted in a visible tab.
Returns
Element
FloatingStats()
function FloatingStats(): Element;Defined in: panels/stats.tsx:251
The stats floating over the stream, where a layout has no place of its own for them.
Returns
Element