Documentation ¶
Index ¶
- type Config
- type Service
- func (ts *Service) Close() error
- func (ts *Service) Delete(name string) error
- func (ts *Service) Disable(name string) error
- func (ts *Service) Enable(name string) error
- func (ts *Service) GetTaskInfo(tasks []string) ([]taskInfo, error)
- func (ts *Service) HasSnapshot(name string) bool
- func (ts *Service) IsEnabled(name string) (e bool)
- func (ts *Service) Load(name string) (*kapacitor.Task, error)
- func (ts *Service) LoadRaw(name string) (*rawTask, error)
- func (ts *Service) LoadSnapshot(name string) (*kapacitor.TaskSnapshot, error)
- func (ts *Service) Open() error
- func (ts *Service) Save(task *rawTask) error
- func (ts *Service) SaveLastError(name string, errStr string) error
- func (ts *Service) SaveSnapshot(name string, snapshot *kapacitor.TaskSnapshot) error
- func (ts *Service) StartTask(t *kapacitor.Task) error
- type TaskInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Service ¶
type Service struct { HTTPDService interface { AddRoutes([]httpd.Route) error DelRoutes([]httpd.Route) } TaskMaster interface { NewTask( name, script string, tt kapacitor.TaskType, dbrps []kapacitor.DBRP, snapshotInterval time.Duration, ) (*kapacitor.Task, error) StartTask(t *kapacitor.Task) (*kapacitor.ExecutingTask, error) StopTask(name string) error IsExecuting(name string) bool ExecutionStats(name string) (kapacitor.ExecutionStats, error) ExecutingDot(name string, labels bool) string } // contains filtered or unexported fields }
func (*Service) GetTaskInfo ¶
func (*Service) HasSnapshot ¶ added in v0.10.0
func (*Service) LoadSnapshot ¶ added in v0.10.0
func (ts *Service) LoadSnapshot(name string) (*kapacitor.TaskSnapshot, error)
func (*Service) SaveLastError ¶ added in v0.2.1
Save last error from task.
func (*Service) SaveSnapshot ¶ added in v0.10.0
func (ts *Service) SaveSnapshot(name string, snapshot *kapacitor.TaskSnapshot) error
Click to show internal directories.
Click to hide internal directories.