Skip to main content
Version: 6.1

Quick State

Overview

alt text Quick State - is a type of data visualization represented as a group of cards displaying the state of objects. The visualization parameters (label, color, and icon) are determined based on values from the search query results.

Quick State Visualization Settings

In the General tab, there are options to set the main parameters for the visualization layout.

ParameterDescriptionJSON Field
Truncate labelA toggle that allows truncating the label if it doesn't fit in the cardgeneral.isTruncate
Number of columns in the gridA numeric field to set the number of columns per rowgeneral.columns
Grid Row Height (px)A numeric field to set the height of the itemgeneral.itemHeight
HeightA numeric field to set the height of the visualization containerheight

The settings interface in the Search Anywhere Framework system looks as follows:

Creating a Quick State Visualization

The Quick State visualization works with three fields:

  • label - the card label
  • icon - the icon from the built-in set or a custom icon displayed on the card. Custom icons use the custom. prefix
  • color - the card color, available in HEX format or string color names such as white, green, red
  • description — the description displayed when you hover over the card

If these fields are not present, the card will have a default icon of beaker, a color of primary, and the label will not be displayed.

For example, the query:

source inventory_devices_device
| aggs count by device.name.keyword
| rename device.name.keyword as label
| eval icon = if (like(label, "%Power%"), "custom.lighthouse", "memory")
| eval description = "count: " + count
| eval color = if (count > 288, "#bd271e", "#3b8646")
| eval color = if (like(label, "%Power%"), "#f5a700", color)
| sort color

Will return the following result:

Quickstate request

After that, go to the Visualization tab, select the Quick State visualization type, and add it to the desired dashboard by clicking the Add to dashboard button.

Quickstate results