Skip to content

Commit ae36645

Browse files
authored
Revert "@timestamp handling from opsgenie#165 (#92)" (#102)
This reverts commit c572daa.
1 parent c572daa commit ae36645

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/kube/event.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ type EnhancedEvent struct {
1212
corev1.Event `json:",inline"`
1313
ClusterName string `json:"clusterName"`
1414
InvolvedObject EnhancedObjectReference `json:"involvedObject"`
15-
Timestamp time.Time `json:"@timestamp"`
1615
}
1716

1817
// DeDot replaces all dots in the labels and annotations with underscores. This is required for example in the
@@ -48,7 +47,6 @@ type EnhancedObjectReference struct {
4847
// ToJSON does not return an error because we are %99 confident it is JSON serializable.
4948
// TODO(makin) Is it a bad practice? It's open to discussion.
5049
func (e *EnhancedEvent) ToJSON() []byte {
51-
e.Timestamp = e.FirstTimestamp.Time
5250
b, _ := json.Marshal(e)
5351
return b
5452
}

0 commit comments

Comments
 (0)