%PDF- %PDF-
Direktori : /proc/self/root/lib/python3/dist-packages/cloudinit/reporting/__pycache__/ |
Current File : //proc/self/root/lib/python3/dist-packages/cloudinit/reporting/__pycache__/events.cpython-312.pyc |
� ���f�# � �� � d Z ddlZddlZddlZddlmZ ddlmZm Z ddl mZ dZdZ dZ G d � d e� Z ed� Z G d� d � Z G d� de� Zdd�Zej* dfd�Zd� Z G d� d� Zd� Zy)z� events for reporting. The events here are designed to be used with reporting. They can be published to registered handlers with report_event. � N)�List)�available_handlers�instantiated_handler_registry)�ReportingHandler�finish�start� cloudinitc � � e Zd Zd� Zy)�_namesetc �* � || v r|S t d|z � �)Nz%s not a valid value)�AttributeError)�self�names �</usr/lib/python3/dist-packages/cloudinit/reporting/events.py�__getattr__z_nameset.__getattr__ s � ��4�<��K��3�d�:�;�;� N)�__name__� __module__�__qualname__r � r r r r s � �<r r )�SUCCESS�WARN�FAILc �( � e Zd ZdZedfd�Zd� Zd� Zy)�ReportingEventz"Encapsulation of event formatting.Nc �v � || _ || _ || _ || _ |�t j � }|| _ y �N)� event_typer �description�origin�time� timestamp)r r r r r r"