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.cr

Constructors

Instance Method Summary

Constructor methods inherited from class Pyrite::Kubernetes::Spec

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(pull : JSON::PullParser)
new

Constructor Detail

def self.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). Exactly one "target" type should be set.


def self.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). Exactly one "target" type should be set.


def self.new(*, metric_name : String, metric_selector : Apimachinery::Apis::Meta::V1::LabelSelector? = nil, target_average_value : Int32? = nil, target_value : Int32? = nil) #

Instance Method Detail

def metric_name : String #

def metric_name=(metric_name : String) #


def metric_selector=(metric_selector : Apimachinery::Apis::Meta::V1::LabelSelector?) #

def target_average_value : Int32? #

def target_average_value=(target_average_value : Int32?) #

def target_value : Int32? #

def target_value=(target_value : Int32?) #