class Hodor::Oozie::Action
Attributes
console_url[R]
cred[R]
data[R]
end_time[R]
error_code[R]
error_message[R]
external_child_ids[R]
external_id[R]
external_status[R]
json[R]
name[R]
parent_id[R]
retries[R]
start_time[R]
status[R]
to_string[R]
tracker_url[R]
transition[R]
type[R]
Public Class Methods
default_columns()
click to toggle source
# File lib/hodor/api/oozie/action.rb, line 10 def default_columns [:index, :id, :name, :status, :created_at, :nominal_time] end
new(json)
click to toggle source
Calls superclass method
# File lib/hodor/api/oozie/action.rb, line 15 def initialize(json) super() @json = json @error_message = json["errorMessage"] @status = json["status"] @stats = json["stats"] @data = json["data"] @transition = json["transition"] @external_status = json["externalStatus"] @cred = json["cred"] @conf = json["conf"] @type = json["type"] @end_time = parse_time json["endTime"] @external_id = json["externalId"] @id = json["id"] @start_time = parse_time json["startTime"] @external_child_ids = json["externalChildIDs"] @name = json["name"] @error_code = json["errorCode"] @tracker_url = json["trackerUri"] @retries = json["retries"] @to_string = json["toString"] @console_url = json["consoleUrl"] @parent_id = @id[0..@id.index('@')-1] end
Public Instance Methods
expand()
click to toggle source
# File lib/hodor/api/oozie/action.rb, line 42 def expand if @external_id && !@external_id.eql?('-') [ oozie.job_by_id(@external_id) ] else nil end end