mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04: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:
@@ -41,18 +41,6 @@ type Notification struct {
|
||||
VerifySSL *bool `json:"verify_ssl,omitempty"`
|
||||
}
|
||||
|
||||
type NotificationForm struct {
|
||||
ID uint64 `json:"id,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
URL string `json:"url,omitempty"`
|
||||
RequestMethod int `json:"request_method,omitempty"`
|
||||
RequestType int `json:"request_type,omitempty"`
|
||||
RequestHeader string `json:"request_header,omitempty"`
|
||||
RequestBody string `json:"request_body,omitempty"`
|
||||
VerifySSL bool `json:"verify_ssl,omitempty"`
|
||||
SkipCheck bool `json:"skip_check,omitempty"`
|
||||
}
|
||||
|
||||
func (ns *NotificationServerBundle) reqURL(message string) string {
|
||||
n := ns.Notification
|
||||
return ns.replaceParamsInString(n.URL, message, func(msg string) string {
|
||||
|
||||
Reference in New Issue
Block a user