Skip to main content
Version: Next

useEvents()

Home > @backstage/plugin-kubernetes-react > useEvents

Retrieves the events for the given object

Signature:

useEvents: ({ involvedObjectName, namespace, clusterName, }: EventsOptions) => import("react-use/esm/useAsyncFn").AsyncState<import("kubernetes-models/v1").Event[]>

Parameters

Parameter

Type

Description

{ involvedObjectName, namespace, clusterName, }

EventsOptions

**Returns:**

import("react-use/esm/useAsyncFn").AsyncState<import("kubernetes-models/v1").Event[]>