Commit Graph

35 Commits

Author SHA1 Message Date
UUBulb
4b1af369e3
small improvements (#958)
* small improvements

* fix: return empty iterator if no json present

* use time.Tick

* changes
2025-01-19 21:22:00 +08:00
naiba
3cce7ebf01 rename repo 2024-11-28 19:38:54 +08:00
UUBulb
fc98c0919f
report geoip separately, fix server creation & deletion bugs (#14)
* new geoip method

* report geoip separately, fix server creation & deletion bugs

* fix struct tag

* fix write name

* remove deleteion list

* remove rpc realip header

* Revert "remove rpc realip header"

This reverts commit 8a5f86cf2d7df87f28cfa2a3b3430f449dd6ed73.
2024-11-22 22:40:43 +08:00
UUBulb
288e1b75e9
fix struct tags (#7) 2024-11-16 20:57:03 +08:00
uubulb
ca997cc994 add zh_TW locale, rename ssl to tls 2024-11-01 14:32:55 +08:00
UUBulb
68d7e16773
add cron, nat api & refactor alert rule (#459)
* add cron api & refactor alert rule

* add nat api

* fix swagger

* remove unnecessary steps
2024-10-26 23:57:47 +08:00
UUBulb
61e755d2b9
implement notification group (#450)
* implement notification group

* some fixes

* fix sql

* add listNotification

* retrieve notification from map

* create notification_group_notification if non-exist

* NotificationIDToGroup -> NotificationIDToGroups

* clean
2024-10-23 21:55:12 +08:00
UUBulb
55f5c89c1c
feat: description file for custom theme; use gjson (#433)
* feat: description file for custom theme; use gjson

* fix gosec

* remove outdated stuff
2024-10-10 00:08:16 +08:00
hiDandelion
711d162a46
Add replacing fields to notification content in notification.go (#408) 2024-08-13 13:51:19 +08:00
Mmx
927bf13ce4
fix: field name "VerifySSL" to "SkipVerifySSL" in Transport config (#305) 2023-12-06 09:35:38 +08:00
Mmx
1dcd899591
Fix Coroutine Leaks and Proxy Handling in http.Client (#304)
* fix: builtin variable conflict

* feat: add pkg/utils/http HttpClientSkipTlsVerify HttpClient

* fix: realtime create http Transport

* fix: http keepalive connection may not reusable

* feat: allow http request use proxy from environment
2023-12-05 23:22:25 +08:00
naiba
a2e34bfc49 fix gosec (3 2023-10-21 22:21:21 +08:00
naiba
68f10e4fc7 fix gosec 2023-10-21 22:11:55 +08:00
naiba
014abbc41e fix gosec 2023-10-21 18:13:38 +08:00
naiba
93bcf833fd v0.15.2 消息模板新增 #DATETIME# 占位符 2023-09-02 00:06:40 +08:00
naiba
ff8bf16171 fix gosec G307 2023-02-12 21:10:34 +08:00
naiba
1561ccb2fb ⬆️ upgrade dependencies 2022-09-14 22:26:14 +08:00
Akkia
fc9a65d18c
update: #SERVER.IP#仅返回一个IP(优先返回ipv4地址)| 新增获取ipv4与ipv6地址的占位符 2022-04-24 21:21:03 +08:00
Akkia
55cbbcafe6
update: 增加TCP连接数与UDP连接数的占位符 2022-04-22 16:30:05 +08:00
Akkia
e20b37b590
update: 增加更多占位符与单元测试 2022-04-17 21:06:30 +08:00
Akkia
f6a5362a97
WIP: 添加更多的占位符以支持基于服务器状态指标构造自定义的HTTP请求 2022-04-17 17:38:45 +08:00
Akkia
9c1d495eb0
WIP: 通知方式分组 支持将不同的报警|监控|计划任务的通知 发送到指定的通知分组 2022-04-14 21:06:42 +08:00
naiba
3ca23d8d88 ️ 使用 json-iterator 替换 encoding/json 进行一些序列化/反序列化操作 2022-03-18 23:13:22 +08:00
naiba
f63d8ba613 add tests 2021-11-05 15:49:01 +08:00
naiba
96c25f6fba 🐛 默认请求方式 2021-11-05 14:53:27 +08:00
naiba
17a53f8829 ♻️ set content type 2021-11-05 12:16:41 +08:00
naiba
6636d77cfd ♻️ 通知支持自定义 request header 2021-11-05 12:04:39 +08:00
naiba
ac3cfa162c 💚 #nosec 2021-09-04 12:54:05 +08:00
naiba
e40026f6cc gosec 2021-09-04 12:42:51 +08:00
naiba
d7ea114068 🔊 dashboard: 默认输出服务故障上报日志 2021-08-27 21:04:37 +08:00
naiba
503be7b83f 🔥 chore: unnecessary code 2021-01-03 21:17:39 +08:00
naiba
e9690a5b50 🐛 fix(notification): close #47
query escape && json encode
2021-01-03 21:11:00 +08:00
naiba
d91819a265 🎨 refactor: notification 2020-12-30 21:28:57 +08:00
naiba
2ae832f509 🍻 报警通知上线 2020-12-20 12:18:27 +08:00
naiba
d19de0edc2 feat(notification): 添加通知方式 2020-12-19 22:14:36 +08:00