Documentation
¶
Overview ¶
Package graphs contains database functions for generating visualizations. These are relatively slow functions that do a lot of construction and transformation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeatmapData ¶
type HeatmapData struct {
// list of "boxid-serviceid"
XLabels template.JS
// list of team labels "team xx"
YLabels template.JS
// the datapoints, a list of objects containing x, y, and uptime percentage v.
DataPoints template.JS
}
HeatmapData contains the rendered strings required for the heatmap graph template.
func GetHeatmapData ¶
GetHeatmapData returns the template data needed to render a heatmap chart. data contains rendered json strings. each cell value is the historical uptime percentage for that team/box/service combination.
type ScoreboardData ¶
type ScoreboardData struct {
// list of "boxid-serviceid"
XLabels template.JS
// list of team labels "team xx"
YLabels template.JS
// the datapoints, a list of objects containing x, y, and some values.
DataPoints template.JS
}
ScoreboardData contains the rendered string required for the scoreboard graph template.
func GetScoreboardData ¶
GetScoreboardData returns the template data needed to render a scoreboard chart. data contains rendered json strings.
type ScoresData ¶
ScoresData returns the template data needed to render the final scores length
func GetScoresData ¶
GetScoresData contains the data required to render a line chart with all team scores.
type StandingsData ¶
type StandingsData struct {
// list of team labels "team xx"
Labels template.JS
// checks passed per team, parallel to Labels
Data template.JS
}
StandingsData contains the rendered strings required for the standings graph template.
func GetStandingsData ¶
GetStandingsData returns the template data needed to render a current standings bar chart. data contains rendered json strings.