ruạṛ
a ���f[6 � @ 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 @ s� e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zed d � �Z e j dd � �Z edd � �Zej dd � �Zedd� �Zej dd� �Zedd� �Z e j dd� �Z edd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej d d� �Zed!d"� �Zej d#d"� �Zed$d%� �Zej d&d%� �Zed'd(� �Zej d)d(� �Zed*d+� �Zej d,d+� �Zed-d.� �Zej d/d.� �Zd0d1� Zd2d3� Zd4d5� Zd6S )7�Spanz& Definition of a span object. �SPANS� SYN_SPANSc K s� ddddddddddddddd�| _ d d ddd dddddddddd�| _d| _d| _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 tags_metadata: The value to assign to the tags_metadata property of this Span. :type tags_metadata: dict(str, TagMetadata) :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 :param source_name: The value to assign to the source_name property of this Span. Allowed values for this property are: "SPANS", "SYN_SPANS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type source_name: str �strZdatetime�intz list[Tag]zdict(str, TagMetadata)zlist[SpanLogCollection]�bool)�key�parent_span_key� trace_key�time_started� time_ended�duration_in_ms�operation_name�service_name�kind�tags� tags_metadata�logs�is_error�source_namer Z parentSpanKeyZtraceKeyZtimeStartedZ timeEndedZdurationInMsZ operationNameZserviceNamer r ZtagsMetadatar ZisErrorZ sourceNameN)Z swagger_typesZ attribute_map�_key�_parent_span_key� _trace_key� _time_started�_time_ended�_duration_in_ms�_operation_name� _service_name�_kind�_tags�_tags_metadata�_logs� _is_error�_source_name)�self�kwargs� r* �>/usr/lib/python3.9/site-packages/oci/apm_traces/models/span.py�__init__ sX A��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* r+ r � 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 Nr- )r( r r* r* r+ 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 r. r* r* r+ r � s zSpan.parent_span_keyc C s || _ dS )z� Sets the parent_span_key of this Span. Unique parent identifier for the span if one exists. For root spans this will be null. :param parent_span_key: The parent_span_key of this Span. :type: str Nr/ )r( r r* r* r+ r � s c C s | j S )z� **[Required]** Gets the trace_key of this Span. Unique identifier for the trace. :return: The trace_key of this Span. :rtype: str �r r. r* r* r+ r � s zSpan.trace_keyc C s || _ dS )z� Sets the trace_key of this Span. Unique identifier for the trace. :param trace_key: The trace_key of this Span. :type: str Nr0 )r( r r* r* r+ r � s c C s | j S )z� **[Required]** Gets the time_started of this Span. Span start time. Timestamp when the span was started. :return: The time_started of this Span. :rtype: datetime �r r. r* r* r+ r � s zSpan.time_startedc C s || _ dS )z� Sets the time_started of this Span. Span start time. Timestamp when the span was started. :param time_started: The time_started of this Span. :type: datetime Nr1 )r( r r* r* r+ r � s c C s | j S )z� **[Required]** Gets the time_ended of this Span. Span end time. Timestamp when the span was completed. :return: The time_ended of this Span. :rtype: datetime �r r. r* r* r+ r � s zSpan.time_endedc C s || _ dS )z� Sets the time_ended of this Span. Span end time. Timestamp when the span was completed. :param time_ended: The time_ended of this Span. :type: datetime Nr2 )r( r r* r* r+ r � s c C s | j S )z� **[Required]** Gets the duration_in_ms of this Span. Total span duration in milliseconds. :return: The duration_in_ms of this Span. :rtype: int �r r. r* r* r+ r s zSpan.duration_in_msc C s || _ dS )z� Sets the duration_in_ms of this Span. Total span duration in milliseconds. :param duration_in_ms: The duration_in_ms of this Span. :type: int Nr3 )r( r r* r* r+ r s c C s | j S )z� **[Required]** Gets the operation_name of this Span. Span name associated with the trace. This is usually the method or URI of the request. :return: The operation_name of this Span. :rtype: str �r r. r* r* r+ r s zSpan.operation_namec C s || _ dS )z� Sets the operation_name of this Span. Span name associated with the trace. This is usually the method or URI of the request. :param operation_name: The operation_name of this Span. :type: str Nr4 )r( r r* r* r+ r + s c C s | j S )z� Gets the service_name of this Span. Service name associated with the span. :return: The service_name of this Span. :rtype: str �r! r. r* r* r+ r 7 s zSpan.service_namec C s || _ dS )z� Sets the service_name of this Span. Service name associated with the span. :param service_name: The service_name of this Span. :type: str Nr5 )r( r r* r* r+ r C s c C s | j S )z� Gets the kind of this Span. Kind associated with the span. :return: The kind of this Span. :rtype: str �r"