api

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerName string

Functions

func Handler

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

func PrometheusGraphHandler added in v0.13.0

func PrometheusGraphHandler(prometheusHost string) func(http.ResponseWriter, *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 {
	ServerName string     `json:"serverName"`
	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