feat(alerting): added few fields to alert rule

This commit is contained in:
Torkel Ödegaard
2016-05-16 15:39:09 +02:00
parent 2ce9d4571c
commit 77b7cdfadb
3 changed files with 60 additions and 9 deletions
+34
View File
@@ -0,0 +1,34 @@
package alerting
import (
"time"
m "github.com/grafana/grafana/pkg/models"
)
func Init() {
go dispatcher()
}
func dispatcher() {
ticker := time.NewTicker(time.Second)
for {
select {
case <-ticker.C:
scheduleJobs()
}
}
}
func scheduleJobs() {
}
type Scheduler interface {
}
type Executor interface {
Execute(rule *m.AlertRule)
}