Class: KubeDSL::DSL::Autoscaling::V2::MetricTarget
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
27
28
29
|
# File 'lib/kube-dsl/dsl/autoscaling/v2/metric_target.rb', line 27
def kind_sym
:metric_target
end
|
#serialize ⇒ Object
18
19
20
21
22
23
24
25
|
# File 'lib/kube-dsl/dsl/autoscaling/v2/metric_target.rb', line 18
def serialize
{}.tap do |result|
result[:averageUtilization] = average_utilization
result[:averageValue] = average_value
result[:type] = type
result[:value] = value
end
end
|