-
Notifications
You must be signed in to change notification settings - Fork 0
/
object_metric_status.cr
34 lines (28 loc) · 1.68 KB
/
object_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
32
33
34
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
@[::K8S::Properties(
current: {type: Api::Autoscaling::V2beta2::MetricValueStatus, nilable: false, key: "current", getter: false, setter: false},
described_object: {type: Api::Autoscaling::V2beta2::CrossVersionObjectReference, nilable: false, key: "describedObject", getter: false, setter: false},
metric: {type: Api::Autoscaling::V2beta2::MetricIdentifier, nilable: false, key: "metric", getter: false, setter: false},
)]
class Api::Autoscaling::V2beta2::ObjectMetricStatus
include ::JSON::Serializable
include ::YAML::Serializable
# current contains the current value for the given metric
@[::JSON::Field(key: "current", emit_null: true)]
@[::YAML::Field(key: "current", emit_null: true)]
property current : Api::Autoscaling::V2beta2::MetricValueStatus
@[::JSON::Field(key: "describedObject", emit_null: true)]
@[::YAML::Field(key: "describedObject", emit_null: true)]
property described_object : Api::Autoscaling::V2beta2::CrossVersionObjectReference
# 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
def initialize(*, @current : Api::Autoscaling::V2beta2::MetricValueStatus, @described_object : Api::Autoscaling::V2beta2::CrossVersionObjectReference, @metric : Api::Autoscaling::V2beta2::MetricIdentifier)
end
end
end