Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. with us as (select operation, usagetype, sum(usagevalue)/1024/1024/1024 as usage_value from s3usage where resource='foobar' group by operation, usagetype ) select * from us where usage_value > 1;
  2. operation | usagetype | usage_value
  3. -----------------+------------------------+-----------------------
  4. GetObject | DataTransfer-Out-Bytes | 1049.5139386812224961
  5. StandardStorage | TimedStorage-ByteHrs | 3332.3039097860455518
  6. PutObject | DataTransfer-In-Bytes | 9.6716320738196373
  7. (3 rows)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement