influxdb/kapacitor/http_out.go

16 lines
350 B
Go
Raw Normal View History

package kapacitor
import (
"fmt"
"github.com/influxdata/chronograf"
)
2017-03-06 16:11:52 +00:00
// HTTPEndpoint is the default location of the tickscript output
const HTTPEndpoint = "output"
2017-03-06 16:11:52 +00:00
// HTTPOut adds a kapacitor httpOutput to a tickscript
func HTTPOut(rule chronograf.AlertRule) (string, error) {
return fmt.Sprintf(`trigger|httpOut('%s')`, HTTPEndpoint), nil
}