Änderungen von Dokument Servermeldungen (SaaS)

Zuletzt geändert von MACH ProForms GmbH am 22.07.2024

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

Zusammenfassung

Details

Seiteneigenschaften
Dokument-Autor
... ... @@ -1,1 +1,1 @@
1 -XWiki.fweise
1 +xwiki:XWiki.Dokumentation
Inhalt
... ... @@ -1,5 +1,122 @@
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 +
5 +(% class="box infomessage" %)
6 +
1 1  {{html}}
8 + <style>
9 + .status-up {
10 + color: rgb(3, 133, 3); /* Green text color for "UP" status */
11 + }
12 + .status-down {
13 + color: rgb(187, 9, 9); /* Red text color for "DOWN" status */
14 + }
15 + .status-maintenance {
16 + color: gold; /* Gold text color for "Under Maintenance" status */
17 + }
18 + </style>
19 +<!-- Servers Status -->
20 +<div>
21 + <h2>&Uuml;berblick Status</h2>
22 +
23 + <h3>Prim&auml;rsysteme</h3>
24 + <ul class="productive-systems-list ikiss-unordered-list"></ul>
25 +
26 + <h3>Sekund&auml;rsysteme</h3>
27 + <ul class="customer-systems-list ikiss-unordered-list"></ul>
28 +</div>
29 +
30 +<!-- System Update -->
31 +<div>
32 + <h2>System-Updates</h2>
33 + <p>
34 + Updates der MACH formsolutions Plattform werden grunds&auml;tzlich Montags zwischen 02:00 Uhr und 03:00 Uhr eingespielt.
35 + </p>
36 + <h3>Nächster Updatetermin</h3>
37 + <div>
38 + <ul>
39 + <li><strong><span id="plannedUpdate"></span></strong></li>
40 + </ul>
41 + </div>
42 +</div>
43 +
44 +<!-- System Maintenance -->
45 +<div>
46 + <h2>System-Wartung</h2>
47 + <p>
48 + Wartungen an unserem System finden regelm&auml;ßig am letzten Donnerstag eines Monats zwischen 22:00 Uhr und 24:00 Uhr statt.
49 + </p>
50 + <h3>Nächster Wartungstermin</h3>
51 + <div>
52 + <ul>
53 + <li><strong><span id="plannedMaintenance"></span></strong></li>
54 + </ul>
55 + </div>
56 +</div>
57 +
2 2  <script type="text/javascript">
3 -alert("hello world");
59 + function fetchData() {
60 + fetch('https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger')
61 + .then(response => response.json())
62 + .then(data => {
63 + const productiveSystemsList = document.querySelector('.productive-systems-list');
64 + const customerSystemsList = document.querySelector('.customer-systems-list');
65 +
66 + data.hostStatus.forEach(host => {
67 + const listItem = document.createElement('li');
68 + listItem.innerHTML = `<span class="host-name">${host.host}:</span> <span class="status-${getStatusColor(host.status)}"><strong>${getStatusText(host.status)}</strong></span>`;
69 +
70 + if (host.host === "pdf.form-solutions.net" || host.host === "onlinedienste.form-solutions.de") {
71 + productiveSystemsList.appendChild(listItem);
72 + } else {
73 + customerSystemsList.appendChild(listItem);
74 + }
75 + });
76 +
77 + const plannedUpdate = document.getElementById('plannedUpdate');
78 + plannedUpdate.textContent = data.plannedUpdate;
79 +
80 + const plannedMaintenance = document.getElementById('plannedMaintenance');
81 + plannedMaintenance.textContent = data.plannedMaintenance;
82 + })
83 + .catch(error => {
84 + console.error('Error fetching data:', error);
85 + });
86 + }
87 +
88 + // Function to get the appropriate status text
89 + function getStatusText(status) {
90 + switch (status) {
91 + case 'Up':
92 + return 'Verfügbar';
93 + case 'Down':
94 + return 'Beeinträchtigung';
95 + case 'Under Maintenance':
96 + return 'Wartung';
97 + default:
98 + return '';
99 + }
100 + }
101 +
102 + // Function to get the appropriate status color class
103 + function getStatusColor(status) {
104 + switch (status) {
105 + case 'Up':
106 + return 'up';
107 + case 'Down':
108 + return 'down';
109 + case 'Under Maintenance':
110 + return 'maintenance';
111 + default:
112 + return '';
113 + }
114 + }
115 +
116 + window.addEventListener('load', fetchData);
4 4  </script>
5 5  {{/html}}
119 +
120 += Kontakt =
121 +
122 +Bei Fragen oder Hilfestellungen zu unseren Diensten können Sie uns über den [[MACH ProForms Support>>doc:Main.10_Hilfe.WebHome]] erreichen.