Skip to content

Commit 71da64d

Browse files
author
Administrator
committed
fix cst time
1 parent b03afd5 commit 71da64d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transformer/transformer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func TransformToMarkdown(notification model.Notification, grafanaURL string, ale
7171
buffer.WriteString(fmt.Sprintf("\n>【触发时间】 %s\n", cstTime.Format("2006-01-02 15:04:05")))
7272
buffer.WriteString(fmt.Sprintf("\n [跳转Grafana看板](https://%s?orgId=1&var-origin_prometheus=&var-Node=%s&var-NameSpace=%s&var-Pod=%s&var-Pod=All)", grafanaURL, ip[0], namespace, pod))
7373
buffer.WriteString(fmt.Sprintf("\n [告警规则详情](http://%s/alerts?search=)", alertDomain))
74-
buffer.WriteString(fmt.Sprintf("\n [日志详情](https://aws-au-loki-grafana.vnnox.com/d/o6-BGgnnk/loki-kubernetes-logs?orgId=1&from=now-1h&to=now&var-query=&var-namespace=au&var-stream=All&var-container=vnnox-middle-oauth)"))
74+
buffer.WriteString(fmt.Sprintf("\n [日志详情](https://aws-au-loki-grafana.vnnox.com/d/o6-BGgnnk/loki-kubernetes-logs?orgId=1&from=now-6h&to=now&var-query=&var-namespace=au&var-stream=All&var-container=vnnox-middle-oauth)"))
7575
buffer.WriteString(fmt.Sprintf("\n"))
7676
buffer.WriteString(fmt.Sprintf("---------------------------------------------------------------------------\n"))
7777
}

0 commit comments

Comments
 (0)