feat(audit): add grade-based events
Compare changes
Now the records look like this:
{
"message": "instance is starting",
"severity": "low",
"time": "2023-11-22T22:10:24.211+0300",
"title": "local_startup"
}
{
"message": "target grade of instance `i1` changed to Online(7)",
"severity": "low",
"time": "2023-11-22T22:10:24.334+0300",
"title": "change_target_grade"
}
{
"message": "current grade of instance `i1` changed to Replicated(7)",
"severity": "medium",
"time": "2023-11-22T22:10:24.436+0300",
"title": "change_current_grade"
}
This patch adds the following events:
Part of #349 (closed)
luamod.rs