File: //usr/lib/python3.6/site-packages/glances/__pycache__/actions.cpython-36.pyc
3
Eo�c � @ sp d Z ddlmZ ddlmZ ddlmZ yddlZW n" ek
rV ej d� dZ
Y nX dZ
G d d
� d
e�ZdS )zManage on alert actions.� )�logger)�Timer)�secure_popenNz5Chevron library not found (action scripts won't work)FTc @ s4 e Zd ZdZddd�Zdd� Zdd� Zdd d
�ZdS )
�GlancesActionsz0This class manage action if an alert is reached.Nc C s0 i | _ t|d�r"t|jd �| _n
td�| _dS )zInit GlancesActions class.�time� � N)�status�hasattrr r �start_timer)�self�args� r �/usr/lib/python3.6/actions.py�__init__ s
zGlancesActions.__init__c C s$ y
| j | S tk
r dS X dS )zGet the stat_name criticality.N)r �KeyError)r � stat_namer r r �get, s
zGlancesActions.getc C s || j |<