func (a *Alerter) NotifyCircuitBreak(msg string) error {
	var errors error
	for _, number := range a.cfg.Twilio.Recipients {
		resp, err := a.twilio.Messages.SendMessage(
			a.cfg.Twilio.From,
			number,
			msg,
			nil,
		)
		if err != nil {
			// dont permanently exit so we continue to retry others
			a.logger.Error(
				"failed to send sms message",
				zap.Error(err),
				zap.String("recipient", number),
			)
			errors = multierr.Combine(errors, err)
		} else {
			a.logger.Debug(
				"message sent",
				zap.Any("response", resp),
			)
		}
	}
	return errors
}
// NotifyCircuitBreak notifies recipients abouta broken circuit
NotifyCircuitBreak notifies recipients abouta broken circuit
// NotifyCircuitBreak notifies recipients abouta broken circuit
func (a *Alerter) NotifyCircuitBreak(msg string) error {
	var errors error
	for _, number := range a.cfg.Twilio.Recipients {
		resp, err := a.twilio.Messages.SendMessage(
			a.cfg.Twilio.From,
			number,
			msg,
			nil,
		)
		if err != nil {
			a.logger.Error(
				"failed to send sms message",
				zap.Error(err),
				zap.String("recipient", number),
			)
			errors = multierr.Combine(errors, err)
		} else {
			a.logger.Debug(
				"message sent",
				zap.Any("response", resp),
			)
		}
	}
	return errors
}
func ( a * Alerter ) NotifyCircuitBreak ( msg string ) error { var errors error for _ , number := range a . cfg . Twilio . Recipients { resp , err := a . twilio . Messages . SendMessage ( a . cfg . Twilio . From , number , msg , nil , ) if err != nil { a . logger . Error ( " " , zap . Error ( err ) , zap . String ( " " , number ) , ) errors = multierr . Combine ( errors , err ) } else { a . logger . Debug ( " " , zap . Any ( " " , resp ) , ) } } return errors }
NotifyCircuitBreak notifies recipients abouta broken circuit
NotifyCircuitBreak notifies recipients abouta broken circuit
// dont permanently exit so we continue to retry others