-
Notifications
You must be signed in to change notification settings - Fork 0
/
metric_value_status.cr
35 lines (29 loc) · 1.62 KB
/
metric_value_status.cr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# MetricValueStatus holds the current value for a metric
@[::K8S::Properties(
average_utilization: {type: Int32, nilable: true, key: "averageUtilization", getter: false, setter: false},
average_value: {type: Int32 | String, nilable: true, key: "averageValue", getter: false, setter: false},
value: {type: Int32 | String, nilable: true, key: "value", getter: false, setter: false},
)]
class Api::Autoscaling::V2beta2::MetricValueStatus
include ::JSON::Serializable
include ::YAML::Serializable
# currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.
@[::JSON::Field(key: "averageUtilization", emit_null: false)]
@[::YAML::Field(key: "averageUtilization", emit_null: false)]
property average_utilization : Int32 | Nil
# averageValue is the current value of the average of the metric across all relevant pods (as a quantity)
@[::JSON::Field(key: "averageValue", emit_null: false)]
@[::YAML::Field(key: "averageValue", emit_null: false)]
property average_value : Int32 | String | Nil
# value is the current value of the metric (as a quantity).
@[::JSON::Field(key: "value", emit_null: false)]
@[::YAML::Field(key: "value", emit_null: false)]
property value : Int32 | String | Nil
def initialize(*, @average_utilization : Int32 | Nil = nil, @average_value : Int32 | String | Nil = nil, @value : Int32 | String | Nil = nil)
end
end
end