| Server IP : 185.143.234.130 / Your IP : 185.215.232.195 Web Server : LiteSpeed System : Linux jambul.7ho.st 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 User : renecafe ( 1327) PHP Version : 8.1.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/clsummary/__pycache__/ |
Upload File : |
�
���ř�r�� �r � d dl Z d dlZ ej d� � Z e j d� � Z G d� de� � ZdS )� N�Tzcloudlinux-summaryc
� � e Zd ZdZddddgdgddiddiddig d� Zdej def ded z d
e e
ef fd�Zdej def ded
eded z d
d f
d�Zd S )�StatisticsDictz>
Special class to store all metrics before sending it
z-42i���g E�) �str�int�float�str_list�int_list�int_dict�
float_dict�str_dict�
rpm_stat_list�func.�log_messageN�returnc � � |� � }n6# t $ r)}|rt � d||� � Y d}~dS d}~ww xY wd|fS )a�
Method for catching any exceptions while calling the passed function,
logging them and returning None and success flag if an exception has been encountered.
Returns a formatted result of the function call otherwise.
:param func:
function that should be called
:param log_message:
if given, it will be logged as exception message.
z%s. Exception: "%s"N)FNT)� Exception�logger� exception)�selfr r �result�errs �py/clsummary/storage.py�
evaluate_safezStatisticsDict.evaluate_safe) sw � � ��T�V�V�F�F��� � � ��
�� � �)���� � �
�;�;�;�;�;����� ���� �V�|�s �
�
A �;�A �type_of_result�name_of_metricc �` � | � ||� � \ }}|s
| j | }|| |<