summaryrefslogtreecommitdiffstats
path: root/python.d/python_modules/bases/charts.py
diff options
context:
space:
mode:
Diffstat (limited to 'python.d/python_modules/bases/charts.py')
-rw-r--r--python.d/python_modules/bases/charts.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python.d/python_modules/bases/charts.py b/python.d/python_modules/bases/charts.py
index 1e9348e5..5394fbf6 100644
--- a/python.d/python_modules/bases/charts.py
+++ b/python.d/python_modules/bases/charts.py
@@ -217,6 +217,12 @@ class Chart:
safe_print(chart + dimensions + variables)
+ def can_be_updated(self, data):
+ for dim in self.dimensions:
+ if dim.get_value(data) is not None:
+ return True
+ return False
+
def update(self, data, interval):
updated_dimensions, updated_variables = str(), str()