/opt/cloudlinux/venv/lib/python3.11/site-packages/clsummary/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/clsummary/__pycache__/storage.cpython-311.pyc (2753B)
§
…†Å™©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 | }|| |<