Beispiel #1
0
def main():
    options, args = Init.parse_input()
    all_nodes = Init.validate_path(options.filepath)
    for node in all_nodes:
        hourly_breakdown, system_stats = Parser.start(all_nodes[node],
                                                      options.verbose)
        if options.json == True:
            export_json(node, hourly_breakdown, system_stats)
            print(
                f"Created '{node}-access_logs_parsed.json' in working directory"
            )
        else:
            Graph.graph_parsed(node, hourly_breakdown, system_stats,
                               options.dark_mode, options.verbose,
                               options.throttle_graph)
            combine_png_to_pdf(node)
            print(f"Created pdf of all graphs for {node} found at {node}.pdf")