示例#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)
示例#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)
示例#3
0
文件: tasks.py 项目: carlio/tessera
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)