class K8S::Api::Autoscaling::V2beta1::MetricSpec
- K8S::Api::Autoscaling::V2beta1::MetricSpec
- Reference
- Object
Overview
MetricSpec specifies how to scale based on a single metric (only #type
and one other matching field should be set at once).
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.13/api/autoscaling/v2beta1/metric_spec.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, type : String, external : Api::Autoscaling::V2beta1::ExternalMetricSource? = nil, object : Api::Autoscaling::V2beta1::ObjectMetricSource? = nil, pods : Api::Autoscaling::V2beta1::PodsMetricSource? = nil, resource : Api::Autoscaling::V2beta1::ResourceMetricSource? = nil)
Instance Method Summary
- #external : Api::Autoscaling::V2beta1::ExternalMetricSource?
- #external=(external : Api::Autoscaling::V2beta1::ExternalMetricSource?)
- #object : Api::Autoscaling::V2beta1::ObjectMetricSource?
- #object=(object : Api::Autoscaling::V2beta1::ObjectMetricSource?)
- #pods : Api::Autoscaling::V2beta1::PodsMetricSource?
- #pods=(pods : Api::Autoscaling::V2beta1::PodsMetricSource?)
- #resource : Api::Autoscaling::V2beta1::ResourceMetricSource?
- #resource=(resource : Api::Autoscaling::V2beta1::ResourceMetricSource?)
- #type : String
- #type=(type : String)
Constructor Detail
def self.new(*, type : String, external : Api::Autoscaling::V2beta1::ExternalMetricSource? = nil, object : Api::Autoscaling::V2beta1::ObjectMetricSource? = nil, pods : Api::Autoscaling::V2beta1::PodsMetricSource? = nil, resource : Api::Autoscaling::V2beta1::ResourceMetricSource? = nil)
#