Class: VersSdk::VmExecLogEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/vers_sdk/models.rb

Overview

Individual log entry describing emitted stdout/stderr chunk.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_json(json_str) ⇒ Object



588
589
590
591
# File 'lib/vers_sdk/models.rb', line 588

def self.from_json(json_str)
  obj = json_str.is_a?(String) ? JSON.parse(json_str) : json_str
  new(obj)
end

Instance Method Details

#to_hObject



593
594
595
596
597
598
599
600
# File 'lib/vers_sdk/models.rb', line 593

def to_h
  {
    "data_b64" => @vm_exec_log_entry,
    "exec_id" => @vm_exec_log_entry,
    "stream" => @vm_exec_log_entry,
    "timestamp" => @vm_exec_log_entry,
  }
end

#to_json(*args) ⇒ Object



602
603
604
# File 'lib/vers_sdk/models.rb', line 602

def to_json(*args)
  to_h.to_json(*args)
end