ruạṛ
a ���fV � @ 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.� �Zed0d1� �Zej d2d1� �Zed3d4� �Zej d5d4� �Zed6d7� �Zej d8d7� �Zed9d:� �Zej d;d:� �Zed<d=� �Zej d>d=� �Zd?d@� ZdAdB� ZdCdD� ZdES )F�Tracez' Definition of a trace object. �TRACES� SYN_TRACESc K s� dddddddddddddddddddd�| _ d d ddd ddddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _dS )a, Initializes a new Trace 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 Trace. :type key: str :param root_span_operation_name: The value to assign to the root_span_operation_name property of this Trace. :type root_span_operation_name: str :param time_earliest_span_started: The value to assign to the time_earliest_span_started property of this Trace. :type time_earliest_span_started: datetime :param time_latest_span_ended: The value to assign to the time_latest_span_ended property of this Trace. :type time_latest_span_ended: datetime :param span_count: The value to assign to the span_count property of this Trace. :type span_count: int :param error_span_count: The value to assign to the error_span_count property of this Trace. :type error_span_count: int :param root_span_service_name: The value to assign to the root_span_service_name property of this Trace. :type root_span_service_name: str :param time_root_span_started: The value to assign to the time_root_span_started property of this Trace. :type time_root_span_started: datetime :param time_root_span_ended: The value to assign to the time_root_span_ended property of this Trace. :type time_root_span_ended: datetime :param root_span_duration_in_ms: The value to assign to the root_span_duration_in_ms property of this Trace. :type root_span_duration_in_ms: int :param trace_duration_in_ms: The value to assign to the trace_duration_in_ms property of this Trace. :type trace_duration_in_ms: int :param is_fault: The value to assign to the is_fault property of this Trace. :type is_fault: bool :param trace_status: The value to assign to the trace_status property of this Trace. :type trace_status: str :param trace_error_type: The value to assign to the trace_error_type property of this Trace. :type trace_error_type: str :param trace_error_code: The value to assign to the trace_error_code property of this Trace. :type trace_error_code: str :param service_summaries: The value to assign to the service_summaries property of this Trace. :type service_summaries: list[oci.apm_traces.models.TraceServiceSummary] :param source_name: The value to assign to the source_name property of this Trace. Allowed values for this property are: "TRACES", "SYN_TRACES", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type source_name: str :param span_summary: The value to assign to the span_summary property of this Trace. :type span_summary: oci.apm_traces.models.TraceSpanSummary :param spans: The value to assign to the spans property of this Trace. :type spans: list[oci.apm_traces.models.Span] �strZdatetime�int�boolzlist[TraceServiceSummary]ZTraceSpanSummaryz list[Span])�key�root_span_operation_name�time_earliest_span_started�time_latest_span_ended� span_count�error_span_count�root_span_service_name�time_root_span_started�time_root_span_ended�root_span_duration_in_ms�trace_duration_in_ms�is_fault�trace_status�trace_error_type�trace_error_code�service_summaries�source_name�span_summary�spansr ZrootSpanOperationNameZtimeEarliestSpanStartedZtimeLatestSpanEndedZ spanCountZerrorSpanCountZrootSpanServiceNameZtimeRootSpanStartedZtimeRootSpanEndedZrootSpanDurationInMsZtraceDurationInMsZisFaultZtraceStatusZtraceErrorTypeZtraceErrorCodeZserviceSummariesZ sourceNameZspanSummaryr N)Z swagger_typesZ attribute_map�_key�_root_span_operation_name�_time_earliest_span_started�_time_latest_span_ended�_span_count�_error_span_count�_root_span_service_name�_time_root_span_started�_time_root_span_ended�_root_span_duration_in_ms�_trace_duration_in_ms� _is_fault� _trace_status�_trace_error_type�_trace_error_code�_service_summaries�_source_name� _span_summary�_spans)�self�kwargs� r4 �?/usr/lib/python3.9/site-packages/oci/apm_traces/models/trace.py�__init__ sv U��zTrace.__init__c C s | j S )af **[Required]** Gets the key of this Trace. Unique identifier (traceId) for the trace that represents the span set. Note that this field is defined as traceKey in the API and it maps to the traceId in the trace data in Application Performance Monitoring. :return: The key of this Trace. :rtype: str �r �r2 r4 r4 r5 r � s z Trace.keyc C s || _ dS )aY Sets the key of this Trace. Unique identifier (traceId) for the trace that represents the span set. Note that this field is defined as traceKey in the API and it maps to the traceId in the trace data in Application Performance Monitoring. :param key: The key of this Trace. :type: str Nr7 )r2 r r4 r4 r5 r � s c C s | j S )a/ Gets the root_span_operation_name of this Trace. Root span name associated with the trace. This is the flow start operation name. Null is displayed if the root span is not yet completed. :return: The root_span_operation_name of this Trace. :rtype: str �r r8 r4 r4 r5 r � s zTrace.root_span_operation_namec C s || _ dS )aF Sets the root_span_operation_name of this Trace. Root span name associated with the trace. This is the flow start operation name. Null is displayed if the root span is not yet completed. :param root_span_operation_name: The root_span_operation_name of this Trace. :type: str Nr9 )r2 r r4 r4 r5 r � s c C s | j S )z� Gets the time_earliest_span_started of this Trace. Start time of the earliest span in the span collection. :return: The time_earliest_span_started of this Trace. :rtype: datetime �r! r8 r4 r4 r5 r � s z Trace.time_earliest_span_startedc C s || _ dS )z� Sets the time_earliest_span_started of this Trace. Start time of the earliest span in the span collection. :param time_earliest_span_started: The time_earliest_span_started of this Trace. :type: datetime Nr: )r2 r r4 r4 r5 r � s c C s | j S )z� Gets the time_latest_span_ended of this Trace. End time of the span that most recently ended in the span collection. :return: The time_latest_span_ended of this Trace. :rtype: datetime �r"