parent
0b62cbd57d
commit
49ab7946c7
3
types.go
3
types.go
|
@ -18,7 +18,8 @@ type Source struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s Source) TimedOut() bool {
|
func (s Source) TimedOut() bool {
|
||||||
return time.Since(s.LastSeenAt) > time.Duration(s.AlertTimeout)*time.Second
|
return s.AlertTimeout != 0 &&
|
||||||
|
time.Since(s.LastSeenAt) > time.Duration(s.AlertTimeout)*time.Second
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s Source) RequiresAlertForTimeout() bool {
|
func (s Source) RequiresAlertForTimeout() bool {
|
||||||
|
|
Reference in New Issue