()
| 53 | } |
| 54 | |
| 55 | func (a *Alert) String() string { |
| 56 | s := fmt.Sprintf("%s[%s]", a.Name(), a.Fingerprint().String()[:7]) |
| 57 | if a.Resolved() { |
| 58 | return s + "[resolved]" |
| 59 | } |
| 60 | return s + "[active]" |
| 61 | } |
| 62 | |
| 63 | // Resolved returns true iff the activity interval ended in the past. |
| 64 | func (a *Alert) Resolved() bool { |
nothing calls this directly
no test coverage detected