Class: Google::Apis::DataprocV1::SpeculationStageSummary

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

Overview

Details of the speculation task when speculative execution is enabled.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SpeculationStageSummary

Returns a new instance of SpeculationStageSummary.



9691
9692
9693
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9691

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

Instance Attribute Details

#num_active_tasksFixnum

Corresponds to the JSON property numActiveTasks

Returns:

  • (Fixnum)


9659
9660
9661
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9659

def num_active_tasks
  @num_active_tasks
end

#num_completed_tasksFixnum

Corresponds to the JSON property numCompletedTasks

Returns:

  • (Fixnum)


9664
9665
9666
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9664

def num_completed_tasks
  @num_completed_tasks
end

#num_failed_tasksFixnum

Corresponds to the JSON property numFailedTasks

Returns:

  • (Fixnum)


9669
9670
9671
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9669

def num_failed_tasks
  @num_failed_tasks
end

#num_killed_tasksFixnum

Corresponds to the JSON property numKilledTasks

Returns:

  • (Fixnum)


9674
9675
9676
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9674

def num_killed_tasks
  @num_killed_tasks
end

#num_tasksFixnum

Corresponds to the JSON property numTasks

Returns:

  • (Fixnum)


9679
9680
9681
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9679

def num_tasks
  @num_tasks
end

#stage_attempt_idFixnum

Corresponds to the JSON property stageAttemptId

Returns:

  • (Fixnum)


9684
9685
9686
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9684

def stage_attempt_id
  @stage_attempt_id
end

#stage_idFixnum

Corresponds to the JSON property stageId

Returns:

  • (Fixnum)


9689
9690
9691
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9689

def stage_id
  @stage_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9696
9697
9698
9699
9700
9701
9702
9703
9704
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9696

def update!(**args)
  @num_active_tasks = args[:num_active_tasks] if args.key?(:num_active_tasks)
  @num_completed_tasks = args[:num_completed_tasks] if args.key?(:num_completed_tasks)
  @num_failed_tasks = args[:num_failed_tasks] if args.key?(:num_failed_tasks)
  @num_killed_tasks = args[:num_killed_tasks] if args.key?(:num_killed_tasks)
  @num_tasks = args[:num_tasks] if args.key?(:num_tasks)
  @stage_attempt_id = args[:stage_attempt_id] if args.key?(:stage_attempt_id)
  @stage_id = args[:stage_id] if args.key?(:stage_id)
end