(alert core.Alert, cfg *core.Config)
| 53 | } |
| 54 | |
| 55 | func FixAlert(alert core.Alert, cfg *core.Config) ([]string, error) { |
| 56 | action := alert.Action.Name |
| 57 | if f, found := fixers[action]; found { |
| 58 | return f(alert, cfg) |
| 59 | } |
| 60 | return []string{}, fmt.Errorf("unknown action '%s'", action) |
| 61 | } |
| 62 | |
| 63 | func suggest(alert core.Alert, cfg *core.Config) ([]string, error) { |
| 64 | if len(alert.Action.Params) == 0 { |
no test coverage detected
searching dependent graphs…