func (b *ThrottleConfigBuilder) WithMsgTypes(msgTypes ...notification.MessageType) *ThrottleConfigBuilder {
	return &ThrottleConfigBuilder{
		parent: b.top(),
		msgTypes: msgTypes,
		dstTypes: b.dstTypes,
	}
}
WithMsgTypes allows adding rules for messages matching at least one MessageType.
package message
import (
	"time"
	"github.com/target/goalert/notification"
)
type ThrottleConfigBuilder struct {
	parent *ThrottleConfigBuilder
	msgTypes []notification.MessageType
	dstTypes []notification.DestType
	rules []builderRules
	max   time.Duration
}
func (b *ThrottleConfigBuilder) top() *ThrottleConfigBuilder {
	if b.parent != nil {
		return b.parent
	}
	return b
}