-
Notifications
You must be signed in to change notification settings - Fork 0
/
pods_metric_source.cr
29 lines (24 loc) · 1.31 KB
/
pods_metric_source.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
@[::K8S::Properties(
metric: {type: Api::Autoscaling::V2beta2::MetricIdentifier, nilable: false, key: "metric", getter: false, setter: false},
target: {type: Api::Autoscaling::V2beta2::MetricTarget, nilable: false, key: "target", getter: false, setter: false},
)]
class Api::Autoscaling::V2beta2::PodsMetricSource
include ::JSON::Serializable
include ::YAML::Serializable
# metric identifies the target metric by name and selector
@[::JSON::Field(key: "metric", emit_null: true)]
@[::YAML::Field(key: "metric", emit_null: true)]
property metric : Api::Autoscaling::V2beta2::MetricIdentifier
# target specifies the target value for the given metric
@[::JSON::Field(key: "target", emit_null: true)]
@[::YAML::Field(key: "target", emit_null: true)]
property target : Api::Autoscaling::V2beta2::MetricTarget
def initialize(*, @metric : Api::Autoscaling::V2beta2::MetricIdentifier, @target : Api::Autoscaling::V2beta2::MetricTarget)
end
end
end