Documentation
¶
Index ¶
- func InstallHTTPHandler(r *gin.RouterGroup, st *store.Store)
- type API
- func (api *API) CreateAlert(c *gin.Context)
- func (api *API) CreateHeartbeat(c *gin.Context)
- func (api *API) DeleteAlert(c *gin.Context)
- func (api *API) DeleteHeartbeat(c *gin.Context)
- func (api *API) ListAlerts(c *gin.Context)
- func (api *API) ListHeartbeats(c *gin.Context)
- func (api *API) ReadAlert(c *gin.Context)
- func (api *API) ReadHeartbeat(c *gin.Context)
- func (api *API) SubmitPrometheus(c *gin.Context)
- func (api *API) UpdateAlertState(c *gin.Context)
- type AlertsListing
- type ErrorResponse
- type HeartbeatsListing
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 (*API) CreateAlert ¶
func (*API) CreateHeartbeat ¶
func (*API) DeleteAlert ¶
func (*API) DeleteHeartbeat ¶
func (*API) ListAlerts ¶
func (*API) ListHeartbeats ¶
func (*API) ReadHeartbeat ¶
func (*API) SubmitPrometheus ¶
func (*API) UpdateAlertState ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error,omitempty"`
Detail interface{} `json:"detail,omitempty"`
}
common
type HeartbeatsListing ¶
Heartbeats
Click to show internal directories.
Click to hide internal directories.