metrics

package
v0.26.28 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ModelRoute = "/metrics/model"
View Source
var ModelsRoute = "/metrics/models"

Functions

This section is empty.

Types

type ErrorHandler

type ErrorHandler interface {
	Error(e error)
}

type Logger

type Logger interface {
	InfoF(category string, message string, args ...interface{})
	DebugF(category string, message string, args ...interface{})
}

type ModelViewModel

type ModelViewModel struct {
	Ctx              *fasthttp.RequestCtx
	NavItems         []cbweb.NavItem
	Flash            *cbweb.Flash
	ModelName        string
	ModelLogs        string
	ModelProgressLog string
	ModelJson        string
	ModelSummary     string
	MetricsViewModel *ModelsViewModel
	MetricsError     error
}

func (*ModelViewModel) GetDataTable

func (t *ModelViewModel) GetDataTable() *cbwebcommon.DataTable

func (*ModelViewModel) GetLogNames

func (t *ModelViewModel) GetLogNames() []string

func (*ModelViewModel) GetMainTemplate

func (t *ModelViewModel) GetMainTemplate() string

func (*ModelViewModel) GetMasterViewModel

func (t *ModelViewModel) GetMasterViewModel() cbweb.DefaultMasterViewModel

func (*ModelViewModel) GetMetricError

func (t *ModelViewModel) GetMetricError() string

func (*ModelViewModel) GetTemplates

func (t *ModelViewModel) GetTemplates() []string

func (*ModelViewModel) HasMetricsError

func (t *ModelViewModel) HasMetricsError() bool

type ModelsViewModel

type ModelsViewModel struct {
	Ctx      *fasthttp.RequestCtx
	NavItems []cbweb.NavItem
	Flash    *cbweb.Flash
	Metrics  []Record
	AllRows  bool
}

func (*ModelsViewModel) GetDataTable

func (t *ModelsViewModel) GetDataTable() *cbwebcommon.DataTable

func (*ModelsViewModel) GetLogNames

func (t *ModelsViewModel) GetLogNames() []string

func (*ModelsViewModel) GetMainTemplate

func (t *ModelsViewModel) GetMainTemplate() string

func (*ModelsViewModel) GetMasterViewModel

func (t *ModelsViewModel) GetMasterViewModel() cbweb.DefaultMasterViewModel

func (*ModelsViewModel) GetMetricsColumns

func (t *ModelsViewModel) GetMetricsColumns() map[string]int

func (*ModelsViewModel) GetTemplates

func (t *ModelsViewModel) GetTemplates() []string

type Module

type Module struct {
	Common        *cbwebcommon.Module
	ErrorHandler  ErrorHandler
	Logger        Logger
	NavItems      func(ctx *fasthttp.RequestCtx) []cbweb.NavItem
	IgnoredModels []string
}

func (*Module) GetErrorHandler

func (m *Module) GetErrorHandler() ErrorHandler

func (*Module) GetGlobalTemplates

func (m *Module) GetGlobalTemplates() map[string][]byte

func (*Module) GetLogger

func (m *Module) GetLogger() Logger

func (*Module) Model

func (m *Module) Model(ctx *fasthttp.RequestCtx)

func (*Module) Models

func (m *Module) Models(ctx *fasthttp.RequestCtx)

func (*Module) ModelsPostAction

func (m *Module) ModelsPostAction(ctx *fasthttp.RequestCtx)

func (*Module) SetGlobalTemplates

func (m *Module) SetGlobalTemplates(templates map[string][]byte)

func (*Module) SetRoutes

func (m *Module) SetRoutes(router *router.Router)

type Record

type Record struct {
	ModelName string
	DateTime  string
	Rows      []RecordRow
}

type RecordRow

type RecordRow struct {
	Datetime string
	Event    string
	Mode     string
	Epoch    int
	Batch    int
	LogNames []string
	Logs     []float32
}

Jump to

Keyboard shortcuts

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