]>
git.ipfire.org Git - collecty.git/blob - src/collecty/colours.py
2 ###############################################################################
4 # collecty - A system statistics collection daemon for IPFire #
5 # Copyright (C) 2015 IPFire development team #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
20 ###############################################################################
27 LIGHT_GREY
= "#F5F5F5"
32 LIGHT_YELLOW
= "#FFFF66"
34 LIGHT_GREEN
= "#8BC34A"
36 LIGHT_BLUE
= "#03A9F4"
44 DEEP_ORANGE
= "#FF5722"
47 DEEP_PURPLE
= "#673AB7"
50 COLOUR_OK
= LIGHT_GREEN
51 COLOUR_CRITICAL
= LIGHT_RED
52 COLOUR_ERROR
= COLOUR_CRITICAL
53 COLOUR_WARN
= LIGHT_YELLOW
54 COLOUR_TEXT
= util
.lighten(BLACK
, 0.87) # 87% grey
59 # Lighten the areas by this factor
63 # Receive and transmit
74 COLOUR_IPVX
= GREY
# other
80 COLOUR_UDPLITE
= DEEP_ORANGE
81 COLOUR_SCTP
= LIGHT_GREEN
82 COLOUR_DCCP
= LIGHT_BLUE
83 COLOUR_OTHER
= COLOUR_IPVX
86 CPU_USER
= LIGHT_GREEN
89 CPU_WAIT
= DEEP_PURPLE
96 MEMORY_BUFFERED
= BLUE
97 MEMORY_CACHED
= YELLOW
107 COLOURS_PROTOCOL_STATES
= {
114 "CLOSE_WAIT" : util
.lighten(BLACK
, 0.25),
115 "ESTABLISHED" : LIGHT_GREEN
,
123 "CLOSEREQ" : util
.lighten(BLACK
, 0.5),
124 "CLOSING" : util
.lighten(BLACK
, 0.25),
127 "OPEN" : LIGHT_GREEN
,
134 "COOKIE_ECHOED" : AMBER
,
135 "COOKIE_WAIT" : CYAN
,
136 "SHUTDOWN_ACK_SENT" : TEAL
,
137 "SHUTDOWN_RECD" : PURPLE
,
138 "SHUTDOWN_SENT" : LIGHT_BLUE
,