daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top