Commit Graph

55 Commits

Author SHA1 Message Date
ioito
6d2564e84a fix(notify): add panic notify 2022-03-01 17:21:24 +08:00
rainzm
e1a5de60b2 fix(notify): add missing webhook notification 2021-12-22 19:30:10 +08:00
rainzm
17aeab6b4e feat(notify): add Action sync_create, sync_update, sync_delete 2021-10-26 14:47:24 +08:00
rainzm
05d7a87c1b fix(cloudcommon): set Priority as normal when calling EventNotify 2021-09-29 14:13:18 +08:00
rainzm
57d3e37c08 fix(notify): modify NotifyRobotWithCtx 2021-09-29 14:13:18 +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
rainzm
0d36b3b749 refactor(region): remove return value of NotifyWebhook 2020-10-28 21:07:34 +08:00
rainzm
c12b276ea1 feat(notify): add IntelliNotify
IntelliNotify will try to create receiver nonexistent if createReceiver is set to true
2020-10-20 20:34:35 +08:00
rainzm
264b9ef39f feat: add NotifyWebhook in notifyclient 2020-10-19 16:00:12 +08:00
rainzm
5f10a9a39c fix: suffix template cache key 2020-09-27 21:07:11 +08:00
rainzm
c5a78a9028 fix: use i18n.Table to handle Chinese-English conversion 2020-09-23 21:20:06 +08:00
rainzm
8eb420e42c feat: log err when sending notification via notifyclient 2020-09-23 21:20:06 +08:00
Yousong Zhou
1c1dcbde45 i18n: move out from httperrors pkg 2020-09-21 10:12:57 +08:00
rainzm
54c7069d9e feat: add NotifyError in notifyclient
NotifyError send error message to user from userCred.
2020-09-14 20:31:22 +08:00
rainzm
4b49bcec8f feat: add WithCtx version to notifyclient function 2020-09-14 20:31:17 +08:00
rainzm
6509ed6e99 fix(notify): Replace String() with GetString()
The String() of jsonutils.JSONObject will add a pair of
double quotes around the content. The GetString() will
get a clean content.
2020-09-07 15:09:47 +08:00
Rain Zheng
1ed65ddd1a Feature & Fix for Notify (#7714)
* feat(notify): Add 'get-types' action for ConfigManager

The List interface is only open to administrators,
because we don't want anyone other than administrators
to see the details of the notify configuration.
To let general user to kown available notification channels,
add 'get-types' actions of ConfigManager.

* feat(notify): Check the availability of contact type before creating notification

Creating notification with unconfigured contact type will fail at
sending message. Now, prevent creation in advance.

* feat(notify): Add workwx for NotifyNormal/Important/Critical

* feat(notify): Add Notify about robot in notifyclient

* fix(notify): Init ParentContactType for SSubContact

1. ParentContactType of SSubContact with webconsole type is empty.
2. ParentContactType of others SSubContact is mobile.

* fix(notify): Unverify SSubContact when ParentContactType match

* fix(notify): When no data is initialized, exit directly
2020-09-02 16:10:06 +08:00
Rain
2a72f35138 feat(notify): Add TNotifyChannel 'feishu' 2020-04-10 20:14:48 +08:00
Yousong Zhou
8ba5986d83 goimports: first run 2019-10-28 06:22:17 +00:00
Rain
dc68d23ff6 support Secondary authority management for contact and notification
rpc=>grpc, go=>workerMan

pull dingtalk auto

grpc
2019-09-24 15:33:53 +08:00
TangBin
d2fa217cab mcclient module base 2019-09-07 22:56:47 +08:00
wanyaoqi
a3f0d2b1f8 - add pvpanic device
- fix import baremetal server status admin
- fix gpu params position, fix notify event
- delete unknown guests
2019-06-24 15:10:17 +08:00
wanyaoqi
8014d20122 feature: glance notify, host record kvm info 2019-05-23 15:47:20 +08:00
Qiu Jian
5294c15c4b fix: 1. force use qcow2 format when creating kvm VM 2. add template lock 2019-04-17 16:55:58 +08:00
Zexi
db0e303798 make 'go test ./...' pass 2019-04-15 19:54:46 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Qiu Jian
bf071e2fea fix: specify notify user&groups domain as prefix 2019-02-22 09:27:05 +08:00
Qiu Jian
3de16f096c fix: server list filter by manager returns 500 2019-02-22 01:15:33 +08:00
Qiu Jian
d3e1f32535 fix: adjust notify template 2019-02-20 16:18:13 +08:00
Qiu Jian
a72ae86082 fix: send system notification to specific users or groups 2019-02-16 01:46:39 +08:00
Qiu Jian
a5b3b233c8 removel logs 2019-02-11 08:50:36 +08:00