kubernetes-models
Version:
39 lines (38 loc) • 1.65 kB
TypeScript
import { IIoK8sApimachineryPkgApisMetaV1Time } from "@kubernetes-models/apimachinery/apis/meta/v1/Time";
import { Model } from "@kubernetes-models/base";
/**
* current status of a horizontal pod autoscaler
*/
export interface IHorizontalPodAutoscalerStatus {
/**
* 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.
*/
"currentCPUUtilizationPercentage"?: number;
/**
* current number of replicas of pods managed by this autoscaler.
*/
"currentReplicas": number;
/**
* desired number of replicas of pods managed by this autoscaler.
*/
"desiredReplicas": number;
/**
* last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.
*/
"lastScaleTime"?: IIoK8sApimachineryPkgApisMetaV1Time;
/**
* most recent generation observed by this autoscaler.
*/
"observedGeneration"?: number;
}
/**
* current status of a horizontal pod autoscaler
*/
export declare class HorizontalPodAutoscalerStatus extends Model<IHorizontalPodAutoscalerStatus> implements IHorizontalPodAutoscalerStatus {
"currentCPUUtilizationPercentage"?: number;
"currentReplicas": number;
"desiredReplicas": number;
"lastScaleTime"?: IIoK8sApimachineryPkgApisMetaV1Time;
"observedGeneration"?: number;
}
export { IHorizontalPodAutoscalerStatus as IIoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus, HorizontalPodAutoscalerStatus as IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus };