(#1) Add summary command

Right now it does not support timespans, and just does current day.
This commit is contained in:
Brian Cain 2015-09-06 11:35:42 -07:00
parent 4c249c0ce4
commit 13f5a282c7
3 changed files with 16 additions and 6 deletions

View file

@ -62,5 +62,14 @@ class Pooler
response = conn.get '/v1/status'
res_body = JSON.parse(response.body)
puts res_body
end
def self.summary(url)
conn = Http.get_conn(url)
response = conn.get '/v1/summary'
res_body = JSON.parse(response.body)
puts res_body
end
end