Commit Graph
23 Commits
Author SHA1 Message Date
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
Qiu Jian 89c2421bf7 minor fixes 2019-02-11 08:46:06 +08:00
Qiu Jian ff4709e066 增加:补充完整通知消息功能 2019-02-08 07:42:53 +08:00
Zexi Li e6788bb75e add doc.go for each package 2018-08-11 14:41:38 +08:00
Zexi Li 22411ffb53 path move: github.com/yunionio -> yunion.io/x 2018-08-11 14:28:18 +08:00
Zexi Li 976cc8e640 cloudcommon pkg added. 2018-07-27 19:03:32 +08:00