task

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 DeleteTask(taskId string) error

func GetTask

func GetTask(taskId string) (*types.AlertTask, error)

func ListTasks

func ListTasks() ([]types.AlertTask, error)

func UpdateTask

func UpdateTask(taskId string, alertTaskReq types.AlertTaskReq) (*types.AlertTask, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL