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
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.11/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)
Instance Method Summary
- #metric_name : String
- #metric_name=(metric_name : String)
- #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)
#