feat: improve host log management (#13345)

This commit is contained in:
ssongliu
2026-07-23 14:53:26 +08:00
committed by GitHub
parent 0c046edfe5
commit 7f450544e1
11 changed files with 219 additions and 33 deletions

View File

@@ -19445,6 +19445,34 @@ const docTemplate = `{
]
}
},
"/hosts/ssh/log/clean": {
"post": {
"responses": {
"200": {
"description": "OK"
}
},
"security": [
{
"ApiKeyAuth": []
},
{
"Timestamp": []
}
],
"summary": "Clean host SSH logs",
"tags": [
"SSH"
],
"x-panel-log": {
"BeforeFunctions": [],
"bodyKeys": [],
"formatEN": "clean SSH login logs",
"formatZH": "清空 SSH 登录日志",
"paramKeys": []
}
}
},
"/hosts/ssh/log/export": {
"post": {
"consumes": [
@@ -46537,4 +46565,4 @@ var SwaggerInfo = &swag.Spec{
func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}
}

View File

@@ -19441,6 +19441,34 @@
]
}
},
"/hosts/ssh/log/clean": {
"post": {
"responses": {
"200": {
"description": "OK"
}
},
"security": [
{
"ApiKeyAuth": []
},
{
"Timestamp": []
}
],
"summary": "Clean host SSH logs",
"tags": [
"SSH"
],
"x-panel-log": {
"BeforeFunctions": [],
"bodyKeys": [],
"formatEN": "clean SSH login logs",
"formatZH": "清空 SSH 登录日志",
"paramKeys": []
}
}
},
"/hosts/ssh/log/export": {
"post": {
"consumes": [
@@ -46516,4 +46544,4 @@
"type": "object"
}
}
}
}

View File

@@ -3609,6 +3609,13 @@
"formatZH": "修改 SSH 配置文件 [key]",
"formatEN": "update SSH conf [key]"
},
"/hosts/ssh/log/clean": {
"bodyKeys": [],
"paramKeys": [],
"beforeFunctions": [],
"formatZH": "清空 SSH 登录日志",
"formatEN": "clean SSH login logs"
},
"/hosts/ssh/operate": {
"bodyKeys": [
"operation"