api

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 25 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(c echo.Context) error

func CheckDetails added in v0.38.70

func CheckDetails(c echo.Context) error

func DetailsHandler added in v0.38.96

func DetailsHandler(c echo.Context) error

func GetBestPartitioner added in v1.0.199

func GetBestPartitioner(totalChecks int, rangeDuration time.Duration) time.Duration

func PostDataToServer added in v0.38.85

func PostDataToServer(server string, body io.Reader) (err error)

func PushHandler added in v0.38.85

func PushHandler(c echo.Context) error

func RunCanaryHandler added in v0.38.257

func RunCanaryHandler(c echo.Context) error

func RunTopologyHandler added in v0.38.257

func RunTopologyHandler(c echo.Context) error

func WebhookHandler added in v1.0.85

func WebhookHandler(c echo.Context) error

Types

type CheckData added in v1.0.85

type CheckData struct {
	Headers map[string]string `json:"headers"`
	JSON    map[string]any    `json:"json,omitempty"`
	Content string            `json:"content,omitempty"`
}

type CheckErrorMessage added in v0.38.257

type CheckErrorMessage struct {
	Description string `json:"description"`
	Error       string `json:"error"`
}

type DetailResponse added in v0.38.70

type DetailResponse struct {
	Duration   int                `json:"duration,omitempty"`
	RunnerName string             `json:"runnerName"`
	Status     []query.Timeseries `json:"status"`
	Latency    types.Latency      `json:"latency"`
	Uptime     types.Uptime       `json:"uptime"`
}

type QueueData added in v0.38.85

type QueueData struct {
	Check  pkg.Check       `json:",inline"`
	Status pkg.CheckStatus `json:",inline"`
}

Jump to

Keyboard shortcuts

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