ruạṛ
a O��f�X � @ 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� �Zed4d5� �Zejd6d5� �Zed7d8� �Zejd9d8� �Zed:d;� �Zejd<d;� �Zd=d>� Zd?d@� ZdAdB� ZdCS )D� SqlStatisticsz- Performance statistics for the SQL. c K s� dddddddddddddddddddd�| _ dddddd d ddd dddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _dS )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 �float�int)�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�databaseTimeInSec�executionsPerHour�executionsCount�cpuTimeInSec�ioTimeInSec�inefficientWaitTimeInSec�responseTimeInSec� planCountr �averageActiveSessions�databaseTimePct�inefficiencyInPct�changeInCpuTimeInPct�changeInIoTimeInPct� changeInInefficientWaitTimeInPct�changeInResponseTimeInPct�"changeInAverageActiveSessionsInPct�changeInExecutionsPerHourInPct�changeInInefficiencyInPctN)� swagger_types� 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� rE ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/opsi/models/sql_statistics.py�__init__ sv S��zSqlStatistics.__init__c C s | 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 �r0 �rC rE rE rF r � s z"SqlStatistics.database_time_in_secc C s || _ dS )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 NrH )rC r rE rE rF r � s c C s | j S )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 �r1 rI rE rE rF r � s z!SqlStatistics.executions_per_hourc C s || _ dS )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 NrJ )rC r rE rE rF r � s c C s | j S )z� **[Required]** Gets the executions_count of this SqlStatistics. Total number of executions :return: The executions_count of this SqlStatistics. :rtype: int �r2 rI rE rE rF r � s zSqlStatistics.executions_countc C s || _ dS )z� Sets the executions_count of this SqlStatistics. Total number of executions :param executions_count: The executions_count of this SqlStatistics. :type: int NrK )rC r rE rE rF r � s c C s | j S )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 �r3 rI rE rE rF r � s zSqlStatistics.cpu_time_in_secc C s || _ dS )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 NrL )rC r rE rE rF r � s c C s | j S )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 �r4 rI rE rE rF r s zSqlStatistics.io_time_in_secc C s || _ dS )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 NrM )rC r rE rE rF r s c C s | j S )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 �r5 rI rE rE rF r s z*SqlStatistics.inefficient_wait_time_in_secc C s || _ dS )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 NrN )rC r rE rE rF r & s c C s | j S )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 �r6 rI rE rE rF r 2 s z"SqlStatistics.response_time_in_secc C s || _ dS )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 NrO )rC r rE rE rF r > s c C s | j S )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 �r7 rI rE rE rF r J s zSqlStatistics.plan_countc C s || _ dS )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 NrP )rC r rE rE rF r V s c C s | j S )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 �r8 rI rE rE rF r b s zSqlStatistics.variabilityc C s || _ dS )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 NrQ )rC r rE rE rF r n s c C s | j S )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 �r9 rI rE rE rF r z s z%SqlStatistics.average_active_sessionsc C s || _ dS )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 NrR )rC r rE rE rF r � s c C s | j S )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: rI rE rE rF r � s zSqlStatistics.database_time_pctc C s || _ dS )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 NrS )rC r rE rE rF r � s c C s | j S )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; rI rE rE rF r � s z!SqlStatistics.inefficiency_in_pctc C s || _ dS )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 NrT )rC r rE rE rF r � s c C s | j S )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<