mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
20 lines
423 B
Go
20 lines
423 B
Go
package alerting
|
|
|
|
import (
|
|
"github.com/grafana/grafana/pkg/log"
|
|
m "github.com/grafana/grafana/pkg/models"
|
|
"time"
|
|
)
|
|
|
|
type DummieExecutor struct{}
|
|
|
|
func (this *DummieExecutor) Execute(rule m.AlertRule, responseQueue chan *AlertResult) {
|
|
if rule.Id == 6 {
|
|
time.Sleep(time.Second * 0)
|
|
}
|
|
//time.Sleep(time.Second)
|
|
log.Info("Finnished executing: %d", rule.Id)
|
|
|
|
responseQueue <- &AlertResult{State: "OK", Id: rule.Id}
|
|
}
|