Documentation
¶
Index ¶
Constants ¶
View Source
const ValuesPerMeasurement = 9.63636 // dashboard use-case, original value was: 11.2222
TODO: distinguish per use case
Variables ¶
View Source
var Runner = &LoadRunner{}
Functions ¶
func RegisterHandler ¶
func RegisterHandler(notifHandler NotifyHandler)
Types ¶
type BatchProcessor ¶
type BulkLoad ¶
type BulkLoad interface {
Init()
Validate()
CreateDb()
PrepareWorkers()
GetBatchProcessor() BatchProcessor
GetScanner() Scanner
SyncEnd()
CleanUp()
UpdateReport(params *report.LoadReportParams) (reportTags [][2]string, extraVals []report.ExtraVal)
}
type HistoryItem ¶
type HistoryItem struct {
// contains filtered or unexported fields
}
type LoadRunner ¶
type LoadRunner struct {
DbName string
Workers int
ItemLimit int64
BatchSize int
TimeLimit time.Duration
DoLoad bool
DoDBCreate bool
DoAbortOnExist bool
DoJson bool
StatPool sync.Pool
StatChan chan *Stat
Json map[string]interface{}
// contains filtered or unexported fields
}
func (*LoadRunner) HasEndedPrematurely ¶
func (r *LoadRunner) HasEndedPrematurely() bool
func (*LoadRunner) Init ¶
func (r *LoadRunner) Init(defaultBatchSize int)
func (*LoadRunner) Run ¶
func (r *LoadRunner) Run(load BulkLoad) int
func (*LoadRunner) SetPrematureEnd ¶
func (r *LoadRunner) SetPrematureEnd(reason string)
func (*LoadRunner) Validate ¶
func (r *LoadRunner) Validate()
type NotifyHandler ¶
type NotifyReceiver ¶
type NotifyReceiver struct {
}
type SimpleRegression ¶
type SimpleRegression struct {
// contains filtered or unexported fields
}
func (*SimpleRegression) Intercept ¶
func (sr *SimpleRegression) Intercept() float64
func (*SimpleRegression) Slope ¶
func (sr *SimpleRegression) Slope() float64
func (*SimpleRegression) Update ¶
func (sr *SimpleRegression) Update(x, y float64)
type StatGroup ¶
StatGroup collects simple streaming statistics.
type TimedStatGroup ¶
type TimedStatGroup struct {
// contains filtered or unexported fields
}
func NewTimedStatGroup ¶
func NewTimedStatGroup(maxDuration time.Duration, maxTrendSamples int) *TimedStatGroup
func (*TimedStatGroup) Avg ¶
func (m *TimedStatGroup) Avg() float64
func (*TimedStatGroup) Median ¶
func (m *TimedStatGroup) Median() float64
func (*TimedStatGroup) Rate ¶
func (m *TimedStatGroup) Rate() float64
Click to show internal directories.
Click to hide internal directories.