mirror of https://github.com/statping/statping
				
				
				
			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
							parent
							
								
									cdb55e6bff
								
							
						
					
					
						commit
						d062839b52
					
				|  | @ -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"` | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Emanuel Bennici
						Emanuel Bennici