Class: PlatformAPI::LogSession

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

A log session is a reference to the http based log stream for an app.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ LogSession

Returns a new instance of LogSession.



2141
2142
2143
# File 'lib/platform-api/client.rb', line 2141

def initialize(client)
  @client = client
end

Instance Method Details

#create(app_id_or_app_name, body = {}) ⇒ Object

Create a new log session.

Parameters:

  • app_id_or_app_name:

    unique identifier of app or unique name of app

  • body:

    the object to pass as the request payload



2149
2150
2151
# File 'lib/platform-api/client.rb', line 2149

def create(app_id_or_app_name, body = {})
  @client.log_session.create(app_id_or_app_name, body)
end