api

package
v0.38.65 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(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 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 {
	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