Edit File: cmdline_parser.cpython-311.pyc
� ��e� � �F � d Z ddlZddlZddlmZ dd�Zdd�Z dd �ZdS ) zl This module contains an argparse command line parser for cloudlinux-ssa-manager and cloudlinux-autotracing � N)�is_cl_solo_edition�return�argparse.ArgumentParserc � � t j dd�� � } | � ddd�� � }|� dd t j � � � }t d�� � sx|� dd d�� � |� ddd�� � |� ddd�� � |� ddd�� � |� ddd�� � |� ddd�� � |� dd d!�� � |� d"d#d$�� � |� d%d&d'�� � |� d(d)t j � � � |� d*d+t j � � � |� d,d-t j � � � |� d.d/t j � � � |� d0d1t j � � � |� d2d3t j � � � | S )4zh Command line parser for SSA manager utility using built-in argparse module :return: parser zcloudlinux-ssa-managerzUtility to manage SSA��prog�description�Commands�commandT��title�dest�requiredz set-configzSet SSA configuration)�help�argument_default)�skip_jwt_checkz--domains-number�DOMAINS_NUMBERz!Size of TOP list for slow domains)�metavarr z--request-number�REQUEST_NUMBERz[The threshold value of slow requests number in the period of time to mark URL as a slow onez--time�TIMEz:Period of time in hours required to analyze these requestsz --correlation�CORRELATIONz%Flag to enable or disable correlationz--correlation-coefficient�CORRELATION_COEFFICIENTz.The threshold value of correlation coefficientz --urls-number�URLS_NUMBERzSize of TOP list for slow urlsz--requests-duration�REQUESTS_DURATIONz2The threshold value of request duration in secondsz --ignore-list�IGNORE_LISTzGList of URLs or domains that should not be included in the daily reportz--summary-notification-enabled�SUMMARY_NOTIFICATIONz.Turn on|off sending the daily report by e-mailz get-configzGet SSA configurationzget-ssa-statuszGet current status of SSAz enable-ssaz Enable SSAzdisable-ssazDisable SSAz get-reportzGet the latest reportzget-statzGet the SSA statistics)�argparse�ArgumentParser�add_subparsers� add_parser�SUPPRESSr �add_argument)�parser� subparsers�set_config_parsers �S/opt/cloudlinux/venv/lib64/python3.11/site-packages/ssa/ssa_utils/cmdline_parser.py�cmd_parser_managerr'