-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonitor_info.py
More file actions
executable file
·96 lines (85 loc) · 4.1 KB
/
Copy pathmonitor_info.py
File metadata and controls
executable file
·96 lines (85 loc) · 4.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#! /usr/bin/env python3
import panel as pn
#from monitor_modal import show_modal#, show_modal_1
class MonitoringAppInfo:
def __init__(self):
pn.extension('floatpanel')
def LogoINPE(self):
inpe_logo = pn.pane.PNG('img/logo_mcti_vertical_positiva_02.png', width=300)
#inpe_logo = pn.pane.WebP('img/img_sidebar1.webp', width=300)
logo_inpe = pn.Column(
pn.Row(
pn.layout.HSpacer(),
inpe_logo,
pn.layout.HSpacer(),
))
return logo_inpe
def LogoCPTEC(self):
cptec_logo = pn.pane.PNG('img/cptec.png', width=100)
logo_cptec = pn.Column(
pn.Row(
pn.layout.HSpacer(),
cptec_logo,
pn.layout.HSpacer(),
))
return logo_cptec
def LogoSMNAMonitoringApp(self):
gsimonitor_logo = pn.pane.PNG('img/gsimonitor.png', width=150)
logo_gsimonitor = pn.Column(
pn.Row(
pn.layout.HSpacer(),
gsimonitor_logo,
pn.layout.HSpacer(),
))
return logo_gsimonitor
def LayoutSidebar(self):
inpe_logo = self.LogoINPE(),
cptec_logo = self.LogoCPTEC(),
logos = pn.Column(
pn.Row(
pn.layout.HSpacer(),
inpe_logo,
pn.layout.HSpacer(),
),
pn.Row(
pn.layout.HSpacer(),
cptec_logo,
pn.layout.HSpacer(),
))
#return pn.Column(logos, show_modal())
return pn.Column(logos)
def LayoutMain(self):
welcomeText = pn.Column("""
# Current Status
Check the current status from the operational system in the table below.
| CURRENT DATE | LAST OPERATIONAL RUN | STATUS | NOTE | ACTION |
|--------------|----------------------|--------|------|--------|
| 2024-02-22 21:00 | 2024-02-25 00:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-22 03:00 | 2024-02-25 06:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-22 09:00 | 2024-02-25 12:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-22 15:00 | 2024-02-25 18:00 | COMPLETED | 2 TRIAL(S) | CHECK FOR LOGS |
| 2024-02-23 21:00 | 2024-02-25 00:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-23 03:00 | 2024-02-25 06:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-23 09:00 | 2024-02-25 12:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-23 15:00 | 2024-02-25 18:00 | COMPLETED | 2 TRIAL(S) | CHECK FOR LOGS |
| 2024-02-24 21:00 | 2024-02-25 00:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-24 03:00 | 2024-02-25 06:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-24 09:00 | 2024-02-25 12:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-24 15:00 | 2024-02-25 18:00 | COMPLETED | 2 TRIAL(S) | CHECK FOR LOGS |
| 2024-02-25 21:00 | 2024-02-25 00:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-25 03:00 | 2024-02-25 06:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-25 09:00 | 2024-02-25 12:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-25 15:00 | 2024-02-25 18:00 | COMPLETED | 2 TRIAL(S) | CHECK FOR LOGS |
| 2024-02-26 21:00 | 2024-02-26 00:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-26 03:00 | 2024-02-26 06:00 | COMPLETED | 2 TRIAL(S) | CHECK FOR LOGS |
| 2024-02-26 09:00 | 2024-02-26 12:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-26 15:00 | 2024-02-26 18:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-27 21:00 | 2024-02-27 00:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-27 03:00 | 2024-02-27 06:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-27 09:00 | 2024-02-27 12:00 | COMPLETED | 2 TRIAL(S) | CHECK FOR LOGS |
| 2024-02-27 15:00 | 2024-02-27 18:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-28 21:00 | 2024-02-28 00:00 | COMPLETED | 2 TRIAL(S) | CHECK FOR LOGS |
| 2024-02-28 03:00 | 2024-02-28 06:00 | COMPLETED | 1 TRIAL(S) ||
| 2024-02-28 09:00 | 2024-02-28 12:00 | PROCESSING | ||
""")
return pn.Column(welcomeText)