Metrics & Events

Get database events

Returns up to 100 lifecycle events of the database, such as started, stopped, restarted or out of memory. You can read events from the last 7 days. Team permission: view, operate or manage.

get/v1/databases/{databaseID}/events

Request

  • Base URL
    https://api.liara.ir
  • URL
    https://api.liara.ir/v1/databases/{databaseID}/events
  • Auth
    HTTP bearer

Path parameters

databaseIDstring required

24-character hexadecimal ID.

The database's _id.

Query parameters

teamIDstring

24-character hexadecimal ID.

Run the request in the context of a team you belong to, instead of your personal account.

startinteger

Start of the range, in Unix seconds. Defaults to 1 day ago; values older than 7 days are moved to 7 days ago.

endinteger

End of the range, in Unix seconds. Defaults to now. Must be after start.

direction'backward' | 'forward'

backward returns the newest events first, forward the oldest first.

searchstring

Only return events containing this text. At least 3 characters.

Response

Events. Each event can include additional fields not listed here.

Changes

No operation changes recorded.