Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildString ¶
func BuildString() string
func CreateDashboard ¶
CreateDashboard writes the provided dashboard to the named file. The file is always truncated beforehand.
func ReadDirectory ¶
func TitleToSlug ¶
func VersionString ¶
func VersionString() string
Types ¶
type Dashboard ¶
type Dashboard struct { Title string `json:"title"` Slug string `json:"slug"` Background string `json:"background"` Description string `json:"description"` Folder string `json:"folder"` Width string `json:"width"` Height string `json:"height"` GlobalMute bool `json:"globalMute"` OkSound string `json:"okSound"` WarningSound string `json:"warningSound"` CriticalSound string `json:"criticalSound"` UnknownSound string `json:"unknownSound"` UpSound string `json:"upSound"` DownSound string `json:"downSound"` Elements []Element `json:"elements"` Order Order `json:"order"` }
Dashboard contains all information to render a dashboard
func ReadDashboard ¶
func ReadDashboardDir ¶
type Element ¶
type Element struct { Type string `json:"type"` Title string `json:"title"` Rect Rect `json:"rect"` Options Options `json:"options,omitempty"` Rotation float64 `json:"rotation"` }
Element contains any service/host information needed
type Options ¶
type Options struct { ObjectAttr string `json:"objectAttr,omitempty"` ObjectName string `json:"objectName,omitempty"` ObjectType string `json:"objectType,omitempty"` TimeZone string `json:"timeZone,omitempty"` FontSize json.Number `json:"fontSize,omitempty"` Image string `json:"image,omitempty"` Source string `json:"source,omitempty"` AudioSource string `json:"audioSource,omitempty"` LinkUrl string `json:"linkURL,omitempty"` ObjectAttrMatch string `json:"objectAttrMatch,omitempty"` ObjectAttrNoMatch string `json:"objectAttrNoMatch,omitempty"` BoldText bool `json:"boldText,omitempty"` Text string `json:"text,omitempty"` ScrollPeriod string `json:"scrollPeriod,omitempty"` BackgroundColor string `json:"backgroundColor,omitempty"` FontColor string `json:"fontColor,omitempty"` OkFontColor string `json:"okFontColor,omitempty"` WarningFontColor string `json:"warningFontColor,omitempty"` WarningAcknowledgedFontColor string `json:"warningAcknowledgedFontColor,omitempty"` UnknownFontColor string `json:"unknownFontColor,omitempty"` UnknownAcknowledgedFontColor string `json:"unknownAcknowledgedFontColor,omitempty"` CriticalFontColor string `json:"criticalFontColor,omitempty"` CriticalAcknowledgedFontColor string `json:"criticalAcknowledgedFontColor,omitempty"` TextAlign string `json:"textAlign,omitempty"` TextVerticalAlign string `json:"textVerticalAlign,omitempty"` OkSound string `json:"okSound,omitempty"` WarningSound string `json:"warningSound,omitempty"` UnknownSound string `json:"unknownSound,omitempty"` CriticalSound string `json:"criticalSound,omitempty"` UpSound string `json:"upSound,omitempty"` DownSound string `json:"downSound,omitempty"` StrokeWidth json.Number `json:"strokeWidth,omitempty"` RightArrow bool `json:"rightArrow,omitempty"` LeftArrow bool `json:"leftArrow,omitempty"` OkSvg string `json:"okSvg,omitempty"` OkStrokeColor string `json:"okStrokeColor,omitempty"` WarningSvg string `json:"warningSvg,omitempty"` WarningStrokeColor string `json:"warningStrokeColor,omitempty"` WarningAcknowledgedStrokeColor string `json:"warningAcknowledgedStrokeColor,omitempty"` UnknownSvg string `json:"unknownSvg,omitempty"` UnknownStrokeColor string `json:"unknownStrokeColor,omitempty"` UnknownAcknowledgedStrokeColor string `json:"unknownAcknowledgedStrokeColor,omitempty"` CriticalSvg string `json:"criticalSvg,omitempty"` CriticalStrokeColor string `json:"criticalStrokeColor,omitempty"` CriticalAcknowledgedStrokeColor string `json:"criticalAcknowledgedStrokeColor,omitempty"` StrokeColor string `json:"strokeColor,omitempty"` Svg string `json:"svg,omitempty"` }
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
meerkat
Meerkat is a web application providing a drag-and-drop dashboard interface for Icinga.
|
Meerkat is a web application providing a drag-and-drop dashboard interface for Icinga. |
Package proxy provides a caching http.Handler implementation.
|
Package proxy provides a caching http.Handler implementation. |
package ui provides the Meerkat GUI web application.
|
package ui provides the Meerkat GUI web application. |
Click to show internal directories.
Click to hide internal directories.