Class: Google::Apis::DataflowV1b3::WorkItemDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb

Overview

Information about an individual work item execution.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkItemDetails

Returns a new instance of WorkItemDetails.



5951
5952
5953
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5951

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attempt_idString

Attempt ID of this work item Corresponds to the JSON property attemptId

Returns:

  • (String)


5918
5919
5920
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5918

def attempt_id
  @attempt_id
end

#end_timeString

End time of this work item attempt. If the work item is completed, this is the actual end time of the work item. Otherwise, it is the predicted end time. Corresponds to the JSON property endTime

Returns:

  • (String)


5924
5925
5926
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5924

def end_time
  @end_time
end

#metricsArray<Google::Apis::DataflowV1b3::MetricUpdate>

Metrics for this work item. Corresponds to the JSON property metrics



5929
5930
5931
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5929

def metrics
  @metrics
end

#progressGoogle::Apis::DataflowV1b3::ProgressTimeseries

Information about the progress of some component of job execution. Corresponds to the JSON property progress



5934
5935
5936
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5934

def progress
  @progress
end

#start_timeString

Start time of this work item attempt. Corresponds to the JSON property startTime

Returns:

  • (String)


5939
5940
5941
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5939

def start_time
  @start_time
end

#stateString

State of this work item. Corresponds to the JSON property state

Returns:

  • (String)


5944
5945
5946
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5944

def state
  @state
end

#task_idString

Name of this work item. Corresponds to the JSON property taskId

Returns:

  • (String)


5949
5950
5951
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5949

def task_id
  @task_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5956
5957
5958
5959
5960
5961
5962
5963
5964
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5956

def update!(**args)
  @attempt_id = args[:attempt_id] if args.key?(:attempt_id)
  @end_time = args[:end_time] if args.key?(:end_time)
  @metrics = args[:metrics] if args.key?(:metrics)
  @progress = args[:progress] if args.key?(:progress)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
  @task_id = args[:task_id] if args.key?(:task_id)
end