Ä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 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
-
... ... @@ -18,18 +18,18 @@ 18 18 .status-maintenance { 19 19 color: gold; /* Gold text color for "Under Maintenance" status */ 20 20 } 21 + 21 21 </style> 22 22 <!-- Servers Status --> 23 23 <div> 24 24 <h2>Überblick Status</h2> 25 25 26 - <h3>Primärsysteme</h3> 27 - <ul class="productive-systems-list ikiss-unordered-list"></ul> 27 + <h3>Primärsysteme</h3> 28 + <ul class="productive-systems-list ikiss-unordered-list"></ul> 28 28 29 - <h3>Sekundärsysteme</h3> 30 - <ul class="customer-systems-list ikiss-unordered-list"></ul> 30 + <h3>Sekundärsysteme</h3> 31 + <ul class="customer-systems-list ikiss-unordered-list"></ul> 31 31 </div> 32 - 33 33 <!-- System Update --> 34 34 <div> 35 35 <h2>System-Updates</h2> ... ... @@ -43,7 +43,6 @@ 43 43 </ul> 44 44 </div> 45 45 </div> 46 - 47 47 <!-- System Maintenance --> 48 48 <div> 49 49 <h2>System-Wartung</h2> ... ... @@ -52,14 +52,16 @@ 52 52 </p> 53 53 <h3>Nächster Wartungstermin</h3> 54 54 <div> 55 - 56 - 57 - 54 + <ul> 55 + <li><strong><span id="plannedMaintenance"></span></strong></li> 56 + </ul> 58 58 </div> 59 59 </div> 60 60 61 61 <script type="text/javascript"> 61 + // Function to fetch data from api-status.php and update the HTML 62 62 function fetchData() { 63 +// fetch('api-status.php') // Local Call 63 63 fetch('https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger') 64 64 .then(response => response.json()) 65 65 .then(data => { ... ... @@ -69,7 +69,7 @@ 69 69 data.hostStatus.forEach(host => { 70 70 const listItem = document.createElement('li'); 71 71 listItem.innerHTML = `<span class="host-name">${host.host}:</span> <span class="status-${getStatusColor(host.status)}"><strong>${getStatusText(host.status)}</strong></span>`; 72 - 73 + 73 73 if (host.host === "pdf.form-solutions.net" || host.host === "onlinedienste.form-solutions.de") { 74 74 productiveSystemsList.appendChild(listItem); 75 75 } else { ... ... @@ -77,9 +77,10 @@ 77 77 } 78 78 }); 79 79 81 + // Update Next Planned Update Date 80 80 const plannedUpdate = document.getElementById('plannedUpdate'); 81 81 plannedUpdate.textContent = data.plannedUpdate; 82 - 84 + // Update Next Planned Maintenance Date 83 83 const plannedMaintenance = document.getElementById('plannedMaintenance'); 84 84 plannedMaintenance.textContent = data.plannedMaintenance; 85 85 }) ... ... @@ -88,13 +88,13 @@ 88 88 }); 89 89 } 90 90 91 - // Function to get the appropriate status text93 + // Function to get the appropriate status color class 92 92 function getStatusText(status) { 93 93 switch (status) { 94 94 case 'Up': 95 95 return 'Verfügbar'; 96 96 case 'Down': 97 - return 'Beeintr ächtigung';99 + return 'Beeinträchtigung'; 98 98 case 'Under Maintenance': 99 99 return 'Wartung'; 100 100 default: ... ... @@ -116,6 +116,7 @@ 116 116 } 117 117 } 118 118 121 + // Call fetchData when the page loads 119 119 window.addEventListener('load', fetchData); 120 120 </script> 121 121 {{/html}}