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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SystraceSetup

Returns a new instance of SystraceSetup.



2474
2475
2476
# File 'lib/google/apis/testing_v1/classes.rb', line 2474

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)


2472
2473
2474
# File 'lib/google/apis/testing_v1/classes.rb', line 2472

def duration_seconds
  @duration_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2479
2480
2481
# File 'lib/google/apis/testing_v1/classes.rb', line 2479

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