Status returns the status of the alert.
()
| 76 | |
| 77 | // Status returns the status of the alert. |
| 78 | func (a *Alert) Status() AlertStatus { |
| 79 | return a.StatusAt(time.Now()) |
| 80 | } |
| 81 | |
| 82 | // StatusAt returns the status of the alert at the given timestamp. |
| 83 | func (a *Alert) StatusAt(ts time.Time) AlertStatus { |