Live Dashboards NQL examples

This list of NQL query examples is designed to help you create Live Dashboards widgets. Go through the queries below and pick the one most similar to the widget you would like to create and the information that you want to display. Copy the query and adjust it to your use case.

KPI widget

NQL structure
...
summarize <kpi> = <sum() | count() | avg() | max() | min()>

Examples

Display the total web application errors during the last 7 days.
web.errors during past 7d
| summarize total_errors = number_of_errors.sum() 
Display the ratio of backend page load duration during the last 7 days.
web.page_views during past 7d
| summarize 
  backend_dur_ratio = page_load_time.backend.sum() /
  page_load_time.overall.sum()
Display the estimated savings from remote action remediation in USD.
remote_action.executions during past 30d
| where status == success
| where purpose == remediation
| summarize amt_saved = (number_of_executions.sum()) * (20)
| list amt_saved.as(format = currency,code = usd)

Line chart

NQL structure

Examples

Display average daily backend page load duration, client page load duration, and network duration over the last 7 days, without specifying the list line.
Display average daily backend page load duration, client page load duration, and network duration over the last 7 days, using the list line to indicate the parameters that should be included.
Display the estimated daily total energy consumption in kilowatt-hours (kWh).

Bar chart

NQL structure

Examples

Display the number of hard resets and the number of device over the last 7 days, broken down by: platform, hardware manufacturer and model.
Display the number of web transactions by application.
Display the Internet Service Provider (ISP) count excluding unknown ISP.
Display the estimated savings in USD achieved through the workflows, categorized by each trigger method.

Single-metric gauge chart

Ratio of devices or users when there is a bad event

Create a single-metric gauge chart displaying the ratio of devices or users when there is a bad event, for example, a crash. It allows to see how devices or users are affected by the issue.

NQL structure

Example

Display the ratio of devices with execution crashes out of all the devices in the company.

Ratio of events

Display the ratio of events when there is an event such as a crash, freeze, hard reset, system reset.

NQL structure

Example

Display the ratio of poor quality collaboration sessions out of the total number of sessions.

Score metric

Display the DEX score metric.

NQL structure

Example

Display the DEX score metric

Multi-metric gauge chart

Ratio of devices or users with bad events against objects without them

NQL structure

Example

Display the ratio of devices with crashes against those without them.

Ratio of devices with bad events against devices without them

NQL structure

Example

Display the ratio of devices with hard resets against the ones without them.

Ratio of users or devices with a good state against the ones with a bad state

NQL structure

Example

Display the ratio of users with good page views experience against the ones with a frustrating experience.

Ratio of events with a good state against events with a bad state

NQL structure

Example

Display the ratio of page views with good experience against the ones with a frustrating experience.

RELATED TOPIC:

Widget types

Last updated

Was this helpful?