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.



4274
4275
4276
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 4274

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)


4266
4267
4268
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 4266

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)


4272
4273
4274
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 4272

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



4279
4280
4281
4282
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 4279

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