mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
@@ -134,7 +134,7 @@ func NotifyRobot(robotIds []string, priority npk.TNotifyPriority, event string,
|
||||
|
||||
// NotifyRobot will send messages via all robot contact type such as dingtalk-robot.
|
||||
func NotifyRobotWithCtx(ctx context.Context, robotIds []string, priority npk.TNotifyPriority, event string, data jsonutils.JSONObject) error {
|
||||
rawNotify(context.Background(), sNotifyParams{
|
||||
rawNotify(ctx, sNotifyParams{
|
||||
robots: robotIds,
|
||||
channel: npk.NotifyByRobot,
|
||||
priority: priority,
|
||||
@@ -284,6 +284,7 @@ func EventNotify(ctx context.Context, userCred mcclient.TokenCredential, ep SEve
|
||||
ResourceDetails: objDetails,
|
||||
Event: event.String(),
|
||||
AdvanceDays: ep.AdvanceDays,
|
||||
Priority: string(npk.NotifyPriorityNormal),
|
||||
ProjectId: projectId,
|
||||
ProjectDomainId: projectDomainId,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user