STML Tags
This page describes StackState v4.4.x.
The StackState 4.4 version range is End of Life (EOL) and no longer supported. We encourage customers still running the 4.4 version range to upgrade to a more recent release.
Tag: auto-widget
auto-widget
Data queried on the analytics page can often times show a preview. Data that is of some known format, like 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 is 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