Class: UU::Logstore::Log
- Inherits:
-
Object
- Object
- UU::Logstore::Log
- Defined in:
- lib/uu/logstore/log.rb
Overview
Log is a stream of aggregated, time-ordered events collected from the output streams of uuApps.
Class Method Summary collapse
-
.get_log_list(app_deployment_uri, parameters = {}) ⇒ Hash
deprecated
Deprecated.
Use Log.get_record_list instead.
-
.get_record_list(app_deployment_uri, parameters = {}) ⇒ Hash
Returns a list of records from the specified log.
Instance Method Summary collapse
-
#get_log_list(app_deployment_uri, parameters = {}) ⇒ Hash
deprecated
Deprecated.
Use #get_record_list instead.
-
#get_record_list(app_deployment_uri, criteria = {}) ⇒ Hash
Returns a list of records from the specified log.
-
#initialize(session = nil) ⇒ Log
constructor
Creates a new instance of
Log
.
Constructor Details
Class Method Details
.get_log_list(app_deployment_uri, parameters = {}) ⇒ Hash
Deprecated.
Use get_record_list instead.
Returns a list of messages from the specified log. This method is a convenience shortcut for the #get_log_list instance method.
116 117 118 |
# File 'lib/uu/logstore/log.rb', line 116 def self.get_log_list(app_deployment_uri, parameters = {}) self.new(UU::OS::Security::Session.current_session).get_log_list(app_deployment_uri, parameters) end |
.get_record_list(app_deployment_uri, parameters = {}) ⇒ Hash
Returns a list of records from the specified log. This method is a convenience shortcut for the #get_record_list instance method.
239 240 241 |
# File 'lib/uu/logstore/log.rb', line 239 def self.get_record_list(app_deployment_uri, parameters = {}) self.new(UU::OS::Security::Session.current_session).get_record_list(app_deployment_uri, parameters) end |
Instance Method Details
#get_log_list(app_deployment_uri, parameters = {}) ⇒ Hash
Deprecated.
Use #get_record_list instead.
Returns a list of messages from the specified log.
98 99 100 |
# File 'lib/uu/logstore/log.rb', line 98 def get_log_list(app_deployment_uri, parameters = {}) @client.invoke("Log/getLogList", app_deployment_uri, parameters: parameters) end |
#get_record_list(app_deployment_uri, criteria = {}) ⇒ Hash
Returns a list of records from the specified log.
218 219 220 221 222 |
# File 'lib/uu/logstore/log.rb', line 218 def get_record_list(app_deployment_uri, criteria = {}) criteria[:to] = _try_parse_time(criteria[:to]) criteria[:from] = _try_parse_time(criteria[:from]) @client.invoke("Log/getRecordList", app_deployment_uri, parameters: criteria) end |