Add Field `UserNotified` to Service Struct

The Field `UserNotified` is to indicate if a User has already been
notified about the Downtime of a Service.
pull/258/head
Emanuel Bennici 2019-10-04 14:47:56 +02:00
parent cdb55e6bff
commit d062839b52
No known key found for this signature in database
GPG Key ID: 17FA2D56BAD01661
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ type Service struct {
Checkpoint time.Time `gorm:"-" json:"-"`
SleepDuration time.Duration `gorm:"-" json:"-"`
LastResponse string `gorm:"-" json:"-"`
UserNotified bool `gorm:"-" json:"-"` /// True if the User was already notified about a Downtime
LastStatusCode int `gorm:"-" json:"status_code"`
LastOnline time.Time `gorm:"-" json:"last_success"`
Failures []FailureInterface `gorm:"-" json:"failures,omitempty"`