code: func (r *AlertingRule) ActiveAlerts() []*Alert {
  	var res []*Alert
  	for _, a := range r.currentAlerts() {
  		if a.ResolvedAt.IsZero() {
  			res = append(res, a)
  		}
  	}
  	return res
  }
docs: // ActiveAlerts returns a slice of active alerts.