Documentation
¶
Index ¶
- type AlertApi
- func (aa *AlertApi) AddAlert(w http.ResponseWriter, r *http.Request)
- func (aa *AlertApi) DeleteAlert(w http.ResponseWriter, r *http.Request)
- func (aa *AlertApi) Ekg(w http.ResponseWriter, r *http.Request)
- func (aa *AlertApi) ListAlerts(w http.ResponseWriter, r *http.Request)
- func (aa *AlertApi) ListenAndServe()
- func (aa *AlertApi) SendAlert(w http.ResponseWriter, r *http.Request)
- func (aa *AlertApi) UpdateAlert(w http.ResponseWriter, r *http.Request)
- type Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertApi ¶
type AlertApi struct {
// contains filtered or unexported fields
}
RigAlert
func NewAlertApi ¶
NewRigAlert returns a new instance
func (*AlertApi) AddAlert ¶
func (aa *AlertApi) AddAlert(w http.ResponseWriter, r *http.Request)
Add an Alert id
API Endpoint: POST /v1/alerts/{id}
func (*AlertApi) DeleteAlert ¶
func (aa *AlertApi) DeleteAlert(w http.ResponseWriter, r *http.Request)
Delete an Alert ID API Endpoint: DELETE /v1/alerts/{id}
func (*AlertApi) Ekg ¶
func (aa *AlertApi) Ekg(w http.ResponseWriter, r *http.Request)
API Endpoint: /ekg
func (*AlertApi) ListAlerts ¶
func (aa *AlertApi) ListAlerts(w http.ResponseWriter, r *http.Request)
Delete an Alert ID API Endpoint: DELETE /v1/alerts/{id}
func (*AlertApi) ListenAndServe ¶
func (aa *AlertApi) ListenAndServe()
Listen and Serve until process terminated
func (*AlertApi) SendAlert ¶
func (aa *AlertApi) SendAlert(w http.ResponseWriter, r *http.Request)
API Endpoint: /v1/alerts/{id}/fire
func (*AlertApi) UpdateAlert ¶
func (aa *AlertApi) UpdateAlert(w http.ResponseWriter, r *http.Request)
Update an Alert ID API Endpoint: PUT /v1/alerts/{id}
Click to show internal directories.
Click to hide internal directories.