Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. [...]
  2.  
  3. var period = 31d //Tried 1mo here but is not working.
  4. var data = batch
  5. |query('SELECT "tps_peak", "t_license_exceeded" FROM "' + db + '"."' + rp + '"."' + measurement + '" ')
  6. .period(period)
  7. .cron('0 0 1 * *') //1st day of each month.
  8. |where(lambda: ("t_license_exceeded" == 'true'))
  9. |count('tps_peak')
  10. .as('tps_peak_count')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement