code: func (a *Alert) ResolvedAt(ts time.Time) bool {
  	if a.EndsAt.IsZero() {
  		return false
  	}
  	return !a.EndsAt.After(ts)
  }
docs: // ResolvedAt returns true iff the activity interval ended before
  // the given timestamp.