提交 cec62a45 编写于 作者: N nicolargo

Add some comments

上级 0922d243
......@@ -25,6 +25,7 @@ Bugs corrected:
Others:
* Add Docker documentation (thanks to @rgarrigue)
* Refactor Glances logs (now called Glances events)
Version 3.0.2
=============
......
......@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Manage Glances events (previously Glances logs in Glances <3.1)."""
"""Manage Glances events (previously Glances logs in Glances < 3.1)."""
import time
from datetime import datetime
......
......@@ -21,6 +21,7 @@
from datetime import datetime
from glances.logger import logger
from glances.events import glances_events
from glances.thresholds import glances_thresholds
# from glances.logger import logger
......@@ -30,6 +31,10 @@ from glances.plugins.glances_plugin import GlancesPlugin
# - msg: Message to be displayed (result of the decision tree)
# - threasholds: a list of stats to take into account
# - thresholds_min: minimal value of the threasholds sum
# - 0: OK
# - 1: CAREFUL
# - 2: WARNING
# - 3: CRITICAL
tree = [{'msg': 'No warning or critical alert detected',
'thresholds': [],
'thresholds_min': 0},
......@@ -161,6 +166,7 @@ class Plugin(GlancesPlugin):
if top_process != '':
msg = ': {}'.format(top_process)
ret.append(self.curse_add_line(msg))
# logger.info(alert)
return ret
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册