-
Notifications
You must be signed in to change notification settings - Fork 0
/
pods_metric_status.cr
31 lines (26 loc) · 1.29 KB
/
pods_metric_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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).
@[::K8S::Properties(
current_average_value: {type: Int32 | String, nilable: false, key: "currentAverageValue", getter: false, setter: false},
metric_name: {type: String, nilable: false, key: "metricName", getter: false, setter: false},
)]
class Api::Autoscaling::V2beta1::PodsMetricStatus
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)
@[::JSON::Field(key: "currentAverageValue", emit_null: true)]
@[::YAML::Field(key: "currentAverageValue", emit_null: true)]
property current_average_value : Int32 | String
# metricName is the name of the metric in question
@[::JSON::Field(key: "metricName", emit_null: true)]
@[::YAML::Field(key: "metricName", emit_null: true)]
property metric_name : String
def initialize(*, @current_average_value : Int32 | String, @metric_name : String)
end
end
end