Class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildbotCommandDurations

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

Overview

CommandDuration contains the various duration metrics tracked when a bot performs a command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemotebuildbotCommandDurations

Returns a new instance of GoogleDevtoolsRemotebuildbotCommandDurations



1495
1496
1497
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1495

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

Instance Attribute Details

#docker_prepString

The time spent preparing the command to be run in a Docker container (includes pulling the Docker image, if necessary). Corresponds to the JSON property dockerPrep

Returns:

  • (String)


1462
1463
1464
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1462

def docker_prep
  @docker_prep
end

#downloadString

The time spent downloading the input files and constructing the working directory. Corresponds to the JSON property download

Returns:

  • (String)


1468
1469
1470
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1468

def download
  @download
end

#executionString

The time spent executing the command (i.e., doing useful work). Corresponds to the JSON property execution

Returns:

  • (String)


1473
1474
1475
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1473

def execution
  @execution
end

#iso_prep_doneString

The timestamp when preparation is done and bot starts downloading files. Corresponds to the JSON property isoPrepDone

Returns:

  • (String)


1478
1479
1480
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1478

def iso_prep_done
  @iso_prep_done
end

#overallString

The time spent completing the command, in total. Corresponds to the JSON property overall

Returns:

  • (String)


1483
1484
1485
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1483

def overall
  @overall
end

#stdoutString

The time spent uploading the stdout logs. Corresponds to the JSON property stdout

Returns:

  • (String)


1488
1489
1490
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1488

def stdout
  @stdout
end

#uploadString

The time spent uploading the output files. Corresponds to the JSON property upload

Returns:

  • (String)


1493
1494
1495
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1493

def upload
  @upload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1500
1501
1502
1503
1504
1505
1506
1507
1508
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1500

def update!(**args)
  @docker_prep = args[:docker_prep] if args.key?(:docker_prep)
  @download = args[:download] if args.key?(:download)
  @execution = args[:execution] if args.key?(:execution)
  @iso_prep_done = args[:iso_prep_done] if args.key?(:iso_prep_done)
  @overall = args[:overall] if args.key?(:overall)
  @stdout = args[:stdout] if args.key?(:stdout)
  @upload = args[:upload] if args.key?(:upload)
end