Änderungen von Dokument Servermeldungen (SaaS)

Zuletzt geändert von MACH ProForms GmbH am 22.07.2024

Von Version 13.1
bearbeitet von MACH ProForms GmbH
am 17.07.2024
Änderungskommentar: Es gibt keinen Kommentar für diese Version
Auf Version 7.1
bearbeitet von MACH ProForms GmbH
am 16.07.2024
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

Seiteneigenschaften
Inhalt
... ... @@ -3,6 +3,9 @@
3 3  Hier finden unsere SaaS-Kunden und Benutzer eine dynamische Anzeige der Uptime der Services und die geplanten Wartungsintervalle.
4 4  
5 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 +)))
6 6  
7 7  {{html}}
8 8   <style>
... ... @@ -15,18 +15,18 @@
15 15   .status-maintenance {
16 16   color: gold; /* Gold text color for "Under Maintenance" status */
17 17   }
21 +
18 18   </style>
19 19  <!-- Servers Status -->
20 20  <div>
21 21   <h2>&Uuml;berblick Status</h2>
22 22  
23 - <h3>Prim&auml;rsysteme</h3>
24 - <ul class="productive-systems-list ikiss-unordered-list"></ul>
27 + <h3>Prim&auml;rsysteme</h3>
28 + <ul class="productive-systems-list ikiss-unordered-list"></ul>
25 25  
26 - <h3>Sekund&auml;rsysteme</h3>
27 - <ul class="customer-systems-list ikiss-unordered-list"></ul>
30 + <h3>Sekund&auml;rsysteme</h3>
31 + <ul class="customer-systems-list ikiss-unordered-list"></ul>
28 28  </div>
29 -
30 30  <!-- System Update -->
31 31  <div>
32 32   <h2>System-Updates</h2>
... ... @@ -40,7 +40,6 @@
40 40   </ul>
41 41   </div>
42 42  </div>
43 -
44 44  <!-- System Maintenance -->
45 45  <div>
46 46   <h2>System-Wartung</h2>
... ... @@ -49,14 +49,16 @@
49 49   </p>
50 50   <h3>Nächster Wartungstermin</h3>
51 51   <div>
52 - <ul>
53 - <li><strong><span id="plannedMaintenance"></span></strong></li>
54 - </ul>
54 + <ul>
55 + <li><strong><span id="plannedMaintenance"></span></strong></li>
56 + </ul>
55 55   </div>
56 56  </div>
57 57  
58 58  <script type="text/javascript">
61 + // Function to fetch data from api-status.php and update the HTML
59 59   function fetchData() {
63 +// fetch('api-status.php') // Local Call
60 60   fetch('https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger')
61 61   .then(response => response.json())
62 62   .then(data => {
... ... @@ -66,7 +66,7 @@
66 66   data.hostStatus.forEach(host => {
67 67   const listItem = document.createElement('li');
68 68   listItem.innerHTML = `<span class="host-name">${host.host}:</span> <span class="status-${getStatusColor(host.status)}"><strong>${getStatusText(host.status)}</strong></span>`;
69 -
73 +
70 70   if (host.host === "pdf.form-solutions.net" || host.host === "onlinedienste.form-solutions.de") {
71 71   productiveSystemsList.appendChild(listItem);
72 72   } else {
... ... @@ -74,9 +74,10 @@
74 74   }
75 75   });
76 76  
81 + // Update Next Planned Update Date
77 77   const plannedUpdate = document.getElementById('plannedUpdate');
78 78   plannedUpdate.textContent = data.plannedUpdate;
79 -
84 + // Update Next Planned Maintenance Date
80 80   const plannedMaintenance = document.getElementById('plannedMaintenance');
81 81   plannedMaintenance.textContent = data.plannedMaintenance;
82 82   })
... ... @@ -85,13 +85,13 @@
85 85   });
86 86   }
87 87  
88 - // Function to get the appropriate status text
93 + // Function to get the appropriate status color class
89 89   function getStatusText(status) {
90 90   switch (status) {
91 91   case 'Up':
92 92   return 'Verfügbar';
93 93   case 'Down':
94 - return 'Beeinträchtigung';
99 + return 'Beeintr&auml;chtigung';
95 95   case 'Under Maintenance':
96 96   return 'Wartung';
97 97   default:
... ... @@ -113,6 +113,7 @@
113 113   }
114 114   }
115 115  
121 + // Call fetchData when the page loads
116 116   window.addEventListener('load', fetchData);
117 117  </script>
118 118  {{/html}}