class Pyrite::Api::Autoscaling::V2beta1::ExternalMetricSource
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). Exactly one "target" type should be set.
Defined in:
versions/v1.14/api/autoscaling/v2beta1/external_metric_source.crConstructors
-
.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
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).
-
.new(pull : JSON::PullParser)
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).
- .new(*, metric_name : String, metric_selector : Apimachinery::Apis::Meta::V1::LabelSelector? = nil, target_average_value : Int32? = nil, target_value : Int32? = nil)
Instance Method Summary
- #metric_name : String
- #metric_name=(metric_name : String)
- #metric_selector : Apimachinery::Apis::Meta::V1::LabelSelector?
- #metric_selector=(metric_selector : Apimachinery::Apis::Meta::V1::LabelSelector?)
- #target_average_value : Int32?
- #target_average_value=(target_average_value : Int32?)
- #target_value : Int32?
- #target_value=(target_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
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). Exactly one "target" type should be set.
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). Exactly one "target" type should be set.