mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 05:30:05 +00:00
add cron, nat api & refactor alert rule (#459)
* add cron api & refactor alert rule * add nat api * fix swagger * remove unnecessary steps
This commit is contained in:
13
model/cron_api.go
Normal file
13
model/cron_api.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package model
|
||||
|
||||
type CronForm struct {
|
||||
ID uint64 `json:"id,omitempty"`
|
||||
TaskType uint8 `json:"task_type,omitempty"` // 0:计划任务 1:触发任务
|
||||
Name string `json:"name,omitempty"`
|
||||
Scheduler string `json:"scheduler,omitempty"`
|
||||
Command string `json:"command,omitempty"`
|
||||
Servers []uint64 `json:"servers,omitempty"`
|
||||
Cover uint8 `json:"cover,omitempty"`
|
||||
PushSuccessful bool `json:"push_successful,omitempty"`
|
||||
NotificationGroupID uint64 `json:"notification_group_id,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user