Änderungen von Dokument Servermeldungen (SaaS)
Zuletzt geändert von MACH ProForms GmbH am 22.07.2024
Von Version 12.1
bearbeitet von MACH ProForms GmbH
am 16.07.2024
am 16.07.2024
Änderungskommentar:
Es gibt keinen Kommentar für diese Version
Auf Version 11.1
bearbeitet von MACH ProForms GmbH
am 16.07.2024
am 16.07.2024
Änderungskommentar:
Es gibt keinen Kommentar für diese Version
Zusammenfassung
-
Seiteneigenschaften (1 geändert, 0 hinzugefügt, 0 gelöscht)
Details
- Seiteneigenschaften
-
- Inhalt
-
... ... @@ -8,17 +8,17 @@ 8 8 ))) 9 9 10 10 {{html}} 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 11 +<style> 12 + .status-up { 13 + color: rgb(3, 133, 3); /* Green text color for "UP" status */ 14 + } 15 + .status-down { 16 + color: rgb(187, 9, 9); /* Red text color for "DOWN" status */ 17 + } 18 + .status-maintenance { 19 + color: gold; /* Gold text color for "Under Maintenance" status */ 20 + } 21 +</style> 22 22 <!-- Servers Status --> 23 23 <div> 24 24 <h2>Überblick Status</h2> ... ... @@ -61,8 +61,15 @@ 61 61 <script type="text/javascript"> 62 62 function fetchData() { 63 63 fetch('https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger') 64 - .then(response => response.json()) 64 + .then(response => { 65 + if (!response.ok) { 66 + throw new Error('Network response was not ok ' + response.statusText); 67 + } 68 + return response.json(); 69 + }) 65 65 .then(data => { 71 + console.log('Data fetched successfully:', data); // Log the fetched data 72 + 66 66 const productiveSystemsList = document.querySelector('.productive-systems-list'); 67 67 const customerSystemsList = document.querySelector('.customer-systems-list'); 68 68 ... ... @@ -84,7 +84,7 @@ 84 84 plannedMaintenance.textContent = data.plannedMaintenance; 85 85 }) 86 86 .catch(error => { 87 - console.error('Error fetching data:', error); 94 + console.error('Error fetching data:', error); // Improved error logging 88 88 }); 89 89 } 90 90