func Notify(channel *Channel) Option {
	return func(alert *Alert) {
		alert.Builder.Notifications = append(alert.Builder.Notifications, sdk.AlertNotification{
			UID: channel.UID,
		})
	}
}
Notify adds a notification for this alert given a channel.
package alert
import (
	"github.com/grafana-tools/sdk"
)
type ErrorMode string
const Alerting ErrorMode = "alerting"
const LastState ErrorMode = "keep_state"
type NoDataMode string
const NoData NoDataMode = "no_data"
const Error NoDataMode = "alerting"
const KeepLastState NoDataMode = "keep_state"
const OK NoDataMode = "ok"
type Option func(alert *Alert)
type Channel struct {
	ID   uint   `json:"id"`
	UID  string `json:"uid"`
	Name string `json:"Name"`
	Type string `json:"type"`
}
type Alert struct {
	Builder *sdk.Alert
}
func New(name string, options ...Option) *Alert {
	alert := &Alert{Builder: &sdk.Alert{
		Name:                name,
		Handler:             1,  
		ExecutionErrorState: string(LastState),
		NoDataState:         string(KeepLastState),
	}}
	for _, opt := range options {
		opt(alert)
	}
	return alert
}