<tag_name attribute1="literal" attribute2='{ "json": true }'>content</tag_name>
data
attribute of the auto-widget
tag. This script uses the UI.showReport
function which uses STML to format a report.showReport
function is a map that is defined by [ metrics: host1Load ]
. This map defines which variables are available to STML. In this case the variable metrics
references the data host1Load
.{NAME}
, where NAME is the name of the variable containing the data. Thus, passing the metrics
variable to the data
variable using this syntax means that the auto-widget
can use the metric to render a nice chart.