From f70227a309e5fd21f1e71d2c0f829febbaa78551 Mon Sep 17 00:00:00 2001 From: mrblacyk Date: Sat, 9 Mar 2019 02:20:33 -0800 Subject: [PATCH] Fixing base agg --- scripts/KibanaStuff/metrics.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/KibanaStuff/metrics.py b/scripts/KibanaStuff/metrics.py index a43cbc5..ce90688 100644 --- a/scripts/KibanaStuff/metrics.py +++ b/scripts/KibanaStuff/metrics.py @@ -5,6 +5,7 @@ # ########################################################################### # import json +import datetime class BaseKibanaAgg: @@ -16,10 +17,7 @@ class BaseKibanaAgg: self.enabled = str() self.type = str() self.schema = str() - self.params = { - "field": "", - "customLabel": "", - } + self.params = dict() def __call__(self): @@ -89,6 +87,7 @@ class BaseKibanaDoc: def __call__(self): + self.updated_at = datetime.datetime.today().isoformat() + "Z" return self.__dict__