STML Tags
StackState Self-hosted v5.1.x
Tag: auto-widget
auto-widget
Data queried on the analytics page can often times show a preview. Data of some known format, such as telemetry or topology, will therefore automatically be shown in a chart of topology visualization. This tag renders data exactly the way the analytics preview of the analytics would render data.
It looks at the shape of the data
, and if it's of some recognizable type (determined by inspecting the _type
) it automatically renders the data in an appropriate format.
Attributes:
data
- any type of json data.
Examples:
This is an example of a script that uses the auto-widget
to render a telemetry chart:
Tag: heatmap
heatmap
Shows a table of size rows x columns
with color coded CLEAR
, DEVIATING
, and CRITICAL
states. This is useful for showing multiple states over time or in combinations.
Attributes:
rows
- array of the labels placed on the rows. The number of rows is determined by the size of the array.cols
- array of the labels placed on the columns. The number of cells is determined by the size of the array.cells
- two-dimensional array of state elements. Each element in the two-dimensional array can either beCLEAR
(green),DEVIATING
(warning) orCRITICAL
(red).
Examples:
The following heatmap renders a table of 2x2 with all three colors.
Last updated