From d062839b52a721a7c7a28a4aabe25ebc765f5d98 Mon Sep 17 00:00:00 2001 From: Emanuel Bennici Date: Fri, 4 Oct 2019 14:47:56 +0200 Subject: [PATCH] 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. --- types/service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/types/service.go b/types/service.go index f0435dba..f607064e 100644 --- a/types/service.go +++ b/types/service.go @@ -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"`