class Google::Apis::ContainerV1beta1::Metric

Progress metric is (string, int|float|string) pair.

Attributes

double_value[RW]

For metrics with floating point value. Corresponds to the JSON property `doubleValue` @return [Float]

int_value[RW]

For metrics with integer value. Corresponds to the JSON property `intValue` @return [Fixnum]

name[RW]

Required. Metric name, e.g., “nodes total”, “percent done”. Corresponds to the JSON property `name` @return [String]

string_value[RW]

For metrics with custom values (ratios, visual progress, etc.). Corresponds to the JSON property `stringValue` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/container_v1beta1/classes.rb, line 2783
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/container_v1beta1/classes.rb, line 2788
def update!(**args)
  @double_value = args[:double_value] if args.key?(:double_value)
  @int_value = args[:int_value] if args.key?(:int_value)
  @name = args[:name] if args.key?(:name)
  @string_value = args[:string_value] if args.key?(:string_value)
end