Class: Google::Apis::GkehubV1alpha::MeteringMembershipState
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::MeteringMembershipState
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/representations.rb
Overview
Metering: Per-Membership Feature State.
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) ⇒ MeteringMembershipState
constructor
A new instance of MeteringMembershipState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MeteringMembershipState
Returns a new instance of MeteringMembershipState.
4537 4538 4539 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4537 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
4529 4530 4531 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4529 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
4535 4536 4537 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4535 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
4542 4543 4544 4545 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4542 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 |