Documentation ¶
Index ¶
- func CreateSystem(config SysConfig, reportFactories ...ReportFactory) defaultSystem
- type CliListener
- type Collector
- type CollectorFactory
- type FloatCollector
- type Json
- type LineGraphReport
- func (r LineGraphReport) GetCategory() string
- func (r LineGraphReport) GetFileName() string
- func (r LineGraphReport) GetName() string
- func (r LineGraphReport) GetUpdateInterval() time.Duration
- func (r LineGraphReport) Load(reportDir string)
- func (r LineGraphReport) Save(titleModifier string, reportDir string)
- func (r LineGraphReport) Update(timeSeconds int64, metrics Json)
- type LineReportFactoryBuilder
- type PlotFactory
- type Report
- type ReportFactory
- type SampleConfig
- type SysConfig
- type System
- type SystemSignal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSystem ¶
func CreateSystem(config SysConfig, reportFactories ...ReportFactory) defaultSystem
Types ¶
type CliListener ¶
type CliListener struct {
Sys System
}
func (CliListener) Start ¶
func (l CliListener) Start()
type CollectorFactory ¶
func NewFloatCollector ¶
func NewFloatCollector(name string, jsonPath ...string) CollectorFactory
type FloatCollector ¶
type FloatCollector struct {
// contains filtered or unexported fields
}
func (*FloatCollector) AddSample ¶
func (c *FloatCollector) AddSample(time int64, metrics Json)
func (*FloatCollector) AddXYSample ¶
func (c *FloatCollector) AddXYSample(x, y float64)
func (FloatCollector) GetXYs ¶
func (c FloatCollector) GetXYs() plotter.XYs
func (FloatCollector) Name ¶
func (c FloatCollector) Name() string
type LineGraphReport ¶
type LineGraphReport struct {
// contains filtered or unexported fields
}
func NewLineGraphReport ¶
func NewLineGraphReport(name string, report PlotFactory, width, height vg.Length, sampleConfig SampleConfig, collectors ...Collector) LineGraphReport
func (LineGraphReport) GetCategory ¶
func (r LineGraphReport) GetCategory() string
func (LineGraphReport) GetFileName ¶
func (r LineGraphReport) GetFileName() string
func (LineGraphReport) GetName ¶
func (r LineGraphReport) GetName() string
func (LineGraphReport) GetUpdateInterval ¶
func (r LineGraphReport) GetUpdateInterval() time.Duration
func (LineGraphReport) Load ¶
func (r LineGraphReport) Load(reportDir string)
func (LineGraphReport) Save ¶
func (r LineGraphReport) Save(titleModifier string, reportDir string)
func (LineGraphReport) Update ¶
func (r LineGraphReport) Update(timeSeconds int64, metrics Json)
type LineReportFactoryBuilder ¶
type LineReportFactoryBuilder struct {
Title, YAxis, Filename string
X, Y vg.Length
CollectorFactories []CollectorFactory
}
func (LineReportFactoryBuilder) ToRequestFactory ¶
func (b LineReportFactoryBuilder) ToRequestFactory() ReportFactory
type PlotFactory ¶
type ReportFactory ¶
type ReportFactory func(sampleConfig SampleConfig) Report
type SampleConfig ¶
type SampleConfig struct {
Name, DirName, XAxis string
MaxSamples int
UpdateInterval time.Duration
}
func (SampleConfig) Unit ¶
func (conf SampleConfig) Unit() unit.Unit
func (SampleConfig) Validate ¶
func (conf SampleConfig) Validate()
type SysConfig ¶
type SysConfig struct { UrlStem, Username, Password, OutputDir string SampleConfigs []SampleConfig }
type SystemSignal ¶
type SystemSignal int
Source Files ¶
Click to show internal directories.
Click to hide internal directories.