Class: Google::Apis::MigrationcenterV1alpha1::PerformanceSample
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::PerformanceSample
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb
Overview
Performance data sample.
Instance Attribute Summary collapse
-
#cpu ⇒ Google::Apis::MigrationcenterV1alpha1::CpuUsageSample
CPU usage sample.
-
#disk ⇒ Google::Apis::MigrationcenterV1alpha1::DiskUsageSample
Disk usage sample.
-
#memory ⇒ Google::Apis::MigrationcenterV1alpha1::MemoryUsageSample
Memory usage sample.
-
#network ⇒ Google::Apis::MigrationcenterV1alpha1::NetworkUsageSample
Network usage sample.
-
#sample_time ⇒ String
Time the sample was collected.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PerformanceSample
constructor
A new instance of PerformanceSample.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PerformanceSample
Returns a new instance of PerformanceSample.
2180 2181 2182 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2180 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu ⇒ Google::Apis::MigrationcenterV1alpha1::CpuUsageSample
CPU usage sample.
Corresponds to the JSON property cpu
2158 2159 2160 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2158 def cpu @cpu end |
#disk ⇒ Google::Apis::MigrationcenterV1alpha1::DiskUsageSample
Disk usage sample. Values are across all disks.
Corresponds to the JSON property disk
2163 2164 2165 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2163 def disk @disk end |
#memory ⇒ Google::Apis::MigrationcenterV1alpha1::MemoryUsageSample
Memory usage sample.
Corresponds to the JSON property memory
2168 2169 2170 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2168 def memory @memory end |
#network ⇒ Google::Apis::MigrationcenterV1alpha1::NetworkUsageSample
Network usage sample. Values are across all network interfaces.
Corresponds to the JSON property network
2173 2174 2175 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2173 def network @network end |
#sample_time ⇒ String
Time the sample was collected.
Corresponds to the JSON property sampleTime
2178 2179 2180 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2178 def sample_time @sample_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2185 2186 2187 2188 2189 2190 2191 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2185 def update!(**args) @cpu = args[:cpu] if args.key?(:cpu) @disk = args[:disk] if args.key?(:disk) @memory = args[:memory] if args.key?(:memory) @network = args[:network] if args.key?(:network) @sample_time = args[:sample_time] if args.key?(:sample_time) end |