Guest User

Untitled

a guest
Jan 2nd, 2024
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. <div class="status-cards">
  2. <div class="card cpu-card">
  3. <h3>CPU Usage</h3>
  4. <canvas id="cpuChart"></canvas>
  5. </div>
  6. <div class="card ram-card">
  7. <h3>RAM Usage</h3>
  8. <canvas id="ramChart"></canvas>
  9. </div>
  10. <div class="card disk-card">
  11. <h3>Disk Usage</h3>
  12. <canvas id="diskChart"></canvas>
  13. </div>
  14. </div>
  15. <div class="network-card">
  16. <div class="network-half">
  17. <h3>Outgoing Network Data</h3>
  18. <button onclick="fetchAndRenderNetworkData()">Refresh Data</button>
  19. <canvas id="networkOutChart"></canvas>
  20. </div>
  21. <div class="network-half">
  22. <h3>Incoming Network Data</h3>
  23. <button onclick="fetchAndRenderNetworkData()">Refresh Data</button>
  24. <canvas id="networkInChart"></canvas>
  25. </div>
  26. </div>
  27. <div class="card uptime-card">
  28. <h3>Uptime</h3>
  29. <canvas id="uptimeChart"></canvas>
  30. </div>
  31.  
  32. <script>
  33. window.historicalStatusData = <%= @historical_status.to_json %>;
  34. window.currentStatusData = <%= @current_status.to_json %>;
  35. </script>
  36. <script src="./js/overall_network_status.js"></script>
  37.  
Advertisement
Add Comment
Please, Sign In to add comment