Class: Google::Apis::GkehubV1beta::MeteringMembershipState

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MeteringMembershipState

Returns a new instance of MeteringMembershipState.



3848
3849
3850
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3848

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#last_measurement_timeString

The time stamp of the most recent measurement of the number of vCPUs in the cluster. Corresponds to the JSON property lastMeasurementTime

Returns:

  • (String)


3840
3841
3842
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3840

def last_measurement_time
  @last_measurement_time
end

#precise_last_measured_cluster_vcpu_capacityFloat

The vCPUs capacity in the cluster according to the most recent measurement (1/ 1000 precision). Corresponds to the JSON property preciseLastMeasuredClusterVcpuCapacity

Returns:

  • (Float)


3846
3847
3848
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3846

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



3853
3854
3855
3856
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3853

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