NQL as()
Last updated
Last updated
The as()
function allows you to display the output from NQL queries in a formatted manner by assigning specific formatting information to the metrics. The Nexthink interface displays the data with the unit specified. The as()
function is supported in the list and sort clauses.
Example:
Use the following formatting options:
Formatter | Unit | Example query |
---|---|---|
energy | Wh kWh MWh GWh | |
weight | g kg t kt | |
currency | Specify the currency using the additional
| |
percent | % | |
bitrate | bps Kbps Mbps Gbps |