Class: Google::Apis::ToolresultsV1beta3::PerfEnvironment

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

Overview

Encapsulates performance environment info

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PerfEnvironment

Returns a new instance of PerfEnvironment.



2100
2101
2102
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2100

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

Instance Attribute Details

#cpu_infoGoogle::Apis::ToolresultsV1beta3::CpuInfo

CPU related environment info Corresponds to the JSON property cpuInfo



2093
2094
2095
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2093

def cpu_info
  @cpu_info
end

#memory_infoGoogle::Apis::ToolresultsV1beta3::MemoryInfo

Memory related environment info Corresponds to the JSON property memoryInfo



2098
2099
2100
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2098

def memory_info
  @memory_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2105
2106
2107
2108
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2105

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