HEX
Server: Apache
System: Linux 244.240.109.208.host.secureserver.net 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: icsla (1002)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //lib/fm-agent/library/__pycache__/threshold.cpython-39.pyc
a

<+j��@s4ddlZddlZddlZddlZGdd�de�ZdS)�Nc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�	ThresholdcKsPt�|jj�|_|�d�|_|�dd�|_|�dd�|_|�dd�|_	d|_
dS)N�id�delayr�value�operatorF)�logging�	getLogger�	__class__�__name__�log�getrZduration�limitrZreported)�self�kwargs�r�&/usr/lib/fm-agent/library/threshold.py�__init__szThreshold.__init__cCst|j�}|d=|S)Nr)�dict�__dict__�r�staterrr�__getstate__s
zThreshold.__getstate__cCs |j�|�t�|jj�|_dS)N)r�updaterrr	r
rrrrr�__setstate__szThreshold.__setstate__cCsP|jdur|j�d|j�dStt|j�}|j�d||j|j|j�|||j�S)Nz Threshold %s is a null thresholdz9Testing if value (%.2f) is %s threshold %s's limit (%.2f))rr�debugr�getattrr
)rrZ	operationrrr�limit_exceededs
�zThreshold.limit_exceededN)r
�
__module__�__qualname__rrrrrrrrrsr)rr�sys�time�objectrrrrr�<module>s