Add new test for multi-line YAML strings

This commit is contained in:
Ian Fijolek
2020-01-07 10:28:14 -08:00
parent f6ccd9a3bd
commit 0269ad3512
5 changed files with 91 additions and 12 deletions
+2 -4
View File
@@ -155,18 +155,16 @@ func (monitor Monitor) getAlertAfter() int16 {
// Zero is one!
if monitor.AlertAfter == 0 {
return 1
} else {
return monitor.AlertAfter
}
return monitor.AlertAfter
}
// GetAlertNames gives a list of alert names for a given monitor status
func (monitor Monitor) GetAlertNames(up bool) []string {
if up {
return monitor.AlertUp
} else {
return monitor.AlertDown
}
return monitor.AlertDown
}
func (monitor Monitor) createAlertNotice(isUp bool) *AlertNotice {