Class: Google::Apis::GkehubV1beta::MeteringMembershipState
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1beta::MeteringMembershipState
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/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.
3788 3789 3790 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3788 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
3780 3781 3782 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3780 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
3786 3787 3788 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3786 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
3793 3794 3795 3796 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3793 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 |