Class: Google::Apis::DataprocV1::TaskData

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

Data corresponding to tasks created by spark.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TaskData

Returns a new instance of TaskData.



10956
10957
10958
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10956

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

Instance Attribute Details

#accumulator_updatesArray<Google::Apis::DataprocV1::AccumulableInfo>

Corresponds to the JSON property accumulatorUpdates



10852
10853
10854
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10852

def accumulator_updates
  @accumulator_updates
end

#attemptFixnum

Corresponds to the JSON property attempt

Returns:

  • (Fixnum)


10857
10858
10859
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10857

def attempt
  @attempt
end

#duration_millisFixnum

Corresponds to the JSON property durationMillis

Returns:

  • (Fixnum)


10862
10863
10864
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10862

def duration_millis
  @duration_millis
end

#error_messageString

Corresponds to the JSON property errorMessage

Returns:

  • (String)


10867
10868
10869
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10867

def error_message
  @error_message
end

#executor_idString

Corresponds to the JSON property executorId

Returns:

  • (String)


10872
10873
10874
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10872

def executor_id
  @executor_id
end

#executor_logsHash<String,String>

Corresponds to the JSON property executorLogs

Returns:

  • (Hash<String,String>)


10877
10878
10879
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10877

def executor_logs
  @executor_logs
end

#getting_result_time_millisFixnum

Corresponds to the JSON property gettingResultTimeMillis

Returns:

  • (Fixnum)


10882
10883
10884
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10882

def getting_result_time_millis
  @getting_result_time_millis
end

#has_metricsBoolean Also known as: has_metrics?

Corresponds to the JSON property hasMetrics

Returns:

  • (Boolean)


10887
10888
10889
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10887

def has_metrics
  @has_metrics
end

#hostString

Corresponds to the JSON property host

Returns:

  • (String)


10893
10894
10895
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10893

def host
  @host
end

#indexFixnum

Corresponds to the JSON property index

Returns:

  • (Fixnum)


10898
10899
10900
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10898

def index
  @index
end

#launch_timeString

Corresponds to the JSON property launchTime

Returns:

  • (String)


10903
10904
10905
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10903

def launch_time
  @launch_time
end

#partition_idFixnum

Corresponds to the JSON property partitionId

Returns:

  • (Fixnum)


10908
10909
10910
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10908

def partition_id
  @partition_id
end

#result_fetch_startString

Corresponds to the JSON property resultFetchStart

Returns:

  • (String)


10913
10914
10915
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10913

def result_fetch_start
  @result_fetch_start
end

#scheduler_delay_millisFixnum

Corresponds to the JSON property schedulerDelayMillis

Returns:

  • (Fixnum)


10918
10919
10920
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10918

def scheduler_delay_millis
  @scheduler_delay_millis
end

#speculativeBoolean Also known as: speculative?

Corresponds to the JSON property speculative

Returns:

  • (Boolean)


10923
10924
10925
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10923

def speculative
  @speculative
end

#stage_attempt_idFixnum

Corresponds to the JSON property stageAttemptId

Returns:

  • (Fixnum)


10929
10930
10931
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10929

def stage_attempt_id
  @stage_attempt_id
end

#stage_idFixnum

Corresponds to the JSON property stageId

Returns:

  • (Fixnum)


10934
10935
10936
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10934

def stage_id
  @stage_id
end

#statusString

Corresponds to the JSON property status

Returns:

  • (String)


10939
10940
10941
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10939

def status
  @status
end

#task_idFixnum

Corresponds to the JSON property taskId

Returns:

  • (Fixnum)


10944
10945
10946
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10944

def task_id
  @task_id
end

#task_localityString

Corresponds to the JSON property taskLocality

Returns:

  • (String)


10949
10950
10951
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10949

def task_locality
  @task_locality
end

#task_metricsGoogle::Apis::DataprocV1::TaskMetrics

Executor Task Metrics Corresponds to the JSON property taskMetrics



10954
10955
10956
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10954

def task_metrics
  @task_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
# File 'lib/google/apis/dataproc_v1/classes.rb', line 10961

def update!(**args)
  @accumulator_updates = args[:accumulator_updates] if args.key?(:accumulator_updates)
  @attempt = args[:attempt] if args.key?(:attempt)
  @duration_millis = args[:duration_millis] if args.key?(:duration_millis)
  @error_message = args[:error_message] if args.key?(:error_message)
  @executor_id = args[:executor_id] if args.key?(:executor_id)
  @executor_logs = args[:executor_logs] if args.key?(:executor_logs)
  @getting_result_time_millis = args[:getting_result_time_millis] if args.key?(:getting_result_time_millis)
  @has_metrics = args[:has_metrics] if args.key?(:has_metrics)
  @host = args[:host] if args.key?(:host)
  @index = args[:index] if args.key?(:index)
  @launch_time = args[:launch_time] if args.key?(:launch_time)
  @partition_id = args[:partition_id] if args.key?(:partition_id)
  @result_fetch_start = args[:result_fetch_start] if args.key?(:result_fetch_start)
  @scheduler_delay_millis = args[:scheduler_delay_millis] if args.key?(:scheduler_delay_millis)
  @speculative = args[:speculative] if args.key?(:speculative)
  @stage_attempt_id = args[:stage_attempt_id] if args.key?(:stage_attempt_id)
  @stage_id = args[:stage_id] if args.key?(:stage_id)
  @status = args[:status] if args.key?(:status)
  @task_id = args[:task_id] if args.key?(:task_id)
  @task_locality = args[:task_locality] if args.key?(:task_locality)
  @task_metrics = args[:task_metrics] if args.key?(:task_metrics)
end