Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardTemplateData ¶
type DashboardTemplateData struct {
NbWatchers int
NbChecks int
WatchersOK int
WatchersKO int
WatchersDown int
WatcherStatus []*WatcherStatusTemplateData
}
func DashboardTemplater ¶
func DashboardTemplater(api api.CollectorRequester) (data *DashboardTemplateData, err error)
type DocumentationTemplateData ¶
type DocumentationTemplateData struct {
Watcher string
Check string
Text string
Version string
Header bool
}
func DocumentListTemplater ¶
func DocumentListTemplater(api api.CollectorRequester) (documentation []*DocumentationTemplateData, err error)
type WatcherStatusTemplateData ¶
type WatcherStatusTemplateData struct {
Watcher string
Check string
Timestamp string
Status string // OK KO --
Text string
Version string
Table string // table-primary or ""
Badge string // bg-success :1 , bg-danger: -1 bg-warning =0
}
func TreatBuffer ¶
func TreatBuffer(buffer []*WatcherStatusTemplateData, filter string) []*WatcherStatusTemplateData
func WatcherStatusTemplater ¶
func WatcherStatusTemplater(api api.CollectorRequester, filter string) (data []*WatcherStatusTemplateData, err error)
Click to show internal directories.
Click to hide internal directories.