Documentation
¶
Index ¶
- type Controller
- type EmptyController
- func (d *EmptyController) Close()
- func (d *EmptyController) RequestStat() chan *Statistics
- func (d *EmptyController) UpdateExecutionStat(taskID string, metricsCount int, success bool, startTime, endTime time.Time)
- func (d *EmptyController) UpdateLoadStat(taskID string, config string, filters []string)
- func (d *EmptyController) UpdateStreamingStat(taskID string, metricsCount int, startTime, lastUpdate time.Time)
- func (d *EmptyController) UpdateUnloadStat(taskID string)
- type StatCommand
- type Statistics
- type StatisticsController
- func (sc *StatisticsController) Close()
- func (sc *StatisticsController) RequestStat() chan *Statistics
- func (sc *StatisticsController) UpdateExecutionStat(taskID string, metricsCount int, success bool, startTime, endTime time.Time)
- func (sc *StatisticsController) UpdateLoadStat(taskID string, config string, filters []string)
- func (sc *StatisticsController) UpdateStreamingStat(taskID string, metricsCount int, startTime, lastUpdate time.Time)
- func (sc *StatisticsController) UpdateUnloadStat(taskID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface {
Close()
RequestStat() chan *Statistics
UpdateLoadStat(taskID string, config string, filters []string)
UpdateUnloadStat(taskID string)
UpdateExecutionStat(taskID string, metricsCount int, success bool, startTime, endTime time.Time)
UpdateStreamingStat(taskID string, metricsCount int, startTime, lastUpdate time.Time)
}
func NewController ¶
func NewController(ctx context.Context, pluginName string, pluginVersion string, pluginType types.PluginType, opt *plugin.Options) (Controller, error)
func NewEmptyController ¶
func NewEmptyController() (Controller, error)
func NewStatsController ¶
func NewStatsController(ctx context.Context, pluginName string, pluginVersion string, pluginType types.PluginType, opt *plugin.Options) (Controller, error)
type EmptyController ¶
type EmptyController struct {
}
func (*EmptyController) Close ¶
func (d *EmptyController) Close()
func (*EmptyController) RequestStat ¶
func (d *EmptyController) RequestStat() chan *Statistics
func (*EmptyController) UpdateExecutionStat ¶
func (*EmptyController) UpdateLoadStat ¶
func (d *EmptyController) UpdateLoadStat(taskID string, config string, filters []string)
func (*EmptyController) UpdateStreamingStat ¶
func (d *EmptyController) UpdateStreamingStat(taskID string, metricsCount int, startTime, lastUpdate time.Time)
func (*EmptyController) UpdateUnloadStat ¶
func (d *EmptyController) UpdateUnloadStat(taskID string)
type StatCommand ¶
type StatCommand interface {
ApplyStat()
}
type Statistics ¶
type Statistics struct {
PluginInfo pluginInfo `json:"Plugin info"`
TasksSummary tasksSummary `json:"Tasks summary"`
TasksDetails map[string]taskDetails `json:"Task details"`
}
type StatisticsController ¶
type StatisticsController struct {
// contains filtered or unexported fields
}
func (*StatisticsController) Close ¶
func (sc *StatisticsController) Close()
func (*StatisticsController) RequestStat ¶
func (sc *StatisticsController) RequestStat() chan *Statistics
func (*StatisticsController) UpdateExecutionStat ¶
func (*StatisticsController) UpdateLoadStat ¶
func (sc *StatisticsController) UpdateLoadStat(taskID string, config string, filters []string)
func (*StatisticsController) UpdateStreamingStat ¶
func (sc *StatisticsController) UpdateStreamingStat(taskID string, metricsCount int, startTime, lastUpdate time.Time)
func (*StatisticsController) UpdateUnloadStat ¶
func (sc *StatisticsController) UpdateUnloadStat(taskID string)
Click to show internal directories.
Click to hide internal directories.