feat(alerting): progress on alerting backend

This commit is contained in:
Torkel Ödegaard
2016-07-20 14:28:02 +02:00
parent 3219d98a92
commit 0ce55600bb
6 changed files with 138 additions and 17 deletions

View File

@@ -38,9 +38,7 @@ func (e *GraphiteExecutor) Execute(queries tsdb.QuerySlice, context *tsdb.QueryC
}
for _, query := range queries {
params["target"] = []string{
query.Query,
}
params["target"] = []string{query.Query}
}
client := http.Client{Timeout: time.Duration(10 * time.Second)}

View File

@@ -1,5 +1,7 @@
package tsdb
type HandleRequestFunc func(req *Request) (*Response, error)
func HandleRequest(req *Request) (*Response, error) {
context := NewQueryContext(req.Queries, req.TimeRange)