HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/sos/presets/__pycache__/__init__.cpython-310.pyc
o

([Qh��	@s�ddlZddlZddlmZdZdZdZdZGdd�d�Zd	Z	d
Z
dZdZd
Z
dZedddddd�Ze	ee	e
ee�d�eeee
eed�iZdS)�N)�
SoSOptionsz/etc/sos/presets.d�desc�note�argsc@sZeZdZdZdZdZdZe�ZdZ	dd�Z
dd�Zddde�fd	d
�Zdd�Z
d
d�ZdS)�PresetDefaultsa�Preset command line defaults to allow for quick reference to sets of
    commonly used options

    :param name: The name of the new preset
    :type name: ``str``

    :param desc: A description for the new preset
    :type desc: ``str``

    :param note: Note for the new preset
    :type note: ``str``

    :param opts: Options set for the new preset
    :type opts: ``SoSOptions``
    NTc	C�*d|j�d|j�d|j�dt|j��d�	S)zeReturn a human readable string representation of this
            ``PresetDefaults`` object.
        zname=z desc=z note=z opts=(�))�namerr�str�opts��self�r�6/usr/lib/python3/dist-packages/sos/presets/__init__.py�__str__4s�zPresetDefaults.__str__c	Cr)zgReturn a machine readable string representation of this
            ``PresetDefaults`` object.
        zPresetDefaults(name='z' desc='z' note='z' opts=(r)r	rr�reprrrrrr�__repr__;s
��zPresetDefaults.__repr__�cCs||_||_||_||_dS)z�Initialise a new ``PresetDefaults`` object with the specified
            arguments.

            :returns: The newly initialised ``PresetDefaults``
        N�r	rrr)r
r	rrrrrr�__init__Bs
zPresetDefaults.__init__cCs�|jrtd��|j��}|jt|jt|jt	|ii}t
j�|�s&t
j
|dd�tt
j�||j�ddd��}t�||�Wd�dS1sEwYdS)z�Write this preset to disk in JSON notation.

        :param presets_path: the directory where the preset will be written
        :type presets_path: ``str``
        zCannot write built-in preseti�)�mode�wzutf-8)�encodingN)�builtin�	TypeErrorr�dictr	�DESCr�NOTEr�OPTS�os�path�exists�makedirs�open�join�json�dump)r
�presets_path�odict�pdict�pfilerrr�writeMs
�"�zPresetDefaults.writecCst�tj�||j��dS)z�Delete a preset from disk

        :param presets_path: the directory where the preset is saved
        :type presets_path: ``str``
        N)r�unlinkr r$r	)r
r'rrr�deleteaszPresetDefaults.delete)�__name__�
__module__�__qualname__�__doc__r	rrrrrrrrr+r-rrrrrsr�nonezDo not load a presetz+Use to disable automatically loaded presets�minimalzCSmall and quick report that reduces sos report resource consumptionzXMay be useful for low-resource systems, but may not provide sufficient data for analysis�
�T)�log_size�journal_size�plugin_timeout�command_timeout�low_priorityr)r%r�sos.optionsr�PRESETS_PATHrrrr�	NO_PRESET�NO_PRESET_DESC�NO_PRESET_NOTE�SMALL_PRESET�SMALL_PRESET_DESC�SMALL_PRESET_NOTE�SMALL_PRESET_OPTS�GENERIC_PRESETSrrrr�<module>s4
R����