package kubecaml

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

Resource_metric_status indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. Cpu or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per_pod metrics using the "pods" source.

type t
val to_yojson : t -> Yojson.Safe.t
val make : name:string -> current_average_value: Kubernetes.Definitions.Apimachinery.Pkg.Api.Resource.Quantity.t -> ?current_average_utilization:int -> unit -> t
val current_average_utilization : t -> int option

current_average_utilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `target_average_value` was set in the corresponding metric specification.

current_average_value is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification.

val name : t -> string

name is the name of the resource in question.

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

Innovation. Community. Security.