Wiki-Quellcode von Servermeldungen (SaaS)
                  Version 18.1 von MACH formsolutions am 22.07.2024
              
      Verstecke letzte Bearbeiter
| author | version | line-number | content | 
|---|---|---|---|
|  | 2.1 | 1 | = Erreichbarkeit und Wartung der Services = | 
| 2 | |||
| 3 | Hier finden unsere SaaS-Kunden und Benutzer eine dynamische Anzeige der Uptime der Services und die geplanten Wartungsintervalle. | ||
| 4 | |||
|  | 1.1 | 5 | {{html}} | 
|  | 2.1 | 6 | <!-- Servers Status --> | 
| 7 | <div> | ||
| 8 | <h2>Überblick Status</h2> | ||
| 9 | |||
|  | 10.1 | 10 | <h3>Primärsysteme</h3> | 
| 11 | <ul class="productive-systems-list ikiss-unordered-list"></ul> | ||
|  | 2.1 | 12 | |
|  | 10.1 | 13 | <h3>Sekundärsysteme</h3> | 
| 14 | <ul class="customer-systems-list ikiss-unordered-list"></ul> | ||
|  | 2.1 | 15 | </div> | 
|  | 10.1 | 16 | |
|  | 2.1 | 17 | <!-- System Update --> | 
| 18 | <div> | ||
| 19 | <h2>System-Updates</h2> | ||
| 20 | <p> | ||
|  | 4.1 | 21 | Updates der MACH formsolutions Plattform werden grundsätzlich Montags zwischen 02:00 Uhr und 03:00 Uhr eingespielt. | 
|  | 2.1 | 22 | </p> | 
| 23 | <h3>Nächster Updatetermin</h3> | ||
| 24 | <div> | ||
| 25 | <ul> | ||
| 26 | <li><strong><span id="plannedUpdate"></span></strong></li> | ||
| 27 | </ul> | ||
| 28 | </div> | ||
| 29 | </div> | ||
|  | 10.1 | 30 | |
|  | 2.1 | 31 | <!-- System Maintenance --> | 
| 32 | <div> | ||
| 33 | <h2>System-Wartung</h2> | ||
| 34 | <p> | ||
| 35 | Wartungen an unserem System finden regelmäßig am letzten Donnerstag eines Monats zwischen 22:00 Uhr und 24:00 Uhr statt. | ||
| 36 | </p> | ||
| 37 | <h3>Nächster Wartungstermin</h3> | ||
| 38 | <div> | ||
|  | 10.1 | 39 | <ul> | 
| 40 | <li><strong><span id="plannedMaintenance"></span></strong></li> | ||
| 41 | </ul> | ||
|  | 2.1 | 42 | </div> | 
| 43 | </div> | ||
| 44 | |||
|  | 1.1 | 45 | <script type="text/javascript"> | 
|  | 2.1 | 46 | function fetchData() { | 
|  | 7.1 | 47 | fetch('https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger') | 
|  | 12.1 | 48 | .then(response => response.json()) | 
|  | 2.1 | 49 | .then(data => { | 
| 50 | const productiveSystemsList = document.querySelector('.productive-systems-list'); | ||
| 51 | const customerSystemsList = document.querySelector('.customer-systems-list'); | ||
|  | 10.1 | 52 | |
|  | 2.1 | 53 | data.hostStatus.forEach(host => { | 
| 54 | const listItem = document.createElement('li'); | ||
|  | 18.1 | 55 | const statusSpan = document.createElement('span'); | 
| 56 | statusSpan.innerHTML = `<strong>${getStatusText(host.status)}</strong>`; | ||
|  | 10.1 | 57 | |
|  | 18.1 | 58 | switch (host.status) { | 
| 59 | case 'Up': | ||
| 60 | statusSpan.style.color = 'rgb(3, 133, 3)'; | ||
| 61 | break; | ||
| 62 | case 'Down': | ||
| 63 | statusSpan.style.color = 'rgb(187, 9, 9)'; | ||
| 64 | break; | ||
| 65 | case 'Under Maintenance': | ||
| 66 | statusSpan.style.color = 'gold'; | ||
| 67 | break; | ||
| 68 | } | ||
| 69 | |||
| 70 | listItem.innerHTML = `<span class="host-name">${host.host}:</span> `; | ||
| 71 | listItem.appendChild(statusSpan); | ||
| 72 | |||
|  | 2.1 | 73 | if (host.host === "pdf.form-solutions.net" || host.host === "onlinedienste.form-solutions.de") { | 
| 74 | productiveSystemsList.appendChild(listItem); | ||
| 75 | } else { | ||
| 76 | customerSystemsList.appendChild(listItem); | ||
| 77 | } | ||
| 78 | }); | ||
|  | 10.1 | 79 | |
|  | 2.1 | 80 | const plannedUpdate = document.getElementById('plannedUpdate'); | 
| 81 | plannedUpdate.textContent = data.plannedUpdate; | ||
|  | 10.1 | 82 | |
|  | 2.1 | 83 | const plannedMaintenance = document.getElementById('plannedMaintenance'); | 
| 84 | plannedMaintenance.textContent = data.plannedMaintenance; | ||
| 85 | }) | ||
| 86 | .catch(error => { | ||
|  | 12.1 | 87 | console.error('Error fetching data:', error); | 
|  | 2.1 | 88 | }); | 
| 89 | } | ||
| 90 | |||
|  | 10.1 | 91 | // Function to get the appropriate status text | 
|  | 2.1 | 92 | function getStatusText(status) { | 
| 93 | switch (status) { | ||
| 94 | case 'Up': | ||
| 95 | return 'Verfügbar'; | ||
| 96 | case 'Down': | ||
|  | 10.1 | 97 | return 'Beeinträchtigung'; | 
|  | 2.1 | 98 | case 'Under Maintenance': | 
| 99 | return 'Wartung'; | ||
| 100 | default: | ||
| 101 | return ''; | ||
| 102 | } | ||
| 103 | } | ||
| 104 | |||
| 105 | window.addEventListener('load', fetchData); | ||
|  | 1.1 | 106 | </script> | 
| 107 | {{/html}} | ||
|  | 2.1 | 108 | |
|  | 3.1 | 109 | = Kontakt = | 
|  | 2.1 | 110 | |
|  | 3.1 | 111 | Bei Fragen oder Hilfestellungen zu unseren Diensten können Sie uns über den [[MACH ProForms Support>>doc:Main.10_Hilfe.WebHome]] erreichen. | 
