class GoodData::ExecutionDetail
Attributes
data[R]
dirty[R]
json[R]
Public Class Methods
new(json)
click to toggle source
Initializes object instance from raw wire JSON
@param json Json used for initialization
Calls superclass method
# File lib/gooddata/models/execution_detail.rb, line 18 def initialize(json) super @json = json end
Public Instance Methods
==(other)
click to toggle source
Compares two executions - based on their URI
# File lib/gooddata/models/execution_detail.rb, line 76 def ==(other) other.respond_to?(:uri) && other.uri == uri && other.respond_to?(:to_hash) && other.to_hash == to_hash end
created()
click to toggle source
Timestamp when execution was created
# File lib/gooddata/models/execution_detail.rb, line 24 def created Time.parse(json['executionDetail']['created']) end
error?()
click to toggle source
Has execution failed?
# File lib/gooddata/models/execution_detail.rb, line 29 def error? status == :error end
finished()
click to toggle source
Timestamp when execution was finished
# File lib/gooddata/models/execution_detail.rb, line 34 def finished Time.parse(json['executionDetail']['finished']) end
log()
click to toggle source
Log for execution
# File lib/gooddata/models/execution_detail.rb, line 39 def log @client.get(json['executionDetail']['links']['log']) end
log_filename()
click to toggle source
Filename of log
# File lib/gooddata/models/execution_detail.rb, line 44 def log_filename @client.get(json['executionDetail']['logFileName']) end
ok?()
click to toggle source
Is execution ok?
# File lib/gooddata/models/execution_detail.rb, line 49 def ok? status == :ok end
started()
click to toggle source
Timestamp when execution was started
# File lib/gooddata/models/execution_detail.rb, line 54 def started Time.parse(json['executionDetail']['started']) end
status()
click to toggle source
Status of execution
# File lib/gooddata/models/execution_detail.rb, line 59 def status json['executionDetail']['status'].downcase.to_sym end
updated()
click to toggle source
Timestamp when execution was updated
# File lib/gooddata/models/execution_detail.rb, line 64 def updated Time.parse(json['executionDetail']['updated']) end
uri()
click to toggle source
Returns URL
@return [String] Schedule
URL
# File lib/gooddata/models/execution_detail.rb, line 71 def uri @json['executionDetail']['links']['self'] if @json && @json['executionDetail'] && @json['executionDetail']['links'] end