class Pyrite::Api::Autoscaling::V2beta1::MetricSpec
Overview
MetricSpec specifies how to scale based on a single metric (only #type
and one other matching field should be set at once).
Defined in:
versions/v1.14/api/autoscaling/v2beta1/metric_spec.crConstructors
-
.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
MetricSpec specifies how to scale based on a single metric (only
#type
and one other matching field should be set at once). -
.new(pull : JSON::PullParser)
MetricSpec specifies how to scale based on a single metric (only
#type
and one other matching field should be set at once). - .new(*, external : Api::Autoscaling::V2beta1::ExternalMetricSource? = nil, object : Api::Autoscaling::V2beta1::ObjectMetricSource? = nil, pods : Api::Autoscaling::V2beta1::PodsMetricSource? = nil, resource : Api::Autoscaling::V2beta1::ResourceMetricSource? = nil, type : String)
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 methods inherited from class Pyrite::Kubernetes::Spec
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)new(pull : JSON::PullParser) new
Constructor Detail
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
#
MetricSpec specifies how to scale based on a single metric (only #type
and one other matching field should be set at once).
def self.new(pull : JSON::PullParser)
#
MetricSpec specifies how to scale based on a single metric (only #type
and one other matching field should be set at once).
def self.new(*, external : Api::Autoscaling::V2beta1::ExternalMetricSource? = nil, object : Api::Autoscaling::V2beta1::ObjectMetricSource? = nil, pods : Api::Autoscaling::V2beta1::PodsMetricSource? = nil, resource : Api::Autoscaling::V2beta1::ResourceMetricSource? = nil, type : String)
#