Set timestamp on created keepalive events
package keepalived
import (
+ "time"
+
"github.com/sensu/sensu-go/backend/messaging"
"github.com/sensu/sensu-go/types"
)
@@ -56,6 +58,7 @@ func createEvent(entity *types.Entity) *types.Event {
Status: 1,
}
keepaliveEvent := &types.Event{
+ Timestamp: time.Now().Unix(),
Entity: entity,
Check: keepaliveCheck,
}
