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.
2423 2424 2425 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2423 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
2415 2416 2417 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2415 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
2421 2422 2423 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2421 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
2428 2429 2430 2431 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2428 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 |