python.d charts: "can_be_updated" method added to chart
lgz committed
Mar 1, 2018 at 12:26 UTC
7a36afed0cc3c8792d8664f9f70f16d8f3733e48
1 file changed
+6
python.d/python_modules/bases/charts.py
+6
@@ -217,6 +217,12 @@ class Chart:
217
218
safe_print(chart + dimensions + variables)
219
220
+ def can_be_updated(self, data):
221
+ for dim in self.dimensions:
222
+ if dim.get_value(data) is not None:
223
+ return True
224
+ return False
225
+
226
def update(self, data, interval):
227
updated_dimensions, updated_variables = str(), str()
228