Exemple #1
0
def export_json(c, dir, tag=None, graphite=DEFAULT_GRAPHITE_URL, tessera=DEFAULT_TESSERA_URL):
    """
    Export dashboards as JSON to a local directory.
    """
    msg = 'Exporting dashboards (tagged: {0}) as JSON to directory {1}'
    log.info(msg.format(tag, dir))
    exporter = JsonExporter(graphite, tessera)
    exporter.export(dir, tag)
Exemple #2
0
def export_json(c,
                dir,
                tag=None,
                graphite=DEFAULT_GRAPHITE_URL,
                tessera=DEFAULT_TESSERA_URL):
    """
    Export dashboards as JSON to a local directory.
    """
    msg = 'Exporting dashboards (tagged: {0}) as JSON to directory {1}'
    log.info(msg.format(tag, dir))
    exporter = JsonExporter(graphite, tessera)
    exporter.export(dir, tag)
Exemple #3
0
def export_json(c, dir, tag=None):
    msg = 'Exporting dashboards (tagged: {0}) as JSON to directory {1}'
    log.info(msg.format(tag, dir))
    JsonExporter.export(dir, tag)