Skip to content

Commit

Permalink
Make gscloud-server-events a bit more useful
Browse files Browse the repository at this point in the history
Add initiator column to events sub-commands and remove unneeded columns.

Fixes #110
  • Loading branch information
bkircher committed Feb 9, 2021
1 parent 78a6275 commit f94d804
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,18 +352,16 @@ Only list request IDs of a server (in case you need to tell suport what happened
} else {
var rows [][]string
heading := []string{
"time", "request id", "request type", "activity", "status", "details", "user id",
"time", "request id", "request type", "details", "initiator",
}
for _, event := range events {
fill := [][]string{
{
event.Properties.Timestamp.Local().Format(time.RFC3339),
event.Properties.RequestUUID,
event.Properties.RequestType,
event.Properties.Activity,
event.Properties.RequestStatus,
event.Properties.Change,
event.Properties.UserUUID,
event.Properties.Initiator,
},
}
rows = append(rows, fill...)
Expand Down

0 comments on commit f94d804

Please sign in to comment.