package kubecaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

current status of a horizontal pod autoscaler

type t
val to_yojson : t -> Yojson.Safe.t
val make : ?observed_generation:int -> ?last_scale_time:Kubernetes.Definitions.Apimachinery.Pkg.Apis.Meta.V1.Time.t -> desired_replicas:int -> current_replicas:int -> ?current_cpu_utilization_percentage:int -> unit -> t
val current_cpu_utilization_percentage : t -> int option

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.

val current_replicas : t -> int

current number of replicas of pods managed by this autoscaler.

val desired_replicas : t -> int

desired number of replicas of pods managed by this autoscaler.

last time the Horizontal_pod_autoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.

val observed_generation : t -> int option

most recent generation observed by this autoscaler.

module Object : Object.S with type value := t