80 Commits

Author SHA1 Message Date
wanyaoqi
52df8590b0 fix(region,host): rbd snapshot get actual size (#24242)
- add host down and auto migrate notification
2026-02-07 17:31:23 +08:00
Zexi Li
bb8b08b091 fix(monitor): title of notification by language context (#23799) 2025-11-20 20:11:54 +08:00
屈轩
d46a7010fe fix(region): disk reset webhook (#23325) 2025-09-18 15:08:15 +08:00
Zexi Li
b931b70911 Monitor worker alert (#22729)
* fix(monitor): GetMetricMeasurement 接口只查询过去30m的数据

避免数据过多导致 victoria-metrics 报错

* fix(monitor): wildchar of alert group by field
2025-06-18 14:25:27 +08:00
屈轩
7e1d2db513 fix(notify): support create topic (#22268) 2025-03-13 14:04:52 +08:00
Zexi Li
1ff08ad0c8 fix(monitor): not split resource when notifying (#22072) 2025-02-10 19:50:00 +08:00
Jian Qiu
0c4892bed0 fix: notify empty receipients (#22035)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-01-28 18:54:42 +08:00
guangwu
23e3e4744d chore: slice loop replace (#20204)
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
2024-05-07 18:19:15 +08:00
gouqi11
14d10c121c fix(commom): setStatus with notify hook (#19405)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-02-01 20:44:40 +08:00
马鸿飞
2e90bca3ec fix(notify): add actionTranslate 2024-01-09 19:20:11 +08:00
gouqi11
c10cef4eae feat(notify): support notify for host (#19020)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2023-12-27 20:07:01 +08:00
gouqi11
0dbb094cd9 fix(region): fix db_dispatcher duplicate notify (#18698)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2023-11-15 17:02:39 +08:00
马鸿飞
2d7766dc4c feat(notify): support db_dispatcher notify 2023-10-12 15:30:00 +08:00
Qiu Jian
04427ceb7a fix: minor fixes 20230313 2023-03-13 12:45:43 +08:00
Jian Qiu
59a2a01b95 fix: add vm integrity check notify (#16205)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-03-13 09:59:31 +08:00
mhf
6e42f11024 fix notify 2023-02-24 16:11:24 +08:00
gouqi11
3db8a61d16 fix(notify): add server_panic topic (#15826) 2023-01-18 23:34:18 +08:00
mhf
63c086aa2c fix(notify): 对服务异常添加消息通知 2023-01-16 15:52:03 +08:00
gouqi11
6cdda3ead6 fix(notify): add some template and notification (#15607) 2023-01-02 12:00:21 +08:00
Jian Qiu
21716cefb5 fix: remove mutual dependency of cloudmux on onecloud (#15621)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-27 01:21:26 +08:00
Jian Qiu
ec90862764 fix: remove dependency of appctx on i18n (#15615)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-23 23:44:52 +08:00
Zexi Li
5e6935bc3a fix(cloudcommon): notify event of specific resources (#15091) 2022-09-28 13:01:03 +08:00
QIU Jian
293afd2e69 fix: remove apiversion param from session 2022-08-25 09:43:50 +08:00
rainzm
0713624f0c feat(cloudcommon): add SystemEventNotify and SystemExceptionNotifyWithResult 2022-04-01 18:50:39 +08:00
ioito
6f32a0281a fix(notify): add panic notify 2022-03-01 17:17:29 +08:00
rainzm
0a4f087786 fix(notify): add missing webhook notification 2021-12-22 19:21:30 +08:00
Qu Xuan
06dc1c1b87 fix(common): split mcclient modules by service 2021-11-05 19:24:50 +08:00
rainzm
e5cefa54f5 feat(notify): add Action sync_create, sync_update, sync_delete 2021-10-26 10:50:12 +08:00
rainzm
c5ea363f43 fix(cloudcommon): set Priority as normal when calling EventNotify 2021-09-27 11:38:01 +08:00
rainzm
964a64949e fix(notify): modify NotifyRobotWithCtx 2021-09-27 11:04:00 +08:00
zhaoxiangchun
8fa4e577dd feat(cloudmon): add cloudmon component 2021-07-16 12:20:52 +08:00
rainzm
311d0efb80 feat(notify,region): improvement of news subscription 2021-06-24 10:30:01 +08:00
rainzm
1d1bb6c381 feat(notify): advanced notify config and robot
1. Notify config has now become a domain resource, so that each domain can have its own configuration about notify.
   The domains has no configuration will use system config.
2. Robot separates from config and becomes a shared project resource. Sending information to robot can
   choose which robot to send to.
2021-06-24 10:29:35 +08:00
rainzm
a28ff0400a fix(cloudcommon): disable EventNotify for now
The front end is not yet open, temporarily disable it to avoid meaningless logic and requests
2021-05-12 10:34:41 +08:00
Qu Xuan
7b845d17c7 fix(common): dump task info when stucking 2021-04-26 10:45:38 +08:00
rainzm
b45edf2f18 feat: support EventNotify 2021-02-18 11:16:57 +08:00
rainzm
95de795c8b fix(notify): be compatible with member's permission changes
every user can create, modify and delete their own receiver info
2021-01-29 20:09:41 +08:00
Zexi Li
960cf2a8b0 Merge pull request #9981 from rainzm/notify/webconsole_lang
fix(notify): send websocket messages according to language preference
2021-01-21 21:32:55 +08:00
rainzm
09337d9231 fix(notify): send websocket messages according to language preference 2021-01-21 19:42:39 +08:00
rainzm
1c3eea6886 feat(cloudcommon): send message with mobile in NotifyWithTag 2021-01-21 18:53:44 +08:00
rainzm
8316dadb05 feat(cloudcommon): send it directly if there is no template corresponding to the topic 2021-01-14 17:08:47 +08:00
rainzm
7357b6e0a2 feat(cloudcommon): expand notifyclient
1. support new params in creating notification
2. adapt keystone because `auth.GetAdminSession` doesn't work in keystone
2021-01-13 19:39:03 +08:00
rainzm
f8bace5b4e feat(notify): add template about topic USER_LOGIN_EXCEPTION 2021-01-13 19:35:54 +08:00
rainzm
2eebef810f feat(cloudcommon): determine the notification template based on the user’s language preference 2020-12-23 17:07:25 +08:00
rainzm
81588c92ae feat(region): distinguish between pending delete and delete notification 2020-12-18 13:05:24 +08:00
Qu Xuan
fc0f05286f feat(cloudid): notify clouduser created 2020-12-02 14:28:14 +08:00
rainzm
66f373d073 feat(cloudcommon): add NotifyWithContact 2020-11-30 19:58:49 +08:00
rainzm
a8ea8b10cc feat(cloudcommon): allways send webconsole notification via contacts
For notification with webconsole type, receiverId is same with contacts.
2020-11-30 17:45:52 +08:00
zhaoxiangchun
68dfa8a8c8 fix(monitor): modify notify alertInfo and alertOk detach resource
1.修复报警信息中>等被转义的问题
2.针对:host_raid.adapter和smart_device.exit_status
  只能出现alerting和nodata
两种报警状态。在queryCondition的查询逻辑下,nodata情况也进行detach操作
3.修复报警记录中报警策略翻译异常的问题
2020-11-23 21:32:15 +08:00
rainzm
36dec7baa0 fix: add err handler for notifyRobot 2020-11-17 16:34:12 +08:00