| Server IP : 52.221.34.188 / Your IP : 216.73.217.74 Web Server : Apache System : Linux ip-172-31-26-112 7.0.0-1017-aws #18~24.04.1-Ubuntu SMP PREEMPT Thu Oct 29 17:57:24 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.36 Disable Function : phpinfo MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /snap/core22/2437/lib/python3/dist-packages/cloudinit/reporting/__pycache__/ |
Upload File : |
o
�t�h$ � @ s� d Z ddlZddlZddlZddlZddlmZ ddlm Z ddl
mZmZ ddl
mZ dZdZd Ze�e�ZG d
d� de�Zed�ZG d
d� d�ZG dd� de�Zddd�Zejdfdd�Zdd� ZG dd� d�Zdd� ZdS )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)�performance)�available_handlers�instantiated_handler_registry)�ReportingHandler�finish�start� cloudinitc @ s e Zd Zdd� ZdS )�_namesetc C s || v r|S t d| ��)Nz%s not a valid value)�AttributeError)�self�name� r �</usr/lib/python3/dist-packages/cloudinit/reporting/events.py�__getattr__ s z_nameset.__getattr__N)�__name__�
__module__�__qualname__r r r r r r
s r
)�SUCCESS�WARN�FAILc @ s. e Zd ZdZedfdd�Zdd� Zdd� ZdS ) �ReportingEventz"Encapsulation of event formatting.Nc C s2 || _ || _|| _|| _|d u rt�� }|| _d S �N)�
event_typer
�description�origin�time� timestamp)r r r
r r r r r r �__init__, s
zReportingEvent.__init__c C s d� | j| j| j�S )z"The event represented as a string.z
{0}: {1}: {2})�formatr r
r �r r r r � as_string<