Blocks visualization
Block states
Blocks visualizations are most useful when selecting a State column on the Mapping tab. This setting enables the blocks to change color depending on the state value, which can be rolled-up as a health state and used to trigger notifications.
However, you may find that many of your data streams don't have any state data built-in, meaning that your blocks won't have any way to use this feature out of the box and therefor only ever display gray and static.
Creating state columns
- Follow the tile editor workflow as normal, selecting the Data Stream and Objects you want to visualize, and configuring any necessary Parameters,Shaping etc.
- Toggle Enable SQL Analytics on the toolbar and select Continue.
- Do the following in SQL analytics mode:
- On the Query tab under SQL, enter a query that uses a
CASE
statement to return a state value ofWarning
,Success
orError
. TheAS
value for which you return this case is used as the State for the visualization settings.
For example, in the following query aWarning
state is returned for articles which haven't been updated in over 100 days, else the state is returned asSuccess
:Query using a CASE statement to return a health state - Click Execute to run the query.
- On the Query tab under SQL, enter a query that uses a
- Do the following on the Visualization tab of the right-hand pane:
- Select the Blocks visualization.
- Select the State you created from the Mapping section of the Visualization tab. The blocks are updated to reflect the conditions you defined in the query.
Blocks visualization with a state column specified
- Click Save to save the tile.