Skip to main content

Class: HPA

Extends

  • any

Constructors

new HPA()

new HPA(json: KubeHPA): HPA

Parameters

ParameterType
jsonKubeHPA

Returns

HPA

Inherited from

makeKubeObject<KubeHPA>('horizontalPodAutoscaler').constructor

Defined in

src/lib/k8s/cluster.ts:337

Properties

PropertyModifierTypeInherited fromDefined in
apiEndpointstaticApiWithNamespaceClient<KubeObjectInterface>-src/lib/k8s/hpa.ts:170
apiListstatic(onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListSingleNamespaceOptions) => anymakeKubeObject<KubeHPA>('horizontalPodAutoscaler').apiListsrc/lib/k8s/cluster.ts:311
classNamestaticstringmakeKubeObject<KubeHPA>('horizontalPodAutoscaler').classNamesrc/lib/k8s/cluster.ts:338
getAuthorization?static(arg: string, resourceAttrs?: AuthRequestResourceAttrs) => anymakeKubeObject<KubeHPA>('horizontalPodAutoscaler').getAuthorizationsrc/lib/k8s/cluster.ts:340
getErrorMessagestatic(err?: null | ApiError) => null | stringmakeKubeObject<KubeHPA>('horizontalPodAutoscaler').getErrorMessagesrc/lib/k8s/cluster.ts:336
useApiGetstatic(onGet: (...args: any) => void, name: string, namespace?: string, onError?: (err: ApiError) => void) => voidmakeKubeObject<KubeHPA>('horizontalPodAutoscaler').useApiGetsrc/lib/k8s/cluster.ts:321
useApiListstatic(onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListOptions) => anymakeKubeObject<KubeHPA>('horizontalPodAutoscaler').useApiListsrc/lib/k8s/cluster.ts:316
useGetstatic(name: string, namespace?: string, opts?: object) => [any, null | ApiError] & QueryResponse<any, ApiError>makeKubeObject<KubeHPA>('horizontalPodAutoscaler').useGetsrc/lib/k8s/cluster.ts:328

Accessors

referenceObject

get referenceObject(): any

Returns

any

Defined in

src/lib/k8s/hpa.ts:336


spec

get spec(): HpaSpec

Returns

HpaSpec

Defined in

src/lib/k8s/hpa.ts:172


status

get status(): HpaStatus

Returns

HpaStatus

Defined in

src/lib/k8s/hpa.ts:176

Methods

metrics()

metrics(t: Function): HPAMetrics[]

Parameters

ParameterType
tFunction

Returns

HPAMetrics[]

Defined in

src/lib/k8s/hpa.ts:180


useList()

static useList(options?: ApiListOptions): [null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>

Parameters

ParameterType
options?ApiListOptions

Returns

[null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>

Inherited from

makeKubeObject<KubeHPA>('horizontalPodAutoscaler').useList

Defined in

src/lib/k8s/cluster.ts:327