(alert dto.AlertDTO)
| 175 | } |
| 176 | |
| 177 | func ProcessAlertRule(alert dto.AlertDTO) string { |
| 178 | marshal, err := json.Marshal(alert) |
| 179 | if err != nil { |
| 180 | global.LOG.Errorf("error processing alert rule, err: %v", err) |
| 181 | return "" |
| 182 | } |
| 183 | return string(marshal) |
| 184 | } |
| 185 | |
| 186 | func GetCronJobType(alertType string) string { |
| 187 | for _, at := range cronJobAlertTypes { |
no outgoing calls
no test coverage detected