struct Kubernetes::HorizontalPodAutoscalerStatus

Overview

HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.

Included Modules

Defined in:

generated/models/io_k8s_api_autoscaling_v1.cr
generated/models/io_k8s_api_autoscaling_v2.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

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

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

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

Macro Detail

macro field(name, type = nil, **options, &block) #

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def conditions : Array(HorizontalPodAutoscalerCondition) | Nil #

conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.


def conditions=(conditions : Array(HorizontalPodAutoscalerCondition) | Nil) #

conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.


def current_cpu_utilization_percentage : Int32 | Nil #

currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.


def current_cpu_utilization_percentage=(current_cpu_utilization_percentage : Int32 | Nil) #

currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.


def current_metrics : Array(MetricStatus) | Nil #

currentMetrics is the last read state of the metrics used by this autoscaler.


def current_metrics=(current_metrics : Array(MetricStatus) | Nil) #

currentMetrics is the last read state of the metrics used by this autoscaler.


def current_replicas : Int32 | Nil #

currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.


def current_replicas=(current_replicas : Int32 | Nil) #

currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.


def desired_replicas : Int32 | Nil #

desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.


def desired_replicas=(desired_replicas : Int32 | Nil) #

desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.


def last_scale_time : Time | Nil #

lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.


def last_scale_time=(last_scale_time : Time | Nil) #

lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.


def observed_generation : Int64 | Nil #

observedGeneration is the most recent generation observed by this autoscaler.


def observed_generation=(observed_generation : Int64 | Nil) #

observedGeneration is the most recent generation observed by this autoscaler.