{% extends "base.html" %} {% block content %} <div id=psla class=analyze> <h1>Perforce Server Log Analyzer - local Docker version</h1> {% from "_formhelpers.html" import render_field %} <form action="{{ url_for('analyzeLog') }}" method="post" role="form"> {{ form.csrf_token }} {{ render_field(form.logFile) }} <p>{{ form.submit() }}</p> </form> {% if dbName %} <h2>Analyze Server Log: '{{ dbName }}'</h2> <div class="charts text-center"> {% for chart in charts %} <h2>{{ chart.title }}</h2> <p>{{ chart.explanation }}</p> <p>{{ chart.sql }}</p> <p>Time to run query: {{ chart.time_taken }}</p> <div class="row"><div id="{{ chart.id }}"></div></div><hr> <!-- Placeholder for the tooltip --> <div id="vis-tooltip-{{ chart.id }}" class="vg-tooltip"></div> {% endfor %} </div> {% endif %} {% for table in tables %} <h2>{{ table.title }}</h2> <p>{{ table.explanation }}</p> <p>{{ table.sql }}</p> <p>Time to run query: {{ table.time_taken }}</p> {{ table.data|safe }} {% endfor %} </div> <!--This is used for Altair graph--> <footer> <script src="https://d3js.org/d3.v3.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/vega@3.2.1"></script> <script src="https://cdn.jsdelivr.net/npm/vega-lite@2.3.1"></script> <script src="https://cdn.jsdelivr.net/npm/vega-embed@3.2.0"></script> <!-- Vega Tooltip --> <script src="https://vega.github.io/vega-tooltip/vega-tooltip.min.js"></script> <link rel="stylesheet" type="text/css" href="https://vega.github.io/vega-tooltip/vega-tooltip.css"> <!-- Render Charts --> <script type="text/javascript"> function embed_graph(div, chartJSON) { var opt = { mode: "vega-lite", renderer: "svg", actions: {export: true, source: false, editor: false} }; vegaEmbed("#" + div, chartJSON, opt) .then(function(result) { // result.view is the Vega View, vlSpec is the original Vega-Lite specification vegaTooltip.vegaLite(result.view, chartJSON); }) .catch(console.error); } </script> {% for chart in charts %} <script type="text/javascript"> embed_graph("{{ chart.id }}", {{ chart.data|safe }}) </script> <!-- Placeholder for the tooltip --> {% endfor %} </footer> {% endblock %}
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#12 | 25220 | Robert Cowham |
Moved project files to new location: //guest/perforce_software/log-analyzer/psla/... Required by Swarm project structure for workshop. |
||
#11 | 23933 | Robert Cowham | Create new seperate charting page | ||
#10 | 23893 | Robert Cowham | Comment out Ajax call for now relating to progress bar | ||
#9 | 23891 | Robert Cowham | Comment out progress bar for now | ||
#8 | 23890 | Robert Cowham | Basic progressbar | ||
#7 | 23846 | Robert Cowham | Made sql field larger | ||
#6 | 23845 | Robert Cowham | Basic query form working | ||
#5 | 23793 | Robert Cowham | Limit queries | ||
#4 | 23785 | Robert Cowham |
Tweak interface Remove unused module |
||
#3 | 23773 | Robert Cowham | Only display rest of page when analyzing | ||
#2 | 23772 | Robert Cowham | Allow user to select from all db files | ||
#1 | 23765 | Robert Cowham | Moved things down one level to psla dir to make it easier to see what belongs | ||
//guest/perforce_software/utils/log_analyzer/app/templates/analyzeLog.html | |||||
#9 | 23761 | Robert Cowham | Create a parameterised loop for graphs | ||
#8 | 23760 | Robert Cowham | Simple basics with Altair chart | ||
#7 | 23724 | Robert Cowham | Tweak text | ||
#6 | 23723 | Robert Cowham | First basic chart with plotly | ||
#5 | 23718 | Robert Cowham |
New statements. Time query execution |
||
#4 | 23712 | Robert Cowham | Proper formatting of table data | ||
#3 | 23711 | Robert Cowham | More or less working with multiple SQL statements | ||
#2 | 23705 | Robert Cowham | Basics working in simplified form | ||
#1 | 23704 | Robert Cowham | Save before simplifying |