stats

package
v2.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 (d *EmptyController) UpdateExecutionStat(taskID string, metricsCount int, success bool, startTime, endTime time.Time)

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 (sc *StatisticsController) UpdateExecutionStat(taskID string, metricsCount int, success bool, startTime, endTime time.Time)

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)

Jump to

Keyboard shortcuts

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