Skip to content

Commit

Permalink
improvement: output
Browse files Browse the repository at this point in the history
  • Loading branch information
shaowenchen committed Dec 23, 2024
1 parent 40ef33d commit 9082678
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/event/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ type EventTaskRunReport struct {
func (e EventTaskRunReport) Readable(ce cloudevents.Event) string {
var result = &strings.Builder{}
AppendCluser(result, ce)
AppendField(result, `host: `, e.Host)
AppendField(result, `kind: `, e.Kind)
AppendField(result, `threshold: `, e.Threshold)
AppendField(result, `operator: `, e.Operator)
AppendField(result, `host`, e.Host)
AppendField(result, `kind`, e.Kind)
AppendField(result, `threshold`, e.Threshold)
AppendField(result, `operator`, e.Operator)
AppendField(result, `value: `, e.Value)
AppendField(result, `status: `, e.Status)
AppendField(result, `message: `, e.Message)
AppendField(result, `status`, e.Status)
AppendField(result, `message`, e.Message)
AppendField(result, "time", ce.Time().Local().Format("2006-01-02 15:04:05"))
return result.String()
}
Expand Down

0 comments on commit 9082678

Please sign in to comment.