PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clconfig
/
__pycache__
� _�l�9��� � � d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlm Z ddl mZmZm Z mZ G d� d e� � Zd dd d dd ddd�d dd d�ddd�ddd�d� ZdZd� Zd"d�Zd� Zd� Zd� Zd� Zd� Zd"d�Zd� Zd � Zd!� ZdS )#� N)�Optional)�etree)�FormattedException)� MySQLGovernor� )�boolean_to_on_off�str_to_boolean�time_convertor_to_dict�time_unit_to_letterc � � e Zd ZdS )�DBGovernorExceptionN)�__name__� __module__�__qualname__� � �py/clconfig/db_governor_lib.pyr r s � � � � � ��Dr r �off�on� � �limit�60s��mode�unlimit��kill�logPath�timeout�LONG�r �format�ERROR) �modeOfOperation�gatherDataForDetailedStats�save_uid�logRestrictedUsersQueries� scriptPath�userMaxConnections�restrictType�slowQueries�restrictLog�errorLogz!/etc/container/mysql-governor.xmlc �$ � t | d�� � S )Nzutf-8)�encoding)�open)� file_names r �_openr3 >