(items []contract.HeartbeatWakeEventPayload)
| 1357 | } |
| 1358 | |
| 1359 | func wakeEventsTable(items []contract.HeartbeatWakeEventPayload) string { |
| 1360 | rows := make([][]string, 0, len(items)) |
| 1361 | for _, item := range items { |
| 1362 | rows = append(rows, []string{ |
| 1363 | stringOrDash(item.ID), |
| 1364 | stringOrDash(item.SessionID), |
| 1365 | stringOrDash(string(item.Source)), |
| 1366 | stringOrDash(string(item.Result)), |
| 1367 | stringOrDash(string(item.Reason)), |
| 1368 | stringOrDash(formatTime(item.CreatedAt)), |
| 1369 | }) |
| 1370 | } |
| 1371 | return renderHumanTable( |
| 1372 | "Wake Events", |
| 1373 | []string{ |
| 1374 | "ID", |
| 1375 | authoredContextSessionValue, |
| 1376 | authoredContextSourceValue, |
| 1377 | authoredContextResultValue, |
| 1378 | authoredContextReasonValue, |
| 1379 | authoredContextCreatedValue, |
| 1380 | }, |
| 1381 | rows, |
| 1382 | ) |
| 1383 | } |
no test coverage detected