code: func (m *Manager) AlertingRules() []*AlertingRule {
  	m.mtx.RLock()
  	defer m.mtx.RUnlock()
  
  	alerts := []*AlertingRule{}
  	for _, rule := range m.Rules() {
  		if alertingRule, ok := rule.(*AlertingRule); ok {
  			alerts = append(alerts, alertingRule)
  		}
  	}
  	return alerts
  }
docs: // AlertingRules returns the list of the manager's alerting rules.