class K8S::Api::Autoscaling::V2beta1::ObjectMetricSource
- K8S::Api::Autoscaling::V2beta1::ObjectMetricSource
- Reference
- Object
Overview
ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
versions/v1.23/api/autoscaling/v2beta1/object_metric_source.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, metric_name : String, target : Api::Autoscaling::V2beta1::CrossVersionObjectReference, target_value : Int32 | String, average_value : Int32 | String | Nil = nil, selector : Apimachinery::Apis::Meta::V1::LabelSelector? = nil)
Instance Method Summary
- #average_value : Int32 | String | Nil
- #average_value=(average_value : Int32 | String | Nil)
- #metric_name : String
- #metric_name=(metric_name : String)
- #selector : Apimachinery::Apis::Meta::V1::LabelSelector?
- #selector=(selector : Apimachinery::Apis::Meta::V1::LabelSelector?)
- #target : Api::Autoscaling::V2beta1::CrossVersionObjectReference
- #target=(target : Api::Autoscaling::V2beta1::CrossVersionObjectReference)
- #target_value : Int32 | String
- #target_value=(target_value : Int32 | String)
Constructor Detail
def self.new(*, metric_name : String, target : Api::Autoscaling::V2beta1::CrossVersionObjectReference, target_value : Int32 | String, average_value : Int32 | String | Nil = nil, selector : Apimachinery::Apis::Meta::V1::LabelSelector? = nil)
#