class K8S::Api::Autoscaling::V2beta2::ExternalMetricSource
- K8S::Api::Autoscaling::V2beta2::ExternalMetricSource
- Reference
- Object
Overview
ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
versions/v1.21/api/autoscaling/v2beta2/external_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)
#