mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
增加健康检查定时任务/健康检查可以发送消息
This commit is contained in:
@@ -6,20 +6,20 @@ import (
|
||||
"github.com/iwind/TeaGo/actions"
|
||||
)
|
||||
|
||||
type HealthRunAction struct {
|
||||
type HealthRunPopupAction struct {
|
||||
actionutils.ParentAction
|
||||
}
|
||||
|
||||
func (this *HealthRunAction) Init() {
|
||||
func (this *HealthRunPopupAction) Init() {
|
||||
this.Nav("", "", "")
|
||||
}
|
||||
|
||||
func (this *HealthRunAction) RunGet(params struct{}) {
|
||||
func (this *HealthRunPopupAction) RunGet(params struct{}) {
|
||||
|
||||
this.Show()
|
||||
}
|
||||
|
||||
func (this *HealthRunAction) RunPost(params struct {
|
||||
func (this *HealthRunPopupAction) RunPost(params struct {
|
||||
ClusterId int64
|
||||
|
||||
Must *actions.Must
|
||||
@@ -14,7 +14,7 @@ func init() {
|
||||
Prefix("/clusters/cluster/settings").
|
||||
GetPost("", new(IndexAction)).
|
||||
GetPost("/health", new(HealthAction)).
|
||||
GetPost("/healthRun", new(HealthRunAction)).
|
||||
GetPost("/healthRunPopup", new(HealthRunPopupAction)).
|
||||
EndAll()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user