Class: Google::Apis::GkehubV2::MeteringState

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v2/classes.rb,
lib/google/apis/gkehub_v2/representations.rb,
lib/google/apis/gkehub_v2/representations.rb

Overview

Metering: State for a single membership, analyzed and reported by feature controller.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MeteringState

Returns a new instance of MeteringState.



2456
2457
2458
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2456

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)


2448
2449
2450
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2448

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)


2454
2455
2456
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2454

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



2461
2462
2463
2464
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2461

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