From 54d6e872f478afa28f72d762d18eb6b0780cb2ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Michon?= Date: Thu, 16 Apr 2026 15:57:49 +0200 Subject: [PATCH] feat(events): add the `reason` to the restart event --- _scalingo_api/events.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_scalingo_api/events.md b/_scalingo_api/events.md index f93bf4e5..420a1722 100644 --- a/_scalingo_api/events.md +++ b/_scalingo_api/events.md @@ -179,10 +179,18 @@ _When:_ The application or some containers have been restarted | -------------- | ------ | ----------------------------------------------------- | | scope | array | The scope of the restart, null is all | | addon_provider | string | The name of the addon which restarted the application | +| reason | string | The reason of the restart | **Note:** If an addon restart the application, the user array won't be present. And if an user restart the application, the addon_name will be blank. +Possible values for `reason`: + +- `user_restart`: the restart was explicitly triggered by a user. +- `unexpected_failure`: the restart happened because of an unexpected failure. +- `rebalancing_operation`: the restart was caused by a platform rebalancing operation. +- `security_maintenance`: the restart was performed as part of a security maintenance operation. + ||| col ||| Example object: