Live Dashboards NQL examples

This list of NQL query examples is designed to help you create live dashboard widgets.

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 with disabled default breakdowns

NQL structure

In this case, as the default breakdowns are disabled, you should always specify by <segmentation1>,... in the query.

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.

Bar chart with enabled default breakdowns

NQL structure

In this case, as the default breakdowns are enabled, you can omit by <segmentation1>,... from the query since the system defaults to the options in the breakdown dropdown.

Examples

Number of web page view by default breakdown options

Since default breakdowns are enabled, the system displays web.page_views according to the available default options in the breakdown dropdown. In this case, by: URL, Adapted type, Number of active tabs, Number of large resources, Experience level.


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.
Display only the crashes that happened while the application was running in the foreground.

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?