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:
energy
Wh
kWh
MWh
GWh
weight
g
kg
t
kt
currency
Specify the currency using the additional code
parameter.
CAD
: CA$
CHF
: CHF
GBP
: £
EUR
: €
USD
: $
percent
%
bitrate
bps
Kbps
Mbps
Gbps