]> git.ipfire.org Git - collecty.git/blobdiff - src/collecty/daemon.py
Add graph info functionality
[collecty.git] / src / collecty / daemon.py
index 27c587f04547816772af511378017a6ff0f48cfb..e8d402e7e45b1150303c42b07099d59f74b74c35 100644 (file)
@@ -196,6 +196,13 @@ class Collecty(object):
 
                return plugin.generate_graph(template_name, *args, **kwargs)
 
+       def graph_info(self, template_name, *args, **kwargs):
+               plugin = self.get_plugin_from_template(template_name)
+               if not plugin:
+                       raise RuntimeError("Could not find template %s" % template_name)
+
+               return plugin.graph_info(template_name, *args, **kwargs)
+
        def create_worker_threads(self, num=None):
                """
                        Creates a number of worker threads