class Pyrite::Api::Autoscaling::V2beta1::PodsMetricSource
Overview
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
Defined in:
versions/v1.14/api/autoscaling/v2beta1/pods_metric_source.crConstructors
-
.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second).
-
.new(pull : JSON::PullParser)
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second).
- .new(*, metric_name : String, selector : Apimachinery::Apis::Meta::V1::LabelSelector? = nil, target_average_value : Int32)
Instance Method Summary
- #metric_name : String
- #metric_name=(metric_name : String)
- #selector : Apimachinery::Apis::Meta::V1::LabelSelector?
- #selector=(selector : Apimachinery::Apis::Meta::V1::LabelSelector?)
- #target_average_value : Int32
- #target_average_value=(target_average_value : Int32)
Constructor methods inherited from class Pyrite::Kubernetes::Spec
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)new(pull : JSON::PullParser) new
Constructor Detail
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.