mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
fix(monitor): add metric content for email template (#21570)
This commit is contained in:
@@ -108,6 +108,7 @@
|
||||
<td>名称</td>
|
||||
<td>IP</td>
|
||||
<td>平台</td>
|
||||
<td>指标</td>
|
||||
<td>触发值</td>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -124,7 +125,8 @@
|
||||
<td>
|
||||
{{ index .tags "brand" }}
|
||||
</td>
|
||||
<td>{{$Matche.value_str}}</td>
|
||||
<td>{{ $Matche.metric }}</td>
|
||||
<td>{{ $Matche.value_str }}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
|
||||
@@ -108,6 +108,7 @@
|
||||
<td>Name</td>
|
||||
<td>IP</td>
|
||||
<td>Brand</td>
|
||||
<td>Metric</td>
|
||||
<td>Trigger value</td>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -124,7 +125,8 @@
|
||||
<td>
|
||||
{{ index .tags "brand" }}
|
||||
</td>
|
||||
<td>{{$Matche.value_str}}</td>
|
||||
<td>{{ $Matche.metric }}</td>
|
||||
<td>{{ $Matche.value_str }}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
|
||||
@@ -471,7 +471,8 @@ func (s *sendUserImpl) send() error {
|
||||
}
|
||||
|
||||
func (s *sendUserImpl) execNotifyFunc() error {
|
||||
return notifyclient.NotifyAllWithoutRobotWithCtx(s.Ctx, s.msg.Uid, false, notify.TNotifyPriority(s.msg.Priority),
|
||||
return notifyclient.NotifyAllWithoutRobotWithCtx(
|
||||
s.Ctx, s.msg.Uid, false, s.msg.Priority,
|
||||
"DEFAULT", jsonutils.Marshal(&s.config))
|
||||
}
|
||||
|
||||
@@ -484,7 +485,7 @@ func (s *sendSysImpl) send() error {
|
||||
}
|
||||
|
||||
func (s *sendSysImpl) execNotifyFunc() error {
|
||||
notifyclient.SystemNotifyWithCtx(s.Ctx, notify.TNotifyPriority(s.msg.Priority), "DEFAULT",
|
||||
notifyclient.SystemNotifyWithCtx(s.Ctx, s.msg.Priority, "DEFAULT",
|
||||
jsonutils.Marshal(&s.config))
|
||||
return nil
|
||||
}
|
||||
@@ -499,7 +500,7 @@ func (s *sendMobileImpl) send() error {
|
||||
return err
|
||||
}
|
||||
notifyclient.RawNotifyWithCtx(s.Ctx, s.msg.Uid, false, notify.TNotifyChannel(s.Setting.Channel),
|
||||
notify.TNotifyPriority(s.msg.Priority),
|
||||
s.msg.Priority,
|
||||
s.msg.Topic,
|
||||
msgObj)
|
||||
return nil
|
||||
@@ -514,7 +515,7 @@ func (s *sendRobotImpl) send() error {
|
||||
}
|
||||
|
||||
func (s *sendRobotImpl) execNotifyFunc() error {
|
||||
return notifyclient.NotifyRobotWithCtx(s.Ctx, s.msg.Robots, notify.TNotifyPriority(s.msg.Priority),
|
||||
return notifyclient.NotifyRobotWithCtx(s.Ctx, s.msg.Robots, s.msg.Priority,
|
||||
"DEFAULT", jsonutils.Marshal(&s.config))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user