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
 - YAML::Serializable
 
Defined in:
versions/v1.21/api/autoscaling/v2beta1/metric_spec.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
 - .new(pull : JSON::PullParser)
 - .new(*, type : String, container_resource : Api::Autoscaling::V2beta1::ContainerResourceMetricSource? = nil, 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
- #container_resource : Api::Autoscaling::V2beta1::ContainerResourceMetricSource?
 - #container_resource=(container_resource : Api::Autoscaling::V2beta1::ContainerResourceMetricSource?)
 - #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, container_resource : Api::Autoscaling::V2beta1::ContainerResourceMetricSource? = nil, 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 Detail
        
        def container_resource=(container_resource : Api::Autoscaling::V2beta1::ContainerResourceMetricSource?)
        #