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