Documentation ¶
Index ¶
- Constants
- func CreateTask(alertTaskReq types.AlertTaskReq) (*types.AlertTask, error)
- func DeleteTask(taskId string) error
- func GetTask(taskId string) (*types.AlertTask, error)
- func ListTasks() ([]types.AlertTask, error)
- func UpdateTask(taskId string, alertTaskReq types.AlertTaskReq) (*types.AlertTask, error)
Constants ¶
View Source
const ( KapacitorTaskPattern = "dragonfly-*" KapacitorTaskFormat = "dragonfly-%s" KapacitorTemplateID = "default" //InfluxDefaultDB = "cbmon" //InfluxDefaultRP = "autogen" AlertMessageFormat = "[{{.Level}}] {{.ID}} {{.TaskName}} Alert \n%s" )
Variables ¶
This section is empty.
Functions ¶
func CreateTask ¶
func CreateTask(alertTaskReq types.AlertTaskReq) (*types.AlertTask, error)
func DeleteTask ¶
func UpdateTask ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.