UNPKG

kubernetes-models

Version:
26 lines (25 loc) 1.38 kB
import { IIoK8sApiAutoscalingV2MetricIdentifier } from "./MetricIdentifier"; import { IIoK8sApiAutoscalingV2MetricTarget } from "./MetricTarget"; import { ModelData, Model } from "@kubernetes-models/base"; /** * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). */ export interface IExternalMetricSource { /** * metric identifies the target metric by name and selector */ "metric": IIoK8sApiAutoscalingV2MetricIdentifier; /** * target specifies the target value for the given metric */ "target": IIoK8sApiAutoscalingV2MetricTarget; } /** * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). */ export declare class ExternalMetricSource extends Model<IExternalMetricSource> implements IExternalMetricSource { "metric": IIoK8sApiAutoscalingV2MetricIdentifier; "target": IIoK8sApiAutoscalingV2MetricTarget; constructor(data?: ModelData<IExternalMetricSource>); } export { IExternalMetricSource as IIoK8sApiAutoscalingV2ExternalMetricSource, ExternalMetricSource as IoK8sApiAutoscalingV2ExternalMetricSource };