Class: Google::Apis::MigrationcenterV1alpha1::DailyResourceUsageAggregation
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::DailyResourceUsageAggregation
- 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
Usage data aggregation for a single day.
Instance Attribute Summary collapse
-
#cpu ⇒ Google::Apis::MigrationcenterV1alpha1::DailyResourceUsageAggregationCpu
Statistical aggregation of CPU usage.
-
#date ⇒ Google::Apis::MigrationcenterV1alpha1::Date
Represents a whole or partial calendar date, such as a birthday.
-
#disk ⇒ Google::Apis::MigrationcenterV1alpha1::DailyResourceUsageAggregationDisk
Statistical aggregation of disk usage.
-
#memory ⇒ Google::Apis::MigrationcenterV1alpha1::DailyResourceUsageAggregationMemory
Statistical aggregation of memory usage.
-
#network ⇒ Google::Apis::MigrationcenterV1alpha1::DailyResourceUsageAggregationNetwork
Statistical aggregation of network usage.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DailyResourceUsageAggregation
constructor
A new instance of DailyResourceUsageAggregation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DailyResourceUsageAggregation
Returns a new instance of DailyResourceUsageAggregation.
2026 2027 2028 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2026 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu ⇒ Google::Apis::MigrationcenterV1alpha1::DailyResourceUsageAggregationCpu
Statistical aggregation of CPU usage.
Corresponds to the JSON property cpu
1997 1998 1999 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1997 def cpu @cpu end |
#date ⇒ Google::Apis::MigrationcenterV1alpha1::Date
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values. * A month
and day, with a zero year (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property date
2009 2010 2011 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2009 def date @date end |
#disk ⇒ Google::Apis::MigrationcenterV1alpha1::DailyResourceUsageAggregationDisk
Statistical aggregation of disk usage.
Corresponds to the JSON property disk
2014 2015 2016 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2014 def disk @disk end |
#memory ⇒ Google::Apis::MigrationcenterV1alpha1::DailyResourceUsageAggregationMemory
Statistical aggregation of memory usage.
Corresponds to the JSON property memory
2019 2020 2021 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2019 def memory @memory end |
#network ⇒ Google::Apis::MigrationcenterV1alpha1::DailyResourceUsageAggregationNetwork
Statistical aggregation of network usage.
Corresponds to the JSON property network
2024 2025 2026 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2024 def network @network end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2031 2032 2033 2034 2035 2036 2037 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2031 def update!(**args) @cpu = args[:cpu] if args.key?(:cpu) @date = args[:date] if args.key?(:date) @disk = args[:disk] if args.key?(:disk) @memory = args[:memory] if args.key?(:memory) @network = args[:network] if args.key?(:network) end |