UNPKG

kubernetes-models

Version:
35 lines (34 loc) 1.6 kB
import { IIoK8sApimachineryPkgApiResourceQuantity } from "@kubernetes-models/apimachinery/api/resource/Quantity"; import { ModelData, Model } from "@kubernetes-models/base"; /** * MetricTarget defines the target value, average value, or average utilization of a specific metric */ export interface IMetricTarget { /** * averageUtilization is the target 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. Currently only valid for Resource metric source type */ "averageUtilization"?: number; /** * averageValue is the target value of the average of the metric across all relevant pods (as a quantity) */ "averageValue"?: IIoK8sApimachineryPkgApiResourceQuantity; /** * type represents whether the metric type is Utilization, Value, or AverageValue */ "type": string; /** * value is the target value of the metric (as a quantity). */ "value"?: IIoK8sApimachineryPkgApiResourceQuantity; } /** * MetricTarget defines the target value, average value, or average utilization of a specific metric */ export declare class MetricTarget extends Model<IMetricTarget> implements IMetricTarget { "averageUtilization"?: number; "averageValue"?: IIoK8sApimachineryPkgApiResourceQuantity; "type": string; "value"?: IIoK8sApimachineryPkgApiResourceQuantity; constructor(data?: ModelData<IMetricTarget>); } export { IMetricTarget as IIoK8sApiAutoscalingV2MetricTarget, MetricTarget as IoK8sApiAutoscalingV2MetricTarget };