v1

package
v0.0.0-...-a7b6888 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallHTTPHandler

func InstallHTTPHandler(r *gin.RouterGroup, st *store.Store)

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(st *store.Store) (api *API)

func (*API) CreateAlert

func (api *API) CreateAlert(c *gin.Context)

func (*API) CreateHeartbeat

func (api *API) CreateHeartbeat(c *gin.Context)

func (*API) DeleteAlert

func (api *API) DeleteAlert(c *gin.Context)

func (*API) DeleteHeartbeat

func (api *API) DeleteHeartbeat(c *gin.Context)

func (*API) ListAlerts

func (api *API) ListAlerts(c *gin.Context)

func (*API) ListHeartbeats

func (api *API) ListHeartbeats(c *gin.Context)

func (*API) ReadAlert

func (api *API) ReadAlert(c *gin.Context)

func (*API) ReadHeartbeat

func (api *API) ReadHeartbeat(c *gin.Context)

func (*API) SubmitPrometheus

func (api *API) SubmitPrometheus(c *gin.Context)

func (*API) UpdateAlertState

func (api *API) UpdateAlertState(c *gin.Context)

type AlertsListing

type AlertsListing struct {
	Alerts []store.Alert `json:"results"`
}

Alerts

type ErrorResponse

type ErrorResponse struct {
	Error  string      `json:"error,omitempty"`
	Detail interface{} `json:"detail,omitempty"`
}

common

type HeartbeatsListing

type HeartbeatsListing struct {
	Heartbeats []store.Heartbeat `json:"results"`
}

Heartbeats

Jump to

Keyboard shortcuts

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