Class: Google::Apis::TestingV1::SystraceSetup

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

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) ⇒ SystraceSetup

Returns a new instance of SystraceSetup.



1916
1917
1918
# File 'generated/google/apis/testing_v1/classes.rb', line 1916

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

Instance Attribute Details

#duration_secondsFixnum

Systrace duration in seconds. Should be between 1 and 30 seconds. 0 disables systrace. Corresponds to the JSON property durationSeconds

Returns:

  • (Fixnum)


1914
1915
1916
# File 'generated/google/apis/testing_v1/classes.rb', line 1914

def duration_seconds
  @duration_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1921
1922
1923
# File 'generated/google/apis/testing_v1/classes.rb', line 1921

def update!(**args)
  @duration_seconds = args[:duration_seconds] if args.key?(:duration_seconds)
end