events: Change event notifiers to delete and update keys. (#2742)

ElasticSearch and Redis are both treated like a database.
Each indexs are based on the object names uniquely indentifying
the event. Upon each delete event of the named object deletes
the index on elasticsearch and redis respectively.
This commit is contained in:
Harshavardhana
2016-09-20 02:11:17 -07:00
committed by GitHub
parent c4964232eb
commit 0a3448c8b6
3 changed files with 40 additions and 11 deletions

View File

@@ -204,7 +204,9 @@ func eventNotify(event eventData) {
targetLog := globalEventNotifier.GetQueueTarget(qConfig.QueueARN)
if targetLog != nil {
targetLog.WithFields(logrus.Fields{
"Records": notificationEvent,
"Key": objectName,
"EventType": eventType,
"Records": notificationEvent,
}).Info()
}
}