Class: Zillabyte::API::Logs

Inherits:
Base
  • Object
show all
Defined in:
lib/zillabyte/api/logs.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #request

Constructor Details

This class inherits a constructor from Zillabyte::API::Base

Instance Method Details

#get(app_id, operation_id, options = {}, &block) ⇒ Object

GET /flows/ID/logs



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/zillabyte/api/logs.rb', line 7

def get(app_id, operation_id, options = {}, &block)
  
  options = {
  }.merge(options)
 
  res = @api.request({
    :expects  => 200,
    :method   => :get,
    :path     => "/flows/#{app_id}/logs",
    :body     => options.to_json
  }, &block)

  res.body

end

#get_startup(app_id, operation_id, options = {}, &block) ⇒ Object



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/zillabyte/api/logs.rb', line 25

def get_startup(app_id, operation_id, options = {}, &block)
  
  options = {
  }.merge(options)
 
  res = @api.request({
    :expects  => 200,
    :method   => :get,
    :path     => "/flows/#{app_id}/logs/#{operation_id}/startup",
    :body     => options.to_json
  }, &block)

  res.body

end