package domain // Level is the severity of an Alert. It controls the posted Discord embed's // color and whether the message mentions a user to raise attention. type Level string const ( LevelInfo Level = "info" LevelWarn Level = "warn" LevelError Level = "error" ) // Alert is one notification submitted by an external caller (e.g. a cronjob). type Alert struct { Source string Message string Level Level }