Skip to content

Events

As with the panel, you can also search and view events via API.

Retrieve all events

To retrieve all events, the following request is available:

HTTP Request

GET /k8sgpu/v1/events/

HTTP Response

{
  "items": [ // the events found
    {
      "pod": "d64cc49a-1123-40e9-b995-e6fcd5b73a73",
      "cluster": "skg00018",
      "id": 1487,
      "uuid": "d64cc49a-1123-40e9-b995-e6fcd5b73a73",
      "user": "skgu00004",
      "date": "2024-11-21T04:37:38.959489+00:00",
      "runtime_class": "seeweb-nvidia-2xa6000",
      "local_reference_namespace": "skg00018-gpu",
      "local_reference_name": "07bd7071-846a-4518-bb9a-b8a755941a7c",
      "remote_reference_namespace": "remote-gpu",
      "remote_reference_name": "ops-remote-gpu-8fc4db74b-s4kqg",
      "event_epoch": 1732163922,
      "event_type": "started"
    },
    {
      "pod": "fead8b43-fc69-4331-981f-e578a414306e",
      "cluster": "skg00018",
      "id": 1486,
      "uuid": "fead8b43-fc69-4331-981f-e578a414306e",
      "user": "skgu00004",
      "date": "2024-11-21T04:32:05.057457+00:00",
      "runtime_class": "seeweb-nvidia-2xa6000",
      "local_reference_namespace": "skg00018-gpu",
      "local_reference_name": "259003c4-3d36-4411-ab9d-2be5a82ca087",
      "remote_reference_namespace": "remote-gpu",
      "remote_reference_name": "ops-remote-gpu-8fc4db74b-s4qng",
      "event_epoch": 1732163596,
      "event_type": "terminated"
    }
  ],
  "length": 2, // the currently reported events
  "total": 95 // all existing events
}

Search among events

This request exposes a query parameter that allows you to search through our events.

To do this, you need to add the "search" field to your request:

GET /k8sgpu/v1/events/?search=07bd7071-846a-4518-bb9a-b8a755941a7c

Paginate events

Of course, it is also possible to paginate events. To do this, you need to use the fields: "offset" and "length":

GET /k8sgpu/v1/events/?offset=50&length=10

Info

offset represents the event from which to start the search, skipping the previous ones, while length is the number of events to return after skipping the offset