Wiki-Quellcode von Servermeldungen (SaaS)

Version 13.1 von MACH ProForms GmbH am 17.07.2024

Verstecke letzte Bearbeiter
fweise 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
MACH ProForms GmbH 5.1 5 (% class="box infomessage" %)
6
fweise 1.1 7 {{html}}
MACH ProForms GmbH 12.1 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>
fweise 2.1 19 <!-- Servers Status -->
20 <div>
21 <h2>&Uuml;berblick Status</h2>
22
MACH ProForms GmbH 10.1 23 <h3>Prim&auml;rsysteme</h3>
24 <ul class="productive-systems-list ikiss-unordered-list"></ul>
fweise 2.1 25
MACH ProForms GmbH 10.1 26 <h3>Sekund&auml;rsysteme</h3>
27 <ul class="customer-systems-list ikiss-unordered-list"></ul>
fweise 2.1 28 </div>
MACH ProForms GmbH 10.1 29
fweise 2.1 30 <!-- System Update -->
31 <div>
32 <h2>System-Updates</h2>
33 <p>
MACH ProForms GmbH 4.1 34 Updates der MACH formsolutions Plattform werden grunds&auml;tzlich Montags zwischen 02:00 Uhr und 03:00 Uhr eingespielt.
fweise 2.1 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>
MACH ProForms GmbH 10.1 43
fweise 2.1 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>
MACH ProForms GmbH 10.1 52 <ul>
53 <li><strong><span id="plannedMaintenance"></span></strong></li>
54 </ul>
fweise 2.1 55 </div>
56 </div>
57
fweise 1.1 58 <script type="text/javascript">
fweise 2.1 59 function fetchData() {
MACH ProForms GmbH 7.1 60 fetch('https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger')
MACH ProForms GmbH 12.1 61 .then(response => response.json())
fweise 2.1 62 .then(data => {
63 const productiveSystemsList = document.querySelector('.productive-systems-list');
64 const customerSystemsList = document.querySelector('.customer-systems-list');
MACH ProForms GmbH 10.1 65
fweise 2.1 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>`;
MACH ProForms GmbH 10.1 69
fweise 2.1 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 });
MACH ProForms GmbH 10.1 76
fweise 2.1 77 const plannedUpdate = document.getElementById('plannedUpdate');
78 plannedUpdate.textContent = data.plannedUpdate;
MACH ProForms GmbH 10.1 79
fweise 2.1 80 const plannedMaintenance = document.getElementById('plannedMaintenance');
81 plannedMaintenance.textContent = data.plannedMaintenance;
82 })
83 .catch(error => {
MACH ProForms GmbH 12.1 84 console.error('Error fetching data:', error);
fweise 2.1 85 });
86 }
87
MACH ProForms GmbH 10.1 88 // Function to get the appropriate status text
fweise 2.1 89 function getStatusText(status) {
90 switch (status) {
91 case 'Up':
92 return 'Verfügbar';
93 case 'Down':
MACH ProForms GmbH 10.1 94 return 'Beeinträchtigung';
fweise 2.1 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);
fweise 1.1 117 </script>
118 {{/html}}
fweise 2.1 119
fweise 3.1 120 = Kontakt =
fweise 2.1 121
fweise 3.1 122 Bei Fragen oder Hilfestellungen zu unseren Diensten können Sie uns über den [[MACH ProForms Support>>doc:Main.10_Hilfe.WebHome]] erreichen.