List Events
const url = 'https://api.mengi.cloud/events?skip=0&limit=50';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Only events of this resource type
Only events of this resource type
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.
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.
Responses
Section titled “Responses”Successful Response
object
object
Example
{ "events": [ { "resource_type": "cluster", "event_type": "failed", "severity": "critical" } ]}Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}