Module: Giraffi::Client::Monitoringdata
- Included in:
- Giraffi::Client
- Defined in:
- lib/giraffi/client/monitoringdata.rb
Overview
Defines methods related to the monitoring data
Instance Method Summary collapse
-
#add_monitoringdata(options = {}) ⇒ HTTParty::Response
Posts the monitoring data to the Giraffi.
-
#find_monitoringdata(options = {}) ⇒ HTTParty::Response
Returns the desired monitoring data.
Instance Method Details
#add_monitoringdata(options = {}) ⇒ HTTParty::Response
Posts the monitoring data to the Giraffi
20 21 22 |
# File 'lib/giraffi/client/monitoringdata.rb', line 20 def add_monitoringdata(={}) self.class.post("#{monitoringdata_endpoint}/internal/nodelayed?apikey=#{apikey}", :body => MultiJson.encode({:internal => })) end |
#find_monitoringdata(options = {}) ⇒ HTTParty::Response
Returns the desired monitoring data
11 12 13 |
# File 'lib/giraffi/client/monitoringdata.rb', line 11 def find_monitoringdata(={}) self.class.get("/monitoringdata.json?apikey=#{apikey}", query: ) end |