2016-11-10 17:27:42 +00:00
|
|
|
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
|
2016-11-10 17:27:42 +00:00
|
|
|
const HTTPEndpoint = "output"
|
|
|
|
|
2017-03-06 16:11:52 +00:00
|
|
|
// HTTPOut adds a kapacitor httpOutput to a tickscript
|
2016-11-10 17:27:42 +00:00
|
|
|
func HTTPOut(rule chronograf.AlertRule) (string, error) {
|
|
|
|
return fmt.Sprintf(`trigger|httpOut('%s')`, HTTPEndpoint), nil
|
|
|
|
}
|