func NewEventLostWriteEvent(mapName string, perEventPerCPU map[string]uint64) (*rules.Rule, *CustomEvent) {
	return newRule(&rules.RuleDefinition{
			ID: LostEventsRuleID,
		}), newCustomEvent(model.CustomLostWriteEventType, EventLostWrite{
			Name:      mapName,
			Lost:      perEventPerCPU,
			Timestamp: time.Now(),
		}.MarshalJSON)
}
// NewEventLostWriteEvent returns the rule and a populated custom event for a lost_events_write event
NewEventLostWriteEvent returns the rule and a populated custom event for a lost_events_write event
// NewEventLostWriteEvent returns the rule and a populated custom event for a lost_events_write event
func NewEventLostWriteEvent(mapName string, perEventPerCPU map[string]uint64) (*rules.Rule, *CustomEvent) {
	return newRule(&rules.RuleDefinition{
			ID: LostEventsRuleID,
		}), newCustomEvent(model.CustomLostWriteEventType, EventLostWrite{
			Name:      mapName,
			Lost:      perEventPerCPU,
			Timestamp: time.Now(),
		}.MarshalJSON)
}
func NewEventLostWriteEvent ( mapName string , perEventPerCPU map [ string ] uint64 ) ( * rules . Rule , * CustomEvent ) { return newRule ( & rules . RuleDefinition { ID : LostEventsRuleID , } ) , newCustomEvent ( model . CustomLostWriteEventType , EventLostWrite { Name : mapName , Lost : perEventPerCPU , Timestamp : time . Now ( ) , } . MarshalJSON ) }
NewEventLostWriteEvent returns the rule and a populated custom event for a lost_events_write event
NewEventLostWriteEvent returns the rule and a populated custom event for a lost_events_write event