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.



2527
2528
2529
# File 'lib/google/apis/testing_v1/classes.rb', line 2527

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)


2525
2526
2527
# File 'lib/google/apis/testing_v1/classes.rb', line 2525

def duration_seconds
  @duration_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2532
2533
2534
# File 'lib/google/apis/testing_v1/classes.rb', line 2532

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