1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Handle offline scenarios for OpsGenie

This commit is contained in:
Chris Cummer
2018-04-09 09:48:45 -07:00
committed by Chris Cummer
parent 204e3b4032
commit aa658db210
6 changed files with 46 additions and 32 deletions

View File

@@ -69,10 +69,9 @@ func (widget *Widget) contentFrom(deploys []nr.ApplicationDeployment) string {
for _, deploy := range deploys {
if (deploy.Revision != "") && wtf.Exclude(revisions, deploy.Revision) {
str = str + fmt.Sprintf(
" %03d [green]%s[white] %-6s %s\n",
deploy.ID%1000,
" [green]%s[white] %s %-16s\n",
deploy.Revision[0:8],
deploy.Timestamp.Format("Jan 2"),
deploy.Timestamp.Format("Jan 02, 15:04"),
wtf.NameFromEmail(deploy.User),
)