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.



1840
1841
1842
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1840

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)


1832
1833
1834
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1832

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)


1838
1839
1840
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1838

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



1845
1846
1847
1848
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1845

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