Module: Giraffi::Client::Applogs

Included in:
Giraffi::Client
Defined in:
lib/giraffi/client/applogs.rb

Overview

Defines methods related to the applogs

Instance Method Summary collapse

Instance Method Details

#add_applogs(options = {}) ⇒ HTTParty::Response

Posts the applogs to the Giraffi

Parameters:

  • options (Hash) (defaults to: {})

    The applogs to post to the Giraffi

Returns:

  • (HTTParty::Response)

Requires APIKEY?:

  • Yes



20
21
22
# File 'lib/giraffi/client/applogs.rb', line 20

def add_applogs(options={})
  self.class.post("#{applogs_endpoint}/applogs.json?apikey=#{apikey}", :body => MultiJson.encode({applog: options}))
end

#find_applogs(options = {}) ⇒ HTTParty::Response

Returns the desired applogs related

Parameters:

  • options (Hash) (defaults to: {})

    The request params to retrieve the desired applogs

Returns:

  • (HTTParty::Response)

Requires APIKEY?:

  • Yes



11
12
13
# File 'lib/giraffi/client/applogs.rb', line 11

def find_applogs(options={})
  self.class.get("/applogs.json?apikey=#{apikey}", :query => options)
end