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