Documentation
¶
Overview ¶
Package scoring contains all the routes involving scorechecks. This includes agent routes to get new checks and post completed ones, as well as frontend routes to get final scores or the current status.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoxScores ¶
GetBoxScores returns the final stats per box.
@Summary Get cumulative scores per box
@Description Returns pass/fail check stats aggregated across all teams and services, keyed by box name.
@Tags scores
@Produce json
@Success 200 {object} map[string]types.ScoreResult
@Failure 400 {object} object
@Failure 501 {object} object
@Router /scores/box [get]
func GetDetailedScores ¶
GetDetailedScores returns the final stats per team per box per service. This is as detailed as final scores can be.
@Summary Get fully detailed scores
@Description Returns pass/fail stats keyed by team, then box, then service. Shape: {"team": {"box": {"service": ScoreResult}}}.
@Tags scores
@Produce json
@Success 200 {object} map[string]map[string]map[string]types.ScoreResult
@Failure 400 {object} object
@Failure 501 {object} object
@Router /scores/detailed [get]
func GetRecentChecks ¶
GetRecentChecks gets a list of the the most recent checks for every service. It is sorted by team number, then box ID, then service ID
@Summary Get most recent check result per service per team
@Description Returns the latest pass/fail score for every (team, box, service) combination. Sorted by team, box, service.
@Tags scores
@Produce json
@Success 200 {array} types.Score
@Failure 400 {object} object
@Failure 501 {object} object
@Router /scores/current [get]
func GetRecentNChecks ¶ added in v0.0.57
GetRecentNChecks returns the N most recent checks for every service of one team.
@Summary Get the N most recent checks for a team
@Description Returns the most recent checks for every service on every box of a single team. Sorted by box, then service, then newest check first.
@Tags scores
@Produce json
@Param team path int true "Team number"
@Param n query int false "Checks to return per service (default 10, max 100)"
@Success 200 {array} types.Score
@Failure 400 {object} object
@Failure 501 {object} object
@Router /scores/recent/{team} [get]
func GetServiceScores ¶
GetServiceScores returns the final stats per box per service.
@Summary Get cumulative scores per box per service
@Description Returns pass/fail check stats keyed by box name, then service name. Shape: {"box": {"service": ScoreResult}}.
@Tags scores
@Produce json
@Success 200 {object} map[string]map[string]types.ScoreResult
@Failure 400 {object} object
@Failure 501 {object} object
@Router /scores/service [get]
func GetTeamScores ¶
GetTeamScores returns the final stats per team.
@Summary Get cumulative scores per team
@Description Returns pass/fail check stats aggregated across all boxes and services, keyed by team number.
@Tags scores
@Produce json
@Success 200 {object} map[string]types.ScoreResult
@Failure 400 {object} object
@Failure 501 {object} object
@Router /scores/team [get]
Types ¶
This section is empty.