api

package
v0.38.70 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultWindow = "1h"

Functions

func About added in v0.38.70

func About(w http.ResponseWriter, req *http.Request)

func Changes added in v0.38.70

func Changes(w http.ResponseWriter, req *http.Request)

func CheckDetails added in v0.38.70

func CheckDetails(w http.ResponseWriter, req *http.Request)

func CheckSummary added in v0.38.70

func CheckSummary(w http.ResponseWriter, req *http.Request)

func Dump added in v0.38.70

func Dump(w http.ResponseWriter, req *http.Request)

func PrometheusGraphHandler added in v0.13.0

func PrometheusGraphHandler(w http.ResponseWriter, req *http.Request)

func TriggerCheckHandler added in v0.11.5

func TriggerCheckHandler(w http.ResponseWriter, req *http.Request)

Types

type DetailResponse added in v0.38.70

type DetailResponse struct {
	Duration   int              `json:"duration,omitempty"`
	RunnerName string           `json:"runnerName"`
	Status     []pkg.Timeseries `json:"status"`
}

type PrometheusGraphData added in v0.13.0

type PrometheusGraphData struct {
	CheckType  string `json:"checkType"`
	CheckKey   string `json:"checkKey"`
	CanaryName string `json:"canaryName"`
	Timeframe  int    `json:"timeframe"`
}

type Response

type Response struct {
	Duration   int        `json:"duration,omitempty"`
	RunnerName string     `json:"runnerName"`
	Checks     pkg.Checks `json:"checks"`
}

type Timeseries added in v0.13.0

type Timeseries struct {
	Time  float64 `json:"time"`
	Value string  `json:"value"`
}

type TriggerData added in v0.11.5

type TriggerData struct {
	CheckKey    string `json:"checkKey"`
	CheckServer string `json:"server"`
}

Jump to

Keyboard shortcuts

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