ruạṛ
a N��f�+ � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sh e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zd(d)� Zd*d+� Zd,d-� Zd.S )/�Spanz& Definition of a span object. c K s� ddddddddddddd�| _ dd d ddd ddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ dS )a Initializes a new Span object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param key: The value to assign to the key property of this Span. :type key: str :param parent_span_key: The value to assign to the parent_span_key property of this Span. :type parent_span_key: str :param trace_key: The value to assign to the trace_key property of this Span. :type trace_key: str :param time_started: The value to assign to the time_started property of this Span. :type time_started: datetime :param time_ended: The value to assign to the time_ended property of this Span. :type time_ended: datetime :param duration_in_ms: The value to assign to the duration_in_ms property of this Span. :type duration_in_ms: int :param operation_name: The value to assign to the operation_name property of this Span. :type operation_name: str :param service_name: The value to assign to the service_name property of this Span. :type service_name: str :param kind: The value to assign to the kind property of this Span. :type kind: str :param tags: The value to assign to the tags property of this Span. :type tags: list[oci.apm_traces.models.Tag] :param logs: The value to assign to the logs property of this Span. :type logs: list[oci.apm_traces.models.SpanLogCollection] :param is_error: The value to assign to the is_error property of this Span. :type is_error: bool �str�datetime�intz list[Tag]zlist[SpanLogCollection]�bool)�key�parent_span_key� trace_key�time_started� time_ended�duration_in_ms�operation_name�service_name�kind�tags�logs�is_errorr � parentSpanKey�traceKey�timeStarted� timeEnded�durationInMs� operationName�serviceNamer r r �isErrorN)� swagger_types� attribute_map�_key�_parent_span_key� _trace_key� _time_started�_time_ended�_duration_in_ms�_operation_name� _service_name�_kind�_tags�_logs� _is_error)�self�kwargs� r/ �~/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/apm_traces/models/span.py�__init__ sL 7��z Span.__init__c C s | j S )aC **[Required]** Gets the key of this Span. Unique identifier (spanId) for the span. Note that this field is defined as spanKey in the API and it maps to the spanId in the trace data in Application Performance Monitoring. :return: The key of this Span. :rtype: str �r! �r- r/ r/ r0 r q s zSpan.keyc C s || _ dS )a6 Sets the key of this Span. Unique identifier (spanId) for the span. Note that this field is defined as spanKey in the API and it maps to the spanId in the trace data in Application Performance Monitoring. :param key: The key of this Span. :type: str Nr2 )r- r r/ r/ r0 r s c C s | j S )z� Gets the parent_span_key of this Span. Unique parent identifier for the span if one exists. For root spans this will be null. :return: The parent_span_key of this Span. :rtype: str �r"