o
    ëÉ¶däX  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   s  e Zd ZdZdd„ Zedd„ ƒZejdd„ ƒZedd„ ƒZejd	d„ ƒZed
d„ ƒZ	e	jdd„ ƒZ	edd„ ƒZ
e
jdd„ ƒZ
edd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd „ ƒZejd!d „ ƒZed"d#„ ƒZejd$d#„ ƒZed%d&„ ƒZejd'd&„ ƒZed(d)„ ƒZejd*d)„ ƒZed+d,„ ƒZejd-d,„ ƒZed.d/„ ƒZejd0d/„ ƒZed1d2„ ƒZejd3d2„ ƒZed4d5„ ƒZejd6d5„ ƒZed7d8„ ƒZejd9d8„ ƒZed:d;„ ƒZejd<d;„ ƒZd=d>„ Zd?d@„ ZdAdB„ ZdCS )DÚSqlStatisticsz-
    Performance statistics for the SQL.
    c                 K   sb  i dd“dd“dd“dd“dd“dd“d	d“d
d“dd“dd“dd“dd“dd“dd“dd“dd“dd“dddœ¥| _ i dd“dd“dd“dd“dd“dd“d	d“d
d“dd“dd“dd“dd“dd “dd!“dd"“dd#“dd$“d%d&dœ¥| _d'| _d'| _d'| _d'| _d'| _d'| _d'| _d'| _	d'| _
d'| _d'| _d'| _d'| _d'| _d'| _d'| _d'| _d'| _d'| _d'S )(a+  
        Initializes a new SqlStatistics object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param database_time_in_sec:
            The value to assign to the database_time_in_sec property of this SqlStatistics.
        :type database_time_in_sec: float

        :param executions_per_hour:
            The value to assign to the executions_per_hour property of this SqlStatistics.
        :type executions_per_hour: float

        :param executions_count:
            The value to assign to the executions_count property of this SqlStatistics.
        :type executions_count: int

        :param cpu_time_in_sec:
            The value to assign to the cpu_time_in_sec property of this SqlStatistics.
        :type cpu_time_in_sec: float

        :param io_time_in_sec:
            The value to assign to the io_time_in_sec property of this SqlStatistics.
        :type io_time_in_sec: float

        :param inefficient_wait_time_in_sec:
            The value to assign to the inefficient_wait_time_in_sec property of this SqlStatistics.
        :type inefficient_wait_time_in_sec: float

        :param response_time_in_sec:
            The value to assign to the response_time_in_sec property of this SqlStatistics.
        :type response_time_in_sec: float

        :param plan_count:
            The value to assign to the plan_count property of this SqlStatistics.
        :type plan_count: int

        :param variability:
            The value to assign to the variability property of this SqlStatistics.
        :type variability: float

        :param average_active_sessions:
            The value to assign to the average_active_sessions property of this SqlStatistics.
        :type average_active_sessions: float

        :param database_time_pct:
            The value to assign to the database_time_pct property of this SqlStatistics.
        :type database_time_pct: float

        :param inefficiency_in_pct:
            The value to assign to the inefficiency_in_pct property of this SqlStatistics.
        :type inefficiency_in_pct: float

        :param change_in_cpu_time_in_pct:
            The value to assign to the change_in_cpu_time_in_pct property of this SqlStatistics.
        :type change_in_cpu_time_in_pct: float

        :param change_in_io_time_in_pct:
            The value to assign to the change_in_io_time_in_pct property of this SqlStatistics.
        :type change_in_io_time_in_pct: float

        :param change_in_inefficient_wait_time_in_pct:
            The value to assign to the change_in_inefficient_wait_time_in_pct property of this SqlStatistics.
        :type change_in_inefficient_wait_time_in_pct: float

        :param change_in_response_time_in_pct:
            The value to assign to the change_in_response_time_in_pct property of this SqlStatistics.
        :type change_in_response_time_in_pct: float

        :param change_in_average_active_sessions_in_pct:
            The value to assign to the change_in_average_active_sessions_in_pct property of this SqlStatistics.
        :type change_in_average_active_sessions_in_pct: float

        :param change_in_executions_per_hour_in_pct:
            The value to assign to the change_in_executions_per_hour_in_pct property of this SqlStatistics.
        :type change_in_executions_per_hour_in_pct: float

        :param change_in_inefficiency_in_pct:
            The value to assign to the change_in_inefficiency_in_pct property of this SqlStatistics.
        :type change_in_inefficiency_in_pct: float

        Údatabase_time_in_secÚfloatÚexecutions_per_hourÚexecutions_countÚintÚcpu_time_in_secÚio_time_in_secÚinefficient_wait_time_in_secÚresponse_time_in_secÚ
plan_countÚvariabilityÚaverage_active_sessionsÚdatabase_time_pctÚinefficiency_in_pctÚchange_in_cpu_time_in_pctÚchange_in_io_time_in_pctÚ&change_in_inefficient_wait_time_in_pctÚchange_in_response_time_in_pctÚ(change_in_average_active_sessions_in_pct)Ú$change_in_executions_per_hour_in_pctÚchange_in_inefficiency_in_pctZdatabaseTimeInSecZexecutionsPerHourZexecutionsCountZcpuTimeInSecZioTimeInSecZinefficientWaitTimeInSecZresponseTimeInSecZ	planCountZaverageActiveSessionsZdatabaseTimePctZinefficiencyInPctZchangeInCpuTimeInPctZchangeInIoTimeInPctZ changeInInefficientWaitTimeInPctZchangeInResponseTimeInPctZ"changeInAverageActiveSessionsInPctZchangeInExecutionsPerHourInPctZchangeInInefficiencyInPctN)Zswagger_typesZattribute_mapÚ_database_time_in_secÚ_executions_per_hourÚ_executions_countÚ_cpu_time_in_secÚ_io_time_in_secÚ_inefficient_wait_time_in_secÚ_response_time_in_secÚ_plan_countÚ_variabilityÚ_average_active_sessionsÚ_database_time_pctÚ_inefficiency_in_pctÚ_change_in_cpu_time_in_pctÚ_change_in_io_time_in_pctÚ'_change_in_inefficient_wait_time_in_pctÚ_change_in_response_time_in_pctÚ)_change_in_average_active_sessions_in_pctÚ%_change_in_executions_per_hour_in_pctÚ_change_in_inefficiency_in_pct)ÚselfÚkwargs© r1   úBusr/lib/python3.10/site-packages/oci/opsi/models/sql_statistics.pyÚ__init__   s¾   Rÿþýüûúùø	÷
öõôóòñðï
íÿþýüûúùø	÷
öõôóòñðï
í
zSqlStatistics.__init__c                 C   ó   | j S )zÏ
        **[Required]** Gets the database_time_in_sec of this SqlStatistics.
        Database Time in seconds


        :return: The database_time_in_sec of this SqlStatistics.
        :rtype: float
        ©r   ©r/   r1   r1   r2   r   ¤   ó   
z"SqlStatistics.database_time_in_secc                 C   ó
   || _ dS )zÓ
        Sets the database_time_in_sec of this SqlStatistics.
        Database Time in seconds


        :param database_time_in_sec: The database_time_in_sec of this SqlStatistics.
        :type: float
        Nr5   )r/   r   r1   r1   r2   r   °   ó   

c                 C   r4   )zÒ
        **[Required]** Gets the executions_per_hour of this SqlStatistics.
        Number of executions per hour


        :return: The executions_per_hour of this SqlStatistics.
        :rtype: float
        ©r   r6   r1   r1   r2   r	   ¼   r7   z!SqlStatistics.executions_per_hourc                 C   r8   )zÕ
        Sets the executions_per_hour of this SqlStatistics.
        Number of executions per hour


        :param executions_per_hour: The executions_per_hour of this SqlStatistics.
        :type: float
        Nr:   )r/   r	   r1   r1   r2   r	   È   r9   c                 C   r4   )zÇ
        **[Required]** Gets the executions_count of this SqlStatistics.
        Total number of executions


        :return: The executions_count of this SqlStatistics.
        :rtype: int
        ©r   r6   r1   r1   r2   r
   Ô   r7   zSqlStatistics.executions_countc                 C   r8   )zÇ
        Sets the executions_count of this SqlStatistics.
        Total number of executions


        :param executions_count: The executions_count of this SqlStatistics.
        :type: int
        Nr;   )r/   r
   r1   r1   r2   r
   à   r9   c                 C   r4   )zÀ
        **[Required]** Gets the cpu_time_in_sec of this SqlStatistics.
        CPU Time in seconds


        :return: The cpu_time_in_sec of this SqlStatistics.
        :rtype: float
        ©r   r6   r1   r1   r2   r   ì   r7   zSqlStatistics.cpu_time_in_secc                 C   r8   )z¿
        Sets the cpu_time_in_sec of this SqlStatistics.
        CPU Time in seconds


        :param cpu_time_in_sec: The cpu_time_in_sec of this SqlStatistics.
        :type: float
        Nr<   )r/   r   r1   r1   r2   r   ø   r9   c                 C   r4   )z¾
        **[Required]** Gets the io_time_in_sec of this SqlStatistics.
        I/O Time in seconds


        :return: The io_time_in_sec of this SqlStatistics.
        :rtype: float
        ©r    r6   r1   r1   r2   r     r7   zSqlStatistics.io_time_in_secc                 C   r8   )z¼
        Sets the io_time_in_sec of this SqlStatistics.
        I/O Time in seconds


        :param io_time_in_sec: The io_time_in_sec of this SqlStatistics.
        :type: float
        Nr=   )r/   r   r1   r1   r2   r     r9   c                 C   r4   )zç
        **[Required]** Gets the inefficient_wait_time_in_sec of this SqlStatistics.
        Inefficient Wait Time in seconds


        :return: The inefficient_wait_time_in_sec of this SqlStatistics.
        :rtype: float
        ©r!   r6   r1   r1   r2   r     r7   z*SqlStatistics.inefficient_wait_time_in_secc                 C   r8   )zó
        Sets the inefficient_wait_time_in_sec of this SqlStatistics.
        Inefficient Wait Time in seconds


        :param inefficient_wait_time_in_sec: The inefficient_wait_time_in_sec of this SqlStatistics.
        :type: float
        Nr>   )r/   r   r1   r1   r2   r   (  r9   c                 C   r4   )a3  
        **[Required]** Gets the response_time_in_sec of this SqlStatistics.
        Response time is the average elaspsed time per execution. It is the ratio of Total Database Time to the number of executions


        :return: The response_time_in_sec of this SqlStatistics.
        :rtype: float
        ©r"   r6   r1   r1   r2   r   4  r7   z"SqlStatistics.response_time_in_secc                 C   r8   )a7  
        Sets the response_time_in_sec of this SqlStatistics.
        Response time is the average elaspsed time per execution. It is the ratio of Total Database Time to the number of executions


        :param response_time_in_sec: The response_time_in_sec of this SqlStatistics.
        :type: float
        Nr?   )r/   r   r1   r1   r2   r   @  r9   c                 C   r4   )zÎ
        **[Required]** Gets the plan_count of this SqlStatistics.
        Number of SQL execution plans used by the SQL


        :return: The plan_count of this SqlStatistics.
        :rtype: int
        ©r#   r6   r1   r1   r2   r   L  r7   zSqlStatistics.plan_countc                 C   r8   )zÈ
        Sets the plan_count of this SqlStatistics.
        Number of SQL execution plans used by the SQL


        :param plan_count: The plan_count of this SqlStatistics.
        :type: int
        Nr@   )r/   r   r1   r1   r2   r   X  r9   c                 C   r4   )a  
        **[Required]** Gets the variability of this SqlStatistics.
        Variability is the ratio of the standard deviation in response time to the mean of response time of the SQL


        :return: The variability of this SqlStatistics.
        :rtype: float
        ©r$   r6   r1   r1   r2   r   d  r7   zSqlStatistics.variabilityc                 C   r8   )a  
        Sets the variability of this SqlStatistics.
        Variability is the ratio of the standard deviation in response time to the mean of response time of the SQL


        :param variability: The variability of this SqlStatistics.
        :type: float
        NrA   )r/   r   r1   r1   r2   r   p  r9   c                 C   r4   )aO  
        **[Required]** Gets the average_active_sessions of this SqlStatistics.
        Average Active Sessions represent the average active sessions at a point in time. It is the number of sessions that are either working or waiting.


        :return: The average_active_sessions of this SqlStatistics.
        :rtype: float
        ©r%   r6   r1   r1   r2   r   |  r7   z%SqlStatistics.average_active_sessionsc                 C   r8   )aV  
        Sets the average_active_sessions of this SqlStatistics.
        Average Active Sessions represent the average active sessions at a point in time. It is the number of sessions that are either working or waiting.


        :param average_active_sessions: The average_active_sessions of this SqlStatistics.
        :type: float
        NrB   )r/   r   r1   r1   r2   r   ˆ  r9   c                 C   r4   )zÌ
        **[Required]** Gets the database_time_pct of this SqlStatistics.
        Percentage of Database Time


        :return: The database_time_pct of this SqlStatistics.
        :rtype: float
        ©r&   r6   r1   r1   r2   r   ”  r7   zSqlStatistics.database_time_pctc                 C   r8   )zÍ
        Sets the database_time_pct of this SqlStatistics.
        Percentage of Database Time


        :param database_time_pct: The database_time_pct of this SqlStatistics.
        :type: float
        NrC   )r/   r   r1   r1   r2   r      r9   c                 C   r4   )a  
        **[Required]** Gets the inefficiency_in_pct of this SqlStatistics.
        Percentage of Inefficiency. It is calculated by Total Database Time divided by Total Wait Time


        :return: The inefficiency_in_pct of this SqlStatistics.
        :rtype: float
        ©r'   r6   r1   r1   r2   r   ¬  r7   z!SqlStatistics.inefficiency_in_pctc                 C   r8   )a  
        Sets the inefficiency_in_pct of this SqlStatistics.
        Percentage of Inefficiency. It is calculated by Total Database Time divided by Total Wait Time


        :param inefficiency_in_pct: The inefficiency_in_pct of this SqlStatistics.
        :type: float
        NrD   )r/   r   r1   r1   r2   r   ¸  r9   c                 C   r4   )zö
        **[Required]** Gets the change_in_cpu_time_in_pct of this SqlStatistics.
        Percent change in CPU Time based on linear regression


        :return: The change_in_cpu_time_in_pct of this SqlStatistics.
        :rtype: float
        ©r(   r6   r1   r1   r2   r   Ä  r7   z'SqlStatistics.change_in_cpu_time_in_pctc                 C   r8   )zÿ
        Sets the change_in_cpu_time_in_pct of this SqlStatistics.
        Percent change in CPU Time based on linear regression


        :param change_in_cpu_time_in_pct: The change_in_cpu_time_in_pct of this SqlStatistics.
        :type: float
        NrE   )r/   r   r1   r1   r2   r   Ð  r9   c                 C   r4   )zó
        **[Required]** Gets the change_in_io_time_in_pct of this SqlStatistics.
        Percent change in IO Time based on linear regression


        :return: The change_in_io_time_in_pct of this SqlStatistics.
        :rtype: float
        ©r)   r6   r1   r1   r2   r   Ü  r7   z&SqlStatistics.change_in_io_time_in_pctc                 C   r8   )zû
        Sets the change_in_io_time_in_pct of this SqlStatistics.
        Percent change in IO Time based on linear regression


        :param change_in_io_time_in_pct: The change_in_io_time_in_pct of this SqlStatistics.
        :type: float
        NrF   )r/   r   r1   r1   r2   r   è  r9   c                 C   r4   )a  
        **[Required]** Gets the change_in_inefficient_wait_time_in_pct of this SqlStatistics.
        Percent change in Inefficient Wait Time based on linear regression


        :return: The change_in_inefficient_wait_time_in_pct of this SqlStatistics.
        :rtype: float
        ©r*   r6   r1   r1   r2   r   ô  r7   z4SqlStatistics.change_in_inefficient_wait_time_in_pctc                 C   r8   )a3  
        Sets the change_in_inefficient_wait_time_in_pct of this SqlStatistics.
        Percent change in Inefficient Wait Time based on linear regression


        :param change_in_inefficient_wait_time_in_pct: The change_in_inefficient_wait_time_in_pct of this SqlStatistics.
        :type: float
        NrG   )r/   r   r1   r1   r2   r      r9   c                 C   r4   )a  
        **[Required]** Gets the change_in_response_time_in_pct of this SqlStatistics.
        Percent change in Response Time based on linear regression


        :return: The change_in_response_time_in_pct of this SqlStatistics.
        :rtype: float
        ©r+   r6   r1   r1   r2   r     r7   z,SqlStatistics.change_in_response_time_in_pctc                 C   r8   )a  
        Sets the change_in_response_time_in_pct of this SqlStatistics.
        Percent change in Response Time based on linear regression


        :param change_in_response_time_in_pct: The change_in_response_time_in_pct of this SqlStatistics.
        :type: float
        NrH   )r/   r   r1   r1   r2   r     r9   c                 C   r4   )a#  
        **[Required]** Gets the change_in_average_active_sessions_in_pct of this SqlStatistics.
        Percent change in Average Active Sessions based on linear regression


        :return: The change_in_average_active_sessions_in_pct of this SqlStatistics.
        :rtype: float
        ©r,   r6   r1   r1   r2   r   $  r7   z6SqlStatistics.change_in_average_active_sessions_in_pctc                 C   r8   )a;  
        Sets the change_in_average_active_sessions_in_pct of this SqlStatistics.
        Percent change in Average Active Sessions based on linear regression


        :param change_in_average_active_sessions_in_pct: The change_in_average_active_sessions_in_pct of this SqlStatistics.
        :type: float
        NrI   )r/   r   r1   r1   r2   r   0  r9   c                 C   r4   )a  
        **[Required]** Gets the change_in_executions_per_hour_in_pct of this SqlStatistics.
        Percent change in Executions per hour based on linear regression


        :return: The change_in_executions_per_hour_in_pct of this SqlStatistics.
        :rtype: float
        ©r-   r6   r1   r1   r2   r   <  r7   z2SqlStatistics.change_in_executions_per_hour_in_pctc                 C   r8   )a+  
        Sets the change_in_executions_per_hour_in_pct of this SqlStatistics.
        Percent change in Executions per hour based on linear regression


        :param change_in_executions_per_hour_in_pct: The change_in_executions_per_hour_in_pct of this SqlStatistics.
        :type: float
        NrJ   )r/   r   r1   r1   r2   r   H  r9   c                 C   r4   )a  
        **[Required]** Gets the change_in_inefficiency_in_pct of this SqlStatistics.
        Percent change in Inefficiency based on linear regression


        :return: The change_in_inefficiency_in_pct of this SqlStatistics.
        :rtype: float
        ©r.   r6   r1   r1   r2   r   T  r7   z+SqlStatistics.change_in_inefficiency_in_pctc                 C   r8   )a  
        Sets the change_in_inefficiency_in_pct of this SqlStatistics.
        Percent change in Inefficiency based on linear regression


        :param change_in_inefficiency_in_pct: The change_in_inefficiency_in_pct of this SqlStatistics.
        :type: float
        NrK   )r/   r   r1   r1   r2   r   `  r9   c                 C   s   t | ƒS ©N)r   r6   r1   r1   r2   Ú__repr__l  s   zSqlStatistics.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r/   Úotherr1   r1   r2   Ú__eq__o  s   zSqlStatistics.__eq__c                 C   s
   | |k S rL   r1   rO   r1   r1   r2   Ú__ne__u  s   
zSqlStatistics.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r3   Úpropertyr   Úsetterr	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rM   rQ   rR   r1   r1   r1   r2   r      s¦     





































r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r1   r1   r1   r2   Ú<module>   s   