alerting: images in alert notifications is now optional

its now possible to turn of image uploading in alert notifications
for those who operate on very sensitive data.

closes #7419
This commit is contained in:
bergquist
2017-02-13 12:43:12 +01:00
parent f14e25612e
commit bd010289b2
7 changed files with 70 additions and 56 deletions

View File

@@ -21,6 +21,18 @@ type Notifier interface {
GetIsDefault() bool
}
type NotifierSlice []Notifier
func (notifiers NotifierSlice) ShouldUploadImage() bool {
for _, notifier := range notifiers {
if notifier.NeedsImage() {
return true
}
}
return false
}
type ConditionResult struct {
Firing bool
NoDataFound bool