@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
35 lines (34 loc) • 1.79 kB
TypeScript
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: unversioned
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoK8sApiAutoscalingV2MetricTarget } from './';
/**
* ResourceMetricSource indicates how to scale on 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). The values will be averaged together before being compared to the target. 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. Only one "target" type should be set.
* @export
* @interface IoK8sApiAutoscalingV2ResourceMetricSource
*/
export interface IoK8sApiAutoscalingV2ResourceMetricSource {
/**
* name is the name of the resource in question.
* @type {string}
* @memberof IoK8sApiAutoscalingV2ResourceMetricSource
*/
name: string;
/**
*
* @type {IoK8sApiAutoscalingV2MetricTarget}
* @memberof IoK8sApiAutoscalingV2ResourceMetricSource
*/
target: IoK8sApiAutoscalingV2MetricTarget;
}
export declare function IoK8sApiAutoscalingV2ResourceMetricSourceFromJSON(json: any): IoK8sApiAutoscalingV2ResourceMetricSource;
export declare function IoK8sApiAutoscalingV2ResourceMetricSourceFromJSONTyped(json: any, _ignoreDiscriminator: boolean): IoK8sApiAutoscalingV2ResourceMetricSource;
export declare function IoK8sApiAutoscalingV2ResourceMetricSourceToJSON(value?: IoK8sApiAutoscalingV2ResourceMetricSource | null): any;