Class: Google::Apis::GkehubV2alpha::MeteringState
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV2alpha::MeteringState
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v2alpha/classes.rb,
lib/google/apis/gkehub_v2alpha/representations.rb,
lib/google/apis/gkehub_v2alpha/representations.rb
Overview
Metering: State for a single membership, analyzed and reported by feature controller.
Instance Attribute Summary collapse
-
#last_measurement_time ⇒ String
The time stamp of the most recent measurement of the number of vCPUs in the cluster.
-
#precise_last_measured_cluster_vcpu_capacity ⇒ Float
The vCPUs capacity in the cluster according to the most recent measurement (1/ 1000 precision).
Instance Method Summary collapse
-
#initialize(**args) ⇒ MeteringState
constructor
A new instance of MeteringState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MeteringState
Returns a new instance of MeteringState.
2418 2419 2420 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2418 def initialize(**args) update!(**args) end |
Instance Attribute Details
#last_measurement_time ⇒ String
The time stamp of the most recent measurement of the number of vCPUs in the
cluster.
Corresponds to the JSON property lastMeasurementTime
2410 2411 2412 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2410 def last_measurement_time @last_measurement_time end |
#precise_last_measured_cluster_vcpu_capacity ⇒ Float
The vCPUs capacity in the cluster according to the most recent measurement (1/
1000 precision).
Corresponds to the JSON property preciseLastMeasuredClusterVcpuCapacity
2416 2417 2418 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2416 def precise_last_measured_cluster_vcpu_capacity @precise_last_measured_cluster_vcpu_capacity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2423 2424 2425 2426 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2423 def update!(**args) @last_measurement_time = args[:last_measurement_time] if args.key?(:last_measurement_time) @precise_last_measured_cluster_vcpu_capacity = args[:precise_last_measured_cluster_vcpu_capacity] if args.key?(:precise_last_measured_cluster_vcpu_capacity) end |