ruạṛ
a ���fjM � @ 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 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&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zejd-d,� �Zed.d/� �Zejd0d/� �Zed1d2� �Zejd3d2� �Zd4d5� Zd6d7� Zd8d9� Zd:S );�TraceSpanSummaryzg Summary of the information pertaining to the spans in the trace window that is being queried. c K s� ddddddddddddddddd�| _ ddd d ddd dddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _dS )a_ Initializes a new TraceSpanSummary 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 TraceSpanSummary. :type key: str :param root_span_operation_name: The value to assign to the root_span_operation_name property of this TraceSpanSummary. :type root_span_operation_name: str :param time_earliest_span_started: The value to assign to the time_earliest_span_started property of this TraceSpanSummary. :type time_earliest_span_started: datetime :param time_latest_span_ended: The value to assign to the time_latest_span_ended property of this TraceSpanSummary. :type time_latest_span_ended: datetime :param span_count: The value to assign to the span_count property of this TraceSpanSummary. :type span_count: int :param error_span_count: The value to assign to the error_span_count property of this TraceSpanSummary. :type error_span_count: int :param root_span_service_name: The value to assign to the root_span_service_name property of this TraceSpanSummary. :type root_span_service_name: str :param time_root_span_started: The value to assign to the time_root_span_started property of this TraceSpanSummary. :type time_root_span_started: datetime :param time_root_span_ended: The value to assign to the time_root_span_ended property of this TraceSpanSummary. :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 TraceSpanSummary. :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 TraceSpanSummary. :type trace_duration_in_ms: int :param is_fault: The value to assign to the is_fault property of this TraceSpanSummary. :type is_fault: bool :param trace_status: The value to assign to the trace_status property of this TraceSpanSummary. :type trace_status: str :param trace_error_type: The value to assign to the trace_error_type property of this TraceSpanSummary. :type trace_error_type: str :param trace_error_code: The value to assign to the trace_error_code property of this TraceSpanSummary. :type trace_error_code: str :param service_summaries: The value to assign to the service_summaries property of this TraceSpanSummary. :type service_summaries: list[oci.apm_traces.models.TraceServiceSummary] �strZdatetime�int�boolzlist[TraceServiceSummary])�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_summariesr ZrootSpanOperationNameZtimeEarliestSpanStartedZtimeLatestSpanEndedZ spanCountZerrorSpanCountZrootSpanServiceNameZtimeRootSpanStartedZtimeRootSpanEndedZrootSpanDurationInMsZtraceDurationInMsZisFaultZtraceStatusZtraceErrorTypeZtraceErrorCodeZserviceSummariesN)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)�self�kwargs� r, �L/usr/lib/python3.9/site-packages/oci/apm_traces/models/trace_span_summary.py�__init__ sd G��zTraceSpanSummary.__init__c C s | j S )a| **[Required]** Gets the key of this TraceSpanSummary. 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 TraceSpanSummary. :rtype: str �r �r* r, r, r- r � s zTraceSpanSummary.keyc C s || _ dS )ao Sets the key of this TraceSpanSummary. 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 TraceSpanSummary. :type: str Nr/ )r* r r, r, r- r � s c C s | j S )aE Gets the root_span_operation_name of this TraceSpanSummary. 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 TraceSpanSummary. :rtype: str �r r0 r, r, r- r � s z)TraceSpanSummary.root_span_operation_namec C s || _ dS )a\ Sets the root_span_operation_name of this TraceSpanSummary. 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 TraceSpanSummary. :type: str Nr1 )r* r r, r, r- r � s c C s | j S )a **[Required]** Gets the time_earliest_span_started of this TraceSpanSummary. Start time of the earliest span in the span collection. :return: The time_earliest_span_started of this TraceSpanSummary. :rtype: datetime �r r0 r, r, r- r � s z+TraceSpanSummary.time_earliest_span_startedc C s || _ dS )a Sets the time_earliest_span_started of this TraceSpanSummary. Start time of the earliest span in the span collection. :param time_earliest_span_started: The time_earliest_span_started of this TraceSpanSummary. :type: datetime Nr2 )r* r r, r, r- r � s c C s | j S )a **[Required]** Gets the time_latest_span_ended of this TraceSpanSummary. End time of the span that most recently ended in the span collection. :return: The time_latest_span_ended of this TraceSpanSummary. :rtype: datetime �r r0 r, r, r- r � s z'TraceSpanSummary.time_latest_span_endedc C s || _ dS )a Sets the time_latest_span_ended of this TraceSpanSummary. End time of the span that most recently ended in the span collection. :param time_latest_span_ended: The time_latest_span_ended of this TraceSpanSummary. :type: datetime Nr3 )r* r r, r, r- r � s c C s | j S )a{ **[Required]** Gets the span_count of this TraceSpanSummary. The number of spans that have been processed by the system for the trace. Note that there could be additional spans that have not been processed or reported yet if the trace is still in progress. :return: The span_count of this TraceSpanSummary. :rtype: int �r r0 r, r, r- r � s zTraceSpanSummary.span_countc C s || _ dS )au Sets the span_count of this TraceSpanSummary. The number of spans that have been processed by the system for the trace. Note that there could be additional spans that have not been processed or reported yet if the trace is still in progress. :param span_count: The span_count of this TraceSpanSummary. :type: int Nr4 )r* r r, r, r- r s c C s | j S )a� **[Required]** Gets the error_span_count of this TraceSpanSummary. The number of spans with errors that have been processed by the system for the trace. Note that the number of spans with errors will be less than or equal to the total number of spans in the trace. :return: The error_span_count of this TraceSpanSummary. :rtype: int �r r0 r, r, r- r s z!TraceSpanSummary.error_span_countc C s || _ dS )a� Sets the error_span_count of this TraceSpanSummary. The number of spans with errors that have been processed by the system for the trace. Note that the number of spans with errors will be less than or equal to the total number of spans in the trace. :param error_span_count: The error_span_count of this TraceSpanSummary. :type: int Nr5 )r* r r, r, r- r s c C s | j S )z� Gets the root_span_service_name of this TraceSpanSummary. Service associated with the trace. :return: The root_span_service_name of this TraceSpanSummary. :rtype: str �r r0 r, r, r- r + s z'TraceSpanSummary.root_span_service_namec C s || _ dS )z� Sets the root_span_service_name of this TraceSpanSummary. Service associated with the trace. :param root_span_service_name: The root_span_service_name of this TraceSpanSummary. :type: str Nr6 )r* r r, r, r- r 7 s c C s | j S )z� Gets the time_root_span_started of this TraceSpanSummary. Start time of the root span for the span collection. :return: The time_root_span_started of this TraceSpanSummary. :rtype: datetime �r! r0 r, r, r- r C s z'TraceSpanSummary.time_root_span_startedc C s || _ dS )z� Sets the time_root_span_started of this TraceSpanSummary. Start time of the root span for the span collection. :param time_root_span_started: The time_root_span_started of this TraceSpanSummary. :type: datetime Nr7 )r* r r, r, r- r O s c C s | j S )z� Gets the time_root_span_ended of this TraceSpanSummary. End time of the root span for the span collection. :return: The time_root_span_ended of this TraceSpanSummary. :rtype: datetime �r"