class K8S::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.

Included Modules

Defined in:

versions/v1.22/api/autoscaling/v2beta1/external_metric_source.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
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) #

[View source]

Instance Method Detail

def metric_name : String #

[View source]
def metric_name=(metric_name : String) #

[View source]

[View source]
def metric_selector=(metric_selector : Apimachinery::Apis::Meta::V1::LabelSelector?) #

[View source]
def target_average_value : Int32 | String | Nil #

[View source]
def target_average_value=(target_average_value : Int32 | String | Nil) #

[View source]
def target_value : Int32 | String | Nil #

[View source]
def target_value=(target_value : Int32 | String | Nil) #

[View source]