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.



11265
11266
11267
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11265

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

Instance Attribute Details

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

Corresponds to the JSON property accumulatorUpdates



11161
11162
11163
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11161

def accumulator_updates
  @accumulator_updates
end

#attemptFixnum

Corresponds to the JSON property attempt

Returns:

  • (Fixnum)


11166
11167
11168
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11166

def attempt
  @attempt
end

#duration_millisFixnum

Corresponds to the JSON property durationMillis

Returns:

  • (Fixnum)


11171
11172
11173
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11171

def duration_millis
  @duration_millis
end

#error_messageString

Corresponds to the JSON property errorMessage

Returns:

  • (String)


11176
11177
11178
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11176

def error_message
  @error_message
end

#executor_idString

Corresponds to the JSON property executorId

Returns:

  • (String)


11181
11182
11183
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11181

def executor_id
  @executor_id
end

#executor_logsHash<String,String>

Corresponds to the JSON property executorLogs

Returns:

  • (Hash<String,String>)


11186
11187
11188
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11186

def executor_logs
  @executor_logs
end

#getting_result_time_millisFixnum

Corresponds to the JSON property gettingResultTimeMillis

Returns:

  • (Fixnum)


11191
11192
11193
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11191

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)


11196
11197
11198
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11196

def has_metrics
  @has_metrics
end

#hostString

Corresponds to the JSON property host

Returns:

  • (String)


11202
11203
11204
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11202

def host
  @host
end

#indexFixnum

Corresponds to the JSON property index

Returns:

  • (Fixnum)


11207
11208
11209
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11207

def index
  @index
end

#launch_timeString

Corresponds to the JSON property launchTime

Returns:

  • (String)


11212
11213
11214
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11212

def launch_time
  @launch_time
end

#partition_idFixnum

Corresponds to the JSON property partitionId

Returns:

  • (Fixnum)


11217
11218
11219
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11217

def partition_id
  @partition_id
end

#result_fetch_startString

Corresponds to the JSON property resultFetchStart

Returns:

  • (String)


11222
11223
11224
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11222

def result_fetch_start
  @result_fetch_start
end

#scheduler_delay_millisFixnum

Corresponds to the JSON property schedulerDelayMillis

Returns:

  • (Fixnum)


11227
11228
11229
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11227

def scheduler_delay_millis
  @scheduler_delay_millis
end

#speculativeBoolean Also known as: speculative?

Corresponds to the JSON property speculative

Returns:

  • (Boolean)


11232
11233
11234
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11232

def speculative
  @speculative
end

#stage_attempt_idFixnum

Corresponds to the JSON property stageAttemptId

Returns:

  • (Fixnum)


11238
11239
11240
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11238

def stage_attempt_id
  @stage_attempt_id
end

#stage_idFixnum

Corresponds to the JSON property stageId

Returns:

  • (Fixnum)


11243
11244
11245
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11243

def stage_id
  @stage_id
end

#statusString

Corresponds to the JSON property status

Returns:

  • (String)


11248
11249
11250
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11248

def status
  @status
end

#task_idFixnum

Corresponds to the JSON property taskId

Returns:

  • (Fixnum)


11253
11254
11255
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11253

def task_id
  @task_id
end

#task_localityString

Corresponds to the JSON property taskLocality

Returns:

  • (String)


11258
11259
11260
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11258

def task_locality
  @task_locality
end

#task_metricsGoogle::Apis::DataprocV1::TaskMetrics

Executor Task Metrics Corresponds to the JSON property taskMetrics



11263
11264
11265
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11263

def task_metrics
  @task_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
# File 'lib/google/apis/dataproc_v1/classes.rb', line 11270

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