Skip to main content

Function: useEventListForClusters()

function useEventListForClusters(clusterNames: string[], options?: object): EventsPerCluster;

Defined in: lib/k8s/event.ts:211

Fetch events for given clusters

Important! Make sure to have the parent component have clusters as a key so that component remounts when clusters change, instead of rerendering with different number of clusters

Parameters

ParameterType
clusterNamesstring[]
options{ queryParams?: QueryParameters; }
options.queryParams?QueryParameters

Returns

EventsPerCluster