-
Notifications
You must be signed in to change notification settings - Fork 0
/
object_metric_status.cr
47 lines (39 loc) · 2.63 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
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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(
average_value: {type: Int32 | String, nilable: true, key: "averageValue", getter: false, setter: false},
current_value: {type: Int32 | String, nilable: false, key: "currentValue", getter: false, setter: false},
metric_name: {type: String, nilable: false, key: "metricName", getter: false, setter: false},
selector: {type: Apimachinery::Apis::Meta::V1::LabelSelector, nilable: true, key: "selector", getter: false, setter: false},
target: {type: Api::Autoscaling::V2beta1::CrossVersionObjectReference, nilable: false, key: "target", getter: false, setter: false},
)]
class Api::Autoscaling::V2beta1::ObjectMetricStatus
include ::JSON::Serializable
include ::YAML::Serializable
# 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
# currentValue is the current value of the metric (as a quantity).
@[::JSON::Field(key: "currentValue", emit_null: true)]
@[::YAML::Field(key: "currentValue", emit_null: true)]
property current_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
# selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.
@[::JSON::Field(key: "selector", emit_null: false)]
@[::YAML::Field(key: "selector", emit_null: false)]
property selector : Apimachinery::Apis::Meta::V1::LabelSelector | Nil
# target is the described Kubernetes object.
@[::JSON::Field(key: "target", emit_null: true)]
@[::YAML::Field(key: "target", emit_null: true)]
property target : Api::Autoscaling::V2beta1::CrossVersionObjectReference
def initialize(*, @current_value : Int32 | String, @metric_name : String, @target : Api::Autoscaling::V2beta1::CrossVersionObjectReference, @average_value : Int32 | String | Nil = nil, @selector : Apimachinery::Apis::Meta::V1::LabelSelector | Nil = nil)
end
end
end