Skip to content

List Events

GET
/events
curl --request GET \
--url 'https://api.mengi.cloud/events?skip=0&limit=50'

Resource failures visible to you: newest first, or oldest first with since.

An event is recorded when a cluster, deployment or database enters an error state, when a Kubernetes upgrade fails and when a namespace migration fails, wherever the platform notices it.

resource_type
Resource Type

Only events of this resource type

Any of:
ResourceType
string
Allowed values: cluster deployment database migration

Only events of this resource type

resource_id
Resource Id

Only events of this resource

Any of:
string format: uuid

Only events of this resource

since
Since

Only events after this time (ISO 8601; naive values are UTC), oldest first. To poll, pass the created_at and id of the last event you received as since and after_id and repeat until a page comes back smaller than limit. An event becomes visible when its status update commits, so keep a short overlap (a few seconds) and deduplicate by id.

Any of:
string format: date-time

Only events after this time (ISO 8601; naive values are UTC), oldest first. To poll, pass the created_at and id of the last event you received as since and after_id and repeat until a page comes back smaller than limit. An event becomes visible when its status update commits, so keep a short overlap (a few seconds) and deduplicate by id.

after_id
After Id

With since: the id of the last event you received, so events that share its created_at are not skipped.

Any of:
string format: uuid

With since: the id of the last event you received, so events that share its created_at are not skipped.

skip
Skip
integer
0
limit
Limit
integer
default: 50 >= 1 <= 200

Successful Response

Media typeapplication/json
ResourceEventList
object
events
required
Events
Array<object>
ResourceEventResponse
object
id
required
Id
string format: uuid
resource_type
required
ResourceType
string
Allowed values: cluster deployment database migration
resource_id
required
Resource Id
string format: uuid
resource_name
Resource Name
Any of:
string
event_type
required
EventType
string
Allowed values: failed upgrade_failed
severity
required
EventSeverity
string
Allowed values: critical warning info
message
Message
Any of:
string
organization_id
Organization Id
Any of:
string format: uuid
created_at
required
Created At
string format: date-time
total
required
Total
integer

Example

{
"events": [
{
"resource_type": "cluster",
"event_type": "failed",
"severity": "critical"
}
]
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}