class K8S::Api::Autoscaling::V2beta2::PodsMetricSource
- K8S::Api::Autoscaling::V2beta2::PodsMetricSource
- Reference
- Object
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.
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
versions/v1.13/api/autoscaling/v2beta2/pods_metric_source.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, metric : Api::Autoscaling::V2beta2::MetricIdentifier, target : Api::Autoscaling::V2beta2::MetricTarget)
Instance Method Summary
- #metric : Api::Autoscaling::V2beta2::MetricIdentifier
- #metric=(metric : Api::Autoscaling::V2beta2::MetricIdentifier)
- #target : Api::Autoscaling::V2beta2::MetricTarget
- #target=(target : Api::Autoscaling::V2beta2::MetricTarget)
Constructor Detail
def self.new(*, metric : Api::Autoscaling::V2beta2::MetricIdentifier, target : Api::Autoscaling::V2beta2::MetricTarget)
#