31 May 2023 02:45 PM - last edited on 01 Jun 2023 09:32 AM by stefan_eggersto
Hi,
When using the timeseries
command with the goal of displaying a single value (on the single value visualization), what is the best/preferred DQL syntax?
Best,
Sini
Solved! Go to Solution.
01 Jun 2023 07:12 AM - last edited on 01 Jun 2023 11:56 AM by stefan_eggersto
Hi Sinisa, you can use the arrayLast function. Here's an example of a query doing just that:
timeseries avg(dt.host.memory.usage)
| fields arraylast(`avg(dt.host.memory.usage)`)