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.



1890
1891
1892
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1890

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)


1882
1883
1884
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1882

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)


1888
1889
1890
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1888

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



1895
1896
1897
1898
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1895

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