mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(#1) Add summary command
Right now it does not support timespans, and just does current day.
This commit is contained in:
parent
4c249c0ce4
commit
13f5a282c7
3 changed files with 16 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue