Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertController ¶
type AlertController struct {
beego.Controller
}
func (*AlertController) ClassifyAlerts ¶
func (c *AlertController) ClassifyAlerts()
@router /classify [get]
func (*AlertController) ShowAlerts ¶
func (c *AlertController) ShowAlerts()
@router /rules/:ruleid [get]
func (*AlertController) URLMapping ¶
func (c *AlertController) URLMapping()
type ConfigController ¶
type ConfigController struct {
beego.Controller
}
func (*ConfigController) DeleteConfig ¶
func (c *ConfigController) DeleteConfig()
@router /:id [delete]
func (*ConfigController) URLMapping ¶
func (c *ConfigController) URLMapping()
func (*ConfigController) UpdateConfig ¶
func (c *ConfigController) UpdateConfig()
@router /:id [put]
type GroupController ¶
type GroupController struct {
beego.Controller
}
func (*GroupController) URLMapping ¶
func (c *GroupController) URLMapping()
type LoginController ¶
type LoginController struct {
beego.Controller
}
func (*LoginController) GetCurrentUser ¶
func (c *LoginController) GetCurrentUser()
@router /username [get]
func (*LoginController) URLMapping ¶
func (c *LoginController) URLMapping()
type LogoutController ¶
type LogoutController struct {
beego.Controller
}
func (*LogoutController) URLMapping ¶
func (c *LogoutController) URLMapping()
type MaintainController ¶
type MaintainController struct {
beego.Controller
}
func (*MaintainController) AddMaintain ¶
func (c *MaintainController) AddMaintain()
@router / [post]
func (*MaintainController) DeleteMaintain ¶
func (c *MaintainController) DeleteMaintain()
@router /:id [delete]
func (*MaintainController) GetAllMaintains ¶
func (c *MaintainController) GetAllMaintains()
@router / [get]
func (*MaintainController) GetHosts ¶
func (c *MaintainController) GetHosts()
@router /:id/hosts [get]
func (*MaintainController) URLMapping ¶
func (c *MaintainController) URLMapping()
func (*MaintainController) UpdateMaintain ¶
func (c *MaintainController) UpdateMaintain()
@router /:id [put]
type ManageController ¶
type ManageController struct {
beego.Controller
}
func (*ManageController) DeleteManage ¶
func (c *ManageController) DeleteManage()
@router /:id [delete]
func (*ManageController) URLMapping ¶
func (c *ManageController) URLMapping()
func (*ManageController) UpdateManage ¶
func (c *ManageController) UpdateManage()
@router /:id [put]
type PlanController ¶
type PlanController struct {
beego.Controller
}
func (*PlanController) AddReceiver ¶
func (c *PlanController) AddReceiver()
@router /:planid/receivers/ [post]
func (*PlanController) GetAllReceiver ¶
func (c *PlanController) GetAllReceiver()
@router /:planid/receivers/ [get]
func (*PlanController) URLMapping ¶
func (c *PlanController) URLMapping()
type PromController ¶
type PromController struct {
beego.Controller
}
func (*PromController) URLMapping ¶
func (c *PromController) URLMapping()
type ReceiverController ¶
type ReceiverController struct {
beego.Controller
}
func (*ReceiverController) DeleteReceiver ¶
func (c *ReceiverController) DeleteReceiver()
@router /:receiverid [delete]
func (*ReceiverController) URLMapping ¶
func (c *ReceiverController) URLMapping()
func (*ReceiverController) UpdateReceiver ¶
func (c *ReceiverController) UpdateReceiver()
@router /:receiverid [put]
type Rule ¶
type Rule struct { Id int64 `json:"id"` Expr string `json:"expr"` Op string `json:"op"` Value string `json:"value"` For string `json:"for"` //Labels map[string]string `json:"labels"` Summary string `json:"summary"` Description string `json:"description"` PromId int64 `json:"prom_id"` PlanId int64 `json:"plan_id"` }
type RuleController ¶
type RuleController struct {
beego.Controller
}
func (*RuleController) URLMapping ¶
func (c *RuleController) URLMapping()
type UserController ¶
type UserController struct {
beego.Controller
}
func (*UserController) URLMapping ¶
func (c *UserController) URLMapping()
type UserInfo ¶
type UserInfo struct { Name string `json:"name"` Display string `json:"display"` Email string `json:"email"` IsAdmin bool `json:"is_admin"` AccessToken string `json:"access_token"` ClientID string `json:"client_id"` ExpiresIn int `json:"expires_in"` RefreshToken string `json:"refresh_token"` TokenType string `json:"token_type"` }
Click to show internal directories.
Click to hide internal directories.