File: //lib/python3.6/site-packages/glances/plugins/__pycache__/glances_alert.cpython-36.opt-1.pyc
3
Eo�c* � @ s$ d Z ddlmZ ddlmZ ddlmZ ddlmZ dg dd�dd gd
d�ddgd
d�d
dgd
d�ddgd
d�ddgd
d�ddgd
d�ddgd
d�ddgd
d�g Zdddddiddid�iddid�idd ddiddd idd!id�id�iddidd"id�d�id�iZ d#d$� Z
G d%d&� d&e�Zd'S )(z
Alert plugin.� )�datetime)�glances_events)�glances_thresholds)�
GlancesPluginz%No warning or critical alert detected)�msg�
thresholds�thresholds_minzHigh CPU user modeZcpu_user� zHigh CPU kernel usageZ
cpu_systemzHigh CPU I/O waitingZ
cpu_iowaitzALarge CPU stolen time. System running the hypervisor is too busy.Z cpu_stealzHigh CPU niced valueZ cpu_nicedz'System overloaded in the last 5 minutes�loadzHigh swap (paging) usageZmemswapzHigh memory consumptionZmemZ_msgzMemory issuez
Swap issue)Z_yesZ_noz I/O issueZ cpu_totalzCPU issue with user process(es)zJCPU issue with stolen time. System running the hypervisor may be too busy.z!CPU issue with system process(es)zExternal issuec sl t j� � x*tD ]"} t� fdd�| d D ��| d<