class Pyrite::Api::Autoscaling::V2beta2::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/v2beta2/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::V2beta2::ExternalMetricSource? = nil, object : Api::Autoscaling::V2beta2::ObjectMetricSource? = nil, pods : Api::Autoscaling::V2beta2::PodsMetricSource? = nil, resource : Api::Autoscaling::V2beta2::ResourceMetricSource? = nil, type : String)
Instance Method Summary
- #external : Api::Autoscaling::V2beta2::ExternalMetricSource?
- #external=(external : Api::Autoscaling::V2beta2::ExternalMetricSource?)
- #object : Api::Autoscaling::V2beta2::ObjectMetricSource?
- #object=(object : Api::Autoscaling::V2beta2::ObjectMetricSource?)
- #pods : Api::Autoscaling::V2beta2::PodsMetricSource?
- #pods=(pods : Api::Autoscaling::V2beta2::PodsMetricSource?)
- #resource : Api::Autoscaling::V2beta2::ResourceMetricSource?
- #resource=(resource : Api::Autoscaling::V2beta2::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::V2beta2::ExternalMetricSource? = nil, object : Api::Autoscaling::V2beta2::ObjectMetricSource? = nil, pods : Api::Autoscaling::V2beta2::PodsMetricSource? = nil, resource : Api::Autoscaling::V2beta2::ResourceMetricSource? = nil, type : String)
#