This commit is contained in:
2020-03-26 09:40:05 +01:00
133 changed files with 390 additions and 7 deletions

0
resources/js/app.js vendored Executable file → Normal file
View File

0
resources/js/bootstrap.js vendored Executable file → Normal file
View File

0
resources/js/components/DemoLine.vue Executable file → Normal file
View File

0
resources/js/components/DiskGraph.vue Executable file → Normal file
View File

0
resources/js/components/ExampleComponent.vue Executable file → Normal file
View File

0
resources/js/components/LoadGraph.vue Executable file → Normal file
View File

0
resources/js/components/MemoryGraph.vue Executable file → Normal file
View File

0
resources/js/components/NetworkGraph.vue Executable file → Normal file
View File

0
resources/js/components/ProcessesGraph.vue Executable file → Normal file
View File

0
resources/js/components/SearchInput.vue Executable file → Normal file
View File

0
resources/js/components/TempGraph.vue Executable file → Normal file
View File

0
resources/js/components/item-template.vue Executable file → Normal file
View File

0
resources/lang/en/auth.php Executable file → Normal file
View File

0
resources/lang/en/pagination.php Executable file → Normal file
View File

0
resources/lang/en/passwords.php Executable file → Normal file
View File

0
resources/lang/en/validation.php Executable file → Normal file
View File

0
resources/sass/_suggest.scss vendored Executable file → Normal file
View File

0
resources/sass/_variables.scss vendored Executable file → Normal file
View File

0
resources/sass/app.scss vendored Executable file → Normal file
View File

View File

@@ -0,0 +1,62 @@
@extends('welcome')
@section('content')
<div class="title m-b-md">
Monitoring {{ $type }} on OkU TT
</div>
Parametre</br>
Analyza uzivatela: {{ $user }} <br/>
Datum od: {{ $start }} <br/>
Datum do: {{ $end }} <br/>
<div id="myDiv"><!-- Plotly chart will be drawn inside this DIV --></div>
<script>
Plotly.d3.csv("{!! route('csv',['type' => $type, 'start'=> $start, 'end'=> $end, 'user'=> $user]) !!}", function(err, rows){
function unpack(rows, key) {
return rows.map(function(row) { return row[key]; });
}
var trace1 = {
type: "scatter",
mode: "lines",
name: "Recived bytes",
x: unpack(rows, 'Date'),
y: unpack(rows, 'Recv'),
line: {color: '#17BECF'}
}
var trace2 = {
type: "scatter",
mode: "lines",
name: "Send bytes",
x: unpack(rows, 'Date'),
y: unpack(rows, 'Send'),
line: {color: '#7F7F7F'}
}
var data = [trace1,trace2];
var layout = {
title: 'Bandwidth',
xaxis: {
type: 'date'
},
yaxis: {
autorange: true,
//tickformat: '.2f',
type: 'linear'
}
};
Plotly.newPlot('myDiv', data, layout);
})
</script>
@endsection

0
resources/views/master.blade.php Executable file → Normal file
View File

0
resources/views/search.blade.php Executable file → Normal file
View File

0
resources/views/welcome.blade.php Executable file → Normal file
View File

0
resources/views/welcome.blade.php.old Executable file → Normal file
View File