Add a xtype parameter for future ES expansion
This commit is contained in:
parent
3111783f69
commit
bc0a60a601
|
@ -516,6 +516,7 @@ class Transactions(object):
|
||||||
def write_to_es(self, msgtype, cast):
|
def write_to_es(self, msgtype, cast):
|
||||||
cast["type"] = msgtype
|
cast["type"] = msgtype
|
||||||
cast["ts"] = str(datetime.now().isoformat())
|
cast["ts"] = str(datetime.now().isoformat())
|
||||||
|
cast["xtype"] = "tx"
|
||||||
self.es.index(index=settings.ES.Index, document=cast)
|
self.es.index(index=settings.ES.Index, document=cast)
|
||||||
|
|
||||||
def get_remaining(self):
|
def get_remaining(self):
|
||||||
|
|
Loading…
Reference in New Issue