feat(alerting): test results look better

This commit is contained in:
Torkel Ödegaard
2016-07-21 13:57:19 +02:00
parent f6a160b270
commit 3ad38eefd2
9 changed files with 469 additions and 8 deletions

View File

@ -42,8 +42,8 @@ type AlertTestCommand struct {
type AlertTestResult struct {
Triggered bool `json:"triggerd"`
Timing string `json:"timing"`
Error string `json:"error"`
Logs []*AlertTestResultLog `json:"logs"`
Error string `json:"error,omitempty"`
Logs []*AlertTestResultLog `json:"logs,omitempty"`
}
type AlertTestResultLog struct {