class K8S::Api::Autoscaling::V2::MetricSpec
- K8S::Api::Autoscaling::V2::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.23/api/autoscaling/v2/metric_spec.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, type : String, container_resource : Api::Autoscaling::V2::ContainerResourceMetricSource? = nil, external : Api::Autoscaling::V2::ExternalMetricSource? = nil, object : Api::Autoscaling::V2::ObjectMetricSource? = nil, pods : Api::Autoscaling::V2::PodsMetricSource? = nil, resource : Api::Autoscaling::V2::ResourceMetricSource? = nil)
Instance Method Summary
- #container_resource : Api::Autoscaling::V2::ContainerResourceMetricSource?
- #container_resource=(container_resource : Api::Autoscaling::V2::ContainerResourceMetricSource?)
- #external : Api::Autoscaling::V2::ExternalMetricSource?
- #external=(external : Api::Autoscaling::V2::ExternalMetricSource?)
- #object : Api::Autoscaling::V2::ObjectMetricSource?
- #object=(object : Api::Autoscaling::V2::ObjectMetricSource?)
- #pods : Api::Autoscaling::V2::PodsMetricSource?
- #pods=(pods : Api::Autoscaling::V2::PodsMetricSource?)
- #resource : Api::Autoscaling::V2::ResourceMetricSource?
- #resource=(resource : Api::Autoscaling::V2::ResourceMetricSource?)
- #type : String
- #type=(type : String)
Constructor Detail
def self.new(*, type : String, container_resource : Api::Autoscaling::V2::ContainerResourceMetricSource? = nil, external : Api::Autoscaling::V2::ExternalMetricSource? = nil, object : Api::Autoscaling::V2::ObjectMetricSource? = nil, pods : Api::Autoscaling::V2::PodsMetricSource? = nil, resource : Api::Autoscaling::V2::ResourceMetricSource? = nil)
#
Instance Method Detail
def container_resource=(container_resource : Api::Autoscaling::V2::ContainerResourceMetricSource?)
#