Änderungen von Dokument Servermeldungen (SaaS)
Zuletzt geändert von MACH ProForms GmbH am 22.07.2024
Von Version 17.1
bearbeitet von MACH ProForms GmbH
am 22.07.2024
am 22.07.2024
Änderungskommentar:
Es gibt keinen Kommentar für diese Version
Auf Version 8.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
-
... ... @@ -2,6 +2,11 @@ 2 2 3 3 Hier finden unsere SaaS-Kunden und Benutzer eine dynamische Anzeige der Uptime der Services und die geplanten Wartungsintervalle. 4 4 5 +(% class="box infomessage" %) 6 +((( 7 +Der Service befindet sich derzeit im Wartungsmodus. Wir bitte um Ihr Verständnis und wir arbeiten mit Hochdruck an der Fertigstellung. 8 +))) 9 + 5 5 {{html}} 6 6 <style> 7 7 .status-up { ... ... @@ -13,18 +13,18 @@ 13 13 .status-maintenance { 14 14 color: gold; /* Gold text color for "Under Maintenance" status */ 15 15 } 21 + 16 16 </style> 17 17 <!-- Servers Status --> 18 18 <div> 19 19 <h2>Überblick Status</h2> 20 20 21 - <h3>Primärsysteme</h3> 22 - <ul class="productive-systems-list ikiss-unordered-list"></ul> 27 + <h3>Primärsysteme</h3> 28 + <ul class="productive-systems-list ikiss-unordered-list"></ul> 23 23 24 - <h3>Sekundärsysteme</h3> 25 - <ul class="customer-systems-list ikiss-unordered-list"></ul> 30 + <h3>Sekundärsysteme</h3> 31 + <ul class="customer-systems-list ikiss-unordered-list"></ul> 26 26 </div> 27 - 28 28 <!-- System Update --> 29 29 <div> 30 30 <h2>System-Updates</h2> ... ... @@ -38,7 +38,6 @@ 38 38 </ul> 39 39 </div> 40 40 </div> 41 - 42 42 <!-- System Maintenance --> 43 43 <div> 44 44 <h2>System-Wartung</h2> ... ... @@ -47,14 +47,16 @@ 47 47 </p> 48 48 <h3>Nächster Wartungstermin</h3> 49 49 <div> 50 - 51 - 52 - 54 + <ul> 55 + <li><strong><span id="plannedMaintenance"></span></strong></li> 56 + </ul> 53 53 </div> 54 54 </div> 55 55 56 56 <script type="text/javascript"> 61 + // Function to fetch data from api-status.php and update the HTML 57 57 function fetchData() { 63 +// fetch('api-status.php') // Local Call 58 58 fetch('https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger') 59 59 .then(response => response.json()) 60 60 .then(data => { ... ... @@ -64,7 +64,7 @@ 64 64 data.hostStatus.forEach(host => { 65 65 const listItem = document.createElement('li'); 66 66 listItem.innerHTML = `<span class="host-name">${host.host}:</span> <span class="status-${getStatusColor(host.status)}"><strong>${getStatusText(host.status)}</strong></span>`; 67 - 73 + 68 68 if (host.host === "pdf.form-solutions.net" || host.host === "onlinedienste.form-solutions.de") { 69 69 productiveSystemsList.appendChild(listItem); 70 70 } else { ... ... @@ -72,9 +72,10 @@ 72 72 } 73 73 }); 74 74 81 + // Update Next Planned Update Date 75 75 const plannedUpdate = document.getElementById('plannedUpdate'); 76 76 plannedUpdate.textContent = data.plannedUpdate; 77 - 84 + // Update Next Planned Maintenance Date 78 78 const plannedMaintenance = document.getElementById('plannedMaintenance'); 79 79 plannedMaintenance.textContent = data.plannedMaintenance; 80 80 }) ... ... @@ -83,13 +83,13 @@ 83 83 }); 84 84 } 85 85 86 - // Function to get the appropriate status text93 + // Function to get the appropriate status color class 87 87 function getStatusText(status) { 88 88 switch (status) { 89 89 case 'Up': 90 90 return 'Verfügbar'; 91 91 case 'Down': 92 - return 'Beeintr ächtigung';99 + return 'Beeinträchtigung'; 93 93 case 'Under Maintenance': 94 94 return 'Wartung'; 95 95 default: ... ... @@ -111,6 +111,7 @@ 111 111 } 112 112 } 113 113 121 + // Call fetchData when the page loads 114 114 window.addEventListener('load', fetchData); 115 115 </script> 116 116 {{/html}}