Skip to main content

Module cluster

Module cluster 

Source
Expand description

The Cluster tab (doc 34, sections 6.2 and 6.3): the conditions, the nodes, the detail of a node, its charts and the actions of node and cluster. This file is the state and the keys; view.rs draws it.

Modules§

view
The drawing of the Cluster tab: the list of conditions and nodes, the detail of a node and its charts.

Structs§

ChartDef
What a chart draws: a title and the lines (one or two) with their legend keys.
Row
A node of the table: the same row from GET /cluster/status (root) or GET /nodes (any token).

Enums§

Gate
Why an action cannot run now; None means it can.
Unit

Constants§

MON_CHARTS
The series of a node that can be charted (TUI-MON-01).

Functions§

allowed_windows
How many windows of WINDOWS_MIN fit in the retention (never above it, TUI-MON-03); at least one.
call_of
The call an action’s confirmation runs.
export_csv
The visible series as CSV (TUI-MON-07): the time in UTC and one column per line.
gate
Whether an action of the Cluster tab can run now, and why not (TUI-CLU-05, TUI-FRM-10).
line_points
The points of a line of a chart: the window, up to the instant it was frozen at.
moved
index moved by delta inside 0..count, without going around.
on_action
The keys of the Cluster tab. Enter opens the detail; the rest are the actions and the movement.
refuse
A key that cannot work now says why, in the footer (TUI-FRM-10).
rows
The nodes of the table, in the order the server gave them.
selected_index
The index of the selected node in rows; the first one if the selection is gone.
selected_row
status_of
watch
Starts watching a node’s drain until it reaches goal.
window_ms
The window in milliseconds, clipped to what is retained.