501.mql 444 B

12345678910111213141516171819202122232425262728293031
  1. SELECT
  2. id,
  3. prom.date('2024-11-28').unit('max','1h')
  4. FROM
  5. /test/bucketpromdb
  6. /**
  7. output()
  8. **/
  9. ;
  10. SELECT
  11. id,
  12. prom.date('2024-11-28').max().min().count()
  13. FROM
  14. /test/bucketpromdb where prom.date('2024-11-28').max().min().count().assert($3 > 10)
  15. /**
  16. output()
  17. **/
  18. ;
  19. SELECT
  20. id,
  21. prom.date('2024-11-28').max().min().count()
  22. FROM
  23. /test/bucketpromdb where prom.date('2024-11-28').max().min().count().assert(max > 2.5)
  24. /**
  25. output()
  26. **/
  27. ;