Class: Event

    lib/k8s/event .Event

    Hierarchy

    • any

      Event

    Constructors

    constructor

    new Event(json)

    Parameters

    Name Type
    json KubeEvent

    Inherited from

    makeKubeObject<KubeEvent>(‘Event’).constructor

    Defined in

    lib/k8s/cluster.ts:317

    Properties

    apiEndpoint

    Static apiEndpoint: Object

    Index signature

    ▪ [other: string]: any

    Type declaration

    Name Type
    scale? { get: (namespace: string, name: string, clusterName?: string) => Promise<any> ; put: (body: { metadata: KubeMetadata ; spec: { replicas: number } }, clusterName?: string) => Promise<any> }
    scale.get (namespace: string, name: string, clusterName?: string) => Promise<any>
    scale.put (body: { metadata: KubeMetadata ; spec: { replicas: number } }, clusterName?: string) => Promise<any>

    Defined in

    lib/k8s/event.ts:25


    className

    Static className: string

    Inherited from

    makeKubeObject<KubeEvent>(‘Event’).className

    Defined in

    lib/k8s/cluster.ts:318

    Accessors

    involvedObject

    get involvedObject(): any

    Returns

    any

    Defined in

    lib/k8s/event.ts:48


    involvedObjectInstance

    get involvedObjectInstance(): any

    Returns

    any

    Defined in

    lib/k8s/event.ts:94


    message

    get message(): any

    Returns

    any

    Defined in

    lib/k8s/event.ts:60


    reason

    get reason(): any

    Returns

    any

    Defined in

    lib/k8s/event.ts:56


    spec

    get spec(): any

    Returns

    any

    Defined in

    lib/k8s/event.ts:40


    status

    get status(): any

    Returns

    any

    Defined in

    lib/k8s/event.ts:44


    type

    get type(): any

    Returns

    any

    Defined in

    lib/k8s/event.ts:52


    maxLimit

    Static get maxLimit(): number

    Returns

    number

    Defined in

    lib/k8s/event.ts:31

    Static set maxLimit(limit): void

    Parameters

    Name Type
    limit number

    Returns

    void

    Defined in

    lib/k8s/event.ts:36

    Methods

    apiList

    Static apiList(onList, onError?, opts?): any

    Parameters

    Name Type
    onList (arg: any[]) => void
    onError? (err: ApiError ) => void
    opts? ApiListSingleNamespaceOptions

    Returns

    any

    Inherited from

    makeKubeObject<KubeEvent>(‘Event’).apiList

    Defined in

    lib/k8s/cluster.ts:293


    getAuthorization

    Static Optional getAuthorization(arg, resourceAttrs?): any

    Parameters

    Name Type
    arg string
    resourceAttrs? AuthRequestResourceAttrs

    Returns

    any

    Inherited from

    makeKubeObject<KubeEvent>(‘Event’).getAuthorization

    Defined in

    lib/k8s/cluster.ts:320


    getErrorMessage

    Static getErrorMessage(err?): null | string

    Parameters

    Name Type
    err? null | ApiError

    Returns

    null | string

    Inherited from

    makeKubeObject<KubeEvent>(‘Event’).getErrorMessage

    Defined in

    lib/k8s/cluster.ts:316


    objectEvents

    Static objectEvents(object): Promise<any>

    Parameters

    Name Type
    object any

    Returns

    Promise<any>

    Defined in

    lib/k8s/event.ts:64


    useApiGet

    Static useApiGet(onGet, name, namespace?, onError?): void

    Parameters

    Name Type
    onGet (…args: any) => void
    name string
    namespace? string
    onError? (err: ApiError ) => void

    Returns

    void

    Inherited from

    makeKubeObject<KubeEvent>(‘Event’).useApiGet

    Defined in

    lib/k8s/cluster.ts:303


    useApiList

    Static useApiList(onList, onError?, opts?): any

    Parameters

    Name Type
    onList (arg: any[]) => void
    onError? (err: ApiError ) => void
    opts? ApiListOptions

    Returns

    any

    Inherited from

    makeKubeObject<KubeEvent>(‘Event’).useApiList

    Defined in

    lib/k8s/cluster.ts:298


    useGet

    Static useGet(name, namespace?): [any, null | ApiError , (item: any) => void, (err: null | ApiError ) => void]

    Parameters

    Name Type
    name string
    namespace? string

    Returns

    [any, null | ApiError , (item: any) => void, (err: null | ApiError ) => void]

    Inherited from

    makeKubeObject<KubeEvent>(‘Event’).useGet

    Defined in

    lib/k8s/cluster.ts:312


    useList

    Static useList(opts?): [any[], null | ApiError , (items: any[]) => void, (err: null | ApiError ) => void]

    Parameters

    Name Type
    opts? ApiListOptions

    Returns

    [any[], null | ApiError , (items: any[]) => void, (err: null | ApiError ) => void]

    Inherited from

    makeKubeObject<KubeEvent>(‘Event’).useList

    Defined in

    lib/k8s/cluster.ts:309


    useListForClusters

    Static useListForClusters(clusterNames, options?): EventErrorObj

    Parameters

    Name Type
    clusterNames string[]
    options? Object
    options.queryParams? QueryParameters

    Returns

    EventErrorObj

    Defined in

    lib/k8s/event.ts:114


    useWarningList

    Static useWarningList(clusters, options?): EventErrorObj

    Parameters

    Name Type
    clusters string[]
    options? Object
    options.queryParams? QueryParameters

    Returns

    EventErrorObj

    Defined in

    lib/k8s/event.ts:185