Файловый менеджер - Редактировать - /usr/lib/python3.9/site-packages/glances/__pycache__/events.cpython-39.opt-1.pyc
Назад
a ���cP � @ sN d Z ddlZddlmZ ddlmZ ddlmZmZ G dd� de�Z e � Z dS )zAManage Glances events (previously Glances logs in Glances < 3.1).� N)�datetime)�range)�glances_processes� sort_statsc @ sl e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z ddd�Zdd� Zdd� Z ddd�ZdS )� GlancesEventsa� This class manages events inside the Glances software. Events is a list of event (stored in the self.events_list var) event_state = "OK|CAREFUL|WARNING|CRITICAL" event_type = "CPU*|LOAD|MEM|MON" event_value = value Item (or event) is defined by: ["begin", "end", "WARNING|CRITICAL", "CPU|LOAD|MEM", MAX, AVG, MIN, SUM, COUNT, [top3 process list], "Processes description", "top sort key"] c C s d| _ g | _dS )zInit the events class.� N)� events_max�events_list��self� r �2/usr/lib/python3.9/site-packages/glances/events.py�__init__'