a f0@sddlmZddlmZddlmZddlmZmZddlm Z ddl m Z m Z ddl mZddlmZmZmZdd lmZmZdd lmZdd lmZd d lmZedZGdddeZdS))absolute_import)requests)six)retrycircuit_breaker) BaseClient)get_config_value_or_defaultvalidate_config)Signer)Sentinel#get_signer_from_authentication_typeAUTHENTICATION_TYPE_FIELD_NAME),back_up_body_calculate_stream_content_length(is_content_length_calculable_by_req_util)InvalidAlloyConfig)OCI_SDK_ENABLED_SERVICES_SET)opsi_type_mappingZMissingc@sneZdZdZddZddZddZdd Zd d Zd d Z ddZ ddZ ddZ ddZ ddZddZddZddZddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd,d-Zd.d/Zd0d1Zd2d3Zd4d5Zd6d7Zd8d9Zd:d;Z dd?Z"d@dAZ#dBdCZ$dDdEZ%dFdGZ&dHdIZ'dJdKZ(dLdMZ)dNdOZ*dPdQZ+dRdSZ,dTdUZ-dVdWZ.dXdYZ/dZd[Z0d\d]Z1d^d_Z2d`daZ3dbdcZ4dddeZ5dfdgZ6dhdiZ7djdkZ8dldmZ9dndoZ:dpdqZ;drdsZdxdyZ?dzd{Z@d|d}ZAd~dZBddZCddZDddZEddZFddZGddZHddZIddZJddZKddZLddZMddZNddZOddZPddZQddZRddZSddZTddZUddZVddZWddZXddZYddZZddZ[ddZ\ddZ]ddZ^ddZ_ddZ`ddZaddZbddZcddÄZdddńZeddDŽZfddɄZgdd˄Zhdd̈́ZiddτZjddфZkddӄZlddՄZmddׄZnddلZoddۄZpdd݄Zqdd߄ZrddZsddZtddZuddZvddZwddZxddZyddZzddZ{ddZ|ddZ}ddZ~ddZddZddZddZddZddZddZddZdd Zd d Zd d ZddZddZddZddZddZddZddZddZddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd,d-Zd.d/Zd0d1Zd2d3Zd4d5Zd6d7Zd8d9Zd:d;Zd<d=Zd>d?Zd@dAZdBdCZdDdEZdFdGZdHdIZdJdKZdLdMZdNdOZdPdQZdRdSZdTdUZdVdWZdXdYZdZd[Zd\d]Zd^d_Zd`daZdbdcZdddeZdfS(gOperationsInsightsClientaS Use the Ops Insights API to perform data extraction operations to obtain database resource utilization, performance statistics, and reference information. For more information, see [About Oracle Cloud Infrastructure Ops Insights](https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). c Ks&tdstdt||ddd|vr6|d}nDt|vrHt|}n2t|d|d|d|dt|d |d d }d |d ddi|dd|dt j |dd}d|vr|d|d<|ddurt j |d<d|vr|d|d<t d||t fi||_|d|_|d|_dS)a Creates a new service client :param dict config: Configuration keys and values as per `SDK and Tool Configuration `__. The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config the dict using :py:meth:`~oci.config.validate_config` :param str service_endpoint: (optional) The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit need to specify a service endpoint. :param timeout: (optional) The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. :type timeout: float or tuple(float, float) :param signer: (optional) The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values provided in the config parameter. One use case for this parameter is for `Instance Principals authentication `__ by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument :type signer: :py:class:`~oci.signer.AbstractBaseSigner` :param obj retry_strategy: (optional) A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. Any value provided at the operation level will override whatever is specified at the client level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` is also available. The specifics of the default retry strategy are described `here `__. :param obj circuit_breaker_strategy: (optional) A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. The specifics of circuit breaker strategy are described `here `__. :param function circuit_breaker_callback: (optional) Callback function to receive any exceptions triggerred by the circuit breaker. :param bool client_level_realm_specific_endpoint_template_enabled: (optional) A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None. :param allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not allow control characters to be in the response object. ZopsiaThe Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this servicesigner)rtenancyuser fingerprintZkey_file pass_phraseZ key_content)rrrZprivate_key_file_locationrZprivate_key_contentTservice_endpointz /20200630z;https://operationsinsights.{region}.oci.{secondLevelDomain}skip_deserializationFcircuit_breaker_strategy5client_level_realm_specific_endpoint_template_enabled)Zregional_clientr base_pathZservice_endpoint_templateZ#service_endpoint_template_per_realmrrrtimeoutNallow_control_charsZoperations_insightsretry_strategycircuit_breaker_callback)rZis_service_enabledrr getr r r rrZGLOBAL_CIRCUIT_BREAKER_STRATEGYZ DEFAULT_CIRCUIT_BREAKER_STRATEGYrr base_clientr!r")selfZconfigkwargsrZbase_client_init_kwargsr'G/usr/lib/python3.9/site-packages/oci/opsi/operations_insights_client.py__init__sB3         z!OperationsInsightsClient.__init__c sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a= Add new members (e.g. databases and hosts) to an Exadata system in Operations Insights. Exadata-related metric collection and analysis will be started. :param oci.opsi.models.AddExadataInsightMembersDetails add_exadata_insight_members_details: (required) Details for the members (e.g. databases and hosts) of an Exadata system to be added in Operations Insights. :param str exadata_insight_id: (required) Unique Exadata insight identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use add_exadata_insight_members API. exadataInsightIdz6/exadataInsights/{exadataInsightId}/actions/addMembersPOSTadd_exadata_insight_memberszkhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/AddExadataInsightMembersr r!if_matchopc_request_idopc_retry_tokencsg|]}|vr|qSr'r'.0Z_keyZexpected_kwargsr'r( zHOperationsInsightsClient.add_exadata_insight_members..z0add_exadata_insight_members got unknown kwargs: cSsi|]\}}|tur||qSr'missingr2kvr'r'r( r5zHOperationsInsightsClient.add_exadata_insight_members..Nr Parameter + cannot be None, whitespace or empty stringapplication/jsonr.r/r0accept content-typeif-matchopc-request-idopc-retry-tokencSs&i|]\}}|tur|dur||qSNr6r8r'r'r(r;r5r!Zoperation_retry_strategyZclient_retry_strategyr resource_pathmethod path_params header_paramsbodyr operation_nameapi_reference_linkrequired_argumentsriterkeys ValueError iteritems isinstance string_typeslenstripr#r7r$get_preferred_retry_strategyr!rDEFAULT_RETRY_STRATEGYNoneRetryStrategyadd_opc_retry_token_if_neededadd_opc_client_retries_headeradd_circuit_breaker_callbackr"make_retrying_callcall_api)r%Z#add_exadata_insight_members_detailsexadata_insight_idr&rOrHrIrMrN extra_kwargsrJr9r:rKr!r'r3r(r,zst/$        z4OperationsInsightsClient.add_exadata_insight_membersc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)aL Update connection detail for advanced features of Autonomous Database in Operations Insights. :param oci.opsi.models.ChangeAutonomousDatabaseInsightAdvancedFeaturesDetails change_autonomous_database_insight_advanced_features_details: (required) Details for the advanced features of Autonomous Database in Operations Insights. :param str database_insight_id: (required) Unique database insight identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_autonomous_database_insight_advanced_features API. databaseInsightIdz]/databaseInsights/{databaseInsightId}/actions/changeAutonomousDatabaseInsightAdvancedFeaturesr+4change_autonomous_database_insight_advanced_featureszhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ChangeAutonomousDatabaseInsightAdvancedFeaturesr-csg|]}|vr|qSr'r'r1r3r'r(r4/r5zaOperationsInsightsClient.change_autonomous_database_insight_advanced_features..zIchange_autonomous_database_insight_advanced_features got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;8r5zaOperationsInsightsClient.change_autonomous_database_insight_advanced_features..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Er5r!rFr rGrP)r%Z`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_awr_hub_source_compartment API. awrHubSourceIdz9/awrHubSources/{awrHubSourceId}/actions/changeCompartmentr+!change_awr_hub_source_compartmentznhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/ChangeAwrHubSourceCompartmentr-csg|]}|vr|qSr'r'r1r3r'r(r4r5zNOperationsInsightsClient.change_awr_hub_source_compartment..z6change_awr_hub_source_compartment got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zNOperationsInsightsClient.change_awr_hub_source_compartment..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rGrP)r%awr_hub_source_idZ)change_awr_hub_source_compartment_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rfjst/$        z:OperationsInsightsClient.change_awr_hub_source_compartmentc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Moves a DatabaseInsight resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource. :param str database_insight_id: (required) Unique database insight identifier :param oci.opsi.models.ChangeDatabaseInsightCompartmentDetails change_database_insight_compartment_details: (required) The information to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_database_insight_compartment API. rbz?/databaseInsights/{databaseInsightId}/actions/changeCompartmentr+#change_database_insight_compartmentzthttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ChangeDatabaseInsightCompartmentr-csg|]}|vr|qSr'r'r1r3r'r(r4r5zPOperationsInsightsClient.change_database_insight_compartment..z8change_database_insight_compartment got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;(r5zPOperationsInsightsClient.change_database_insight_compartment..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;5r5r!rFr rGrP)r%rdZ+change_database_insight_compartment_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rhst/$        z`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_enterprise_manager_bridge_compartment API. enterpriseManagerBridgeIdzO/enterpriseManagerBridges/{enterpriseManagerBridgeId}/actions/changeCompartmentr+,change_enterprise_manager_bridge_compartmentzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/ChangeEnterpriseManagerBridgeCompartmentr r!r.r/csg|]}|vr|qSr'r'r1r3r'r(r4r5zYOperationsInsightsClient.change_enterprise_manager_bridge_compartment..zAchange_enterprise_manager_bridge_compartment got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zYOperationsInsightsClient.change_enterprise_manager_bridge_compartment..Nrr<r=r>r.r/r@rArBrCcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rGrrQrRrSrTrUrVrWr#r7r$rXr!rrYrZr\r]r"r^r_)r%enterprise_manager_bridge_idZ4change_enterprise_manager_bridge_compartment_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rjZsp'$      zEOperationsInsightsClient.change_enterprise_manager_bridge_compartmentc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Moves an Exadata insight resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource. :param str exadata_insight_id: (required) Unique Exadata insight identifier :param oci.opsi.models.ChangeExadataInsightCompartmentDetails change_exadata_insight_compartment_details: (required) The information to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_exadata_insight_compartment API. r*z=/exadataInsights/{exadataInsightId}/actions/changeCompartmentr+"change_exadata_insight_compartmentzrhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/ChangeExadataInsightCompartmentr-csg|]}|vr|qSr'r'r1r3r'r(r4r5zOOperationsInsightsClient.change_exadata_insight_compartment..z7change_exadata_insight_compartment got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r; r5zOOperationsInsightsClient.change_exadata_insight_compartment..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rGrP)r%r`Z*change_exadata_insight_compartment_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rost/$        z;OperationsInsightsClient.change_exadata_insight_compartmentc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Moves a HostInsight resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource. :param str host_insight_id: (required) Unique host insight identifier :param oci.opsi.models.ChangeHostInsightCompartmentDetails change_host_insight_compartment_details: (required) The information to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_host_insight_compartment API. hostInsightIdz7/hostInsights/{hostInsightId}/actions/changeCompartmentr+change_host_insight_compartmentzlhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ChangeHostInsightCompartmentr-csg|]}|vr|qSr'r'r1r3r'r(r4|r5zLOperationsInsightsClient.change_host_insight_compartment..z4change_host_insight_compartment got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zLOperationsInsightsClient.change_host_insight_compartment..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rGrP)r%host_insight_idZ'change_host_insight_compartment_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rq?st/$        z8OperationsInsightsClient.change_host_insight_compartmentc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Moves a news report resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource. :param str news_report_id: (required) Unique news report identifier. :param oci.opsi.models.ChangeNewsReportCompartmentDetails change_news_report_compartment_details: (required) The information to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_news_report_compartment API. newsReportIdz5/newsReports/{newsReportId}/actions/changeCompartmentr+change_news_report_compartmentzjhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/ChangeNewsReportCompartmentr-csg|]}|vr|qSr'r'r1r3r'r(r4r5zKOperationsInsightsClient.change_news_report_compartment..z3change_news_report_compartment got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zKOperationsInsightsClient.change_news_report_compartment..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r; r5r!rFr rGrP)r%news_report_idZ&change_news_report_compartment_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rtst/$        z7OperationsInsightsClient.change_news_report_compartmentc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Moves a private endpoint from one compartment to another. When provided, If-Match is checked against ETag values of the resource. :param str operations_insights_private_endpoint_id: (required) The `OCID`__ of the Operation Insights private endpoint. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param oci.opsi.models.ChangeOperationsInsightsPrivateEndpointCompartmentDetails change_operations_insights_private_endpoint_compartment_details: (required) The details used to change the compartment of a private endpoint :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_operations_insights_private_endpoint_compartment API. #operationsInsightsPrivateEndpointIdzc/operationsInsightsPrivateEndpoints/{operationsInsightsPrivateEndpointId}/actions/changeCompartmentr+7change_operations_insights_private_endpoint_compartmentzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/ChangeOperationsInsightsPrivateEndpointCompartmentr-csg|]}|vr|qSr'r'r1r3r'r(r4nr5zdOperationsInsightsClient.change_operations_insights_private_endpoint_compartment..zLchange_operations_insights_private_endpoint_compartment got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;wr5zdOperationsInsightsClient.change_operations_insights_private_endpoint_compartment..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rGrP)r%'operations_insights_private_endpoint_idZ?change_operations_insights_private_endpoint_compartment_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rw/st1$        zPOperationsInsightsClient.change_operations_insights_private_endpoint_compartmentc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)aX Moves a Operations Insights Warehouse resource from one compartment to another. When provided, If-Match is checked against ETag values of the resource. :param str operations_insights_warehouse_id: (required) Unique Ops Insights Warehouse identifier :param oci.opsi.models.ChangeOperationsInsightsWarehouseCompartmentDetails change_operations_insights_warehouse_compartment_details: (required) The information to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_operations_insights_warehouse_compartment API. operationsInsightsWarehouseIdzW/operationsInsightsWarehouses/{operationsInsightsWarehouseId}/actions/changeCompartmentr+0change_operations_insights_warehouse_compartmentzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/ChangeOperationsInsightsWarehouseCompartmentr-csg|]}|vr|qSr'r'r1r3r'r(r4r5z]OperationsInsightsClient.change_operations_insights_warehouse_compartment..zEchange_operations_insights_warehouse_compartment got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5z]OperationsInsightsClient.change_operations_insights_warehouse_compartment..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rGrP)r% operations_insights_warehouse_idZ8change_operations_insights_warehouse_compartment_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rzst/$        zIOperationsInsightsClient.change_operations_insights_warehouse_compartmentc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a+ Moves an OpsiConfiguration resource from one compartment to another. :param str opsi_configuration_id: (required) `OCID`__ of OPSI configuration resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param oci.opsi.models.ChangeOpsiConfigurationCompartmentDetails change_opsi_configuration_compartment_details: (required) The information to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_opsi_configuration_compartment API. opsiConfigurationIdzC/opsiConfigurations/{opsiConfigurationId}/actions/changeCompartmentr+%change_opsi_configuration_compartmentzxhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/ChangeOpsiConfigurationCompartmentr-csg|]}|vr|qSr'r'r1r3r'r(r4`r5zROperationsInsightsClient.change_opsi_configuration_compartment..z:change_opsi_configuration_compartment got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;ir5zROperationsInsightsClient.change_opsi_configuration_compartment..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;vr5r!rFr rGrP)r%opsi_configuration_idZ-change_opsi_configuration_compartment_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(r}!st1$        z>OperationsInsightsClient.change_opsi_configuration_compartmentc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Change the connection details of a co-managed database insight. When provided, If-Match is checked against ETag values of the resource. :param str database_insight_id: (required) Unique database insight identifier :param oci.opsi.models.ChangePeComanagedDatabaseInsightDetails change_pe_comanaged_database_insight_details: (required) The information to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use change_pe_comanaged_database_insight API. rbzU/databaseInsights/{databaseInsightId}/actions/changePeComanagedDatabaseInsightDetailsr+$change_pe_comanaged_database_insightzthttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ChangePeComanagedDatabaseInsightr-csg|]}|vr|qSr'r'r1r3r'r(r4r5zQOperationsInsightsClient.change_pe_comanaged_database_insight..z9change_pe_comanaged_database_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zQOperationsInsightsClient.change_pe_comanaged_database_insight..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rGrP)r%rdZ,change_pe_comanaged_database_insight_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rst/$        z=OperationsInsightsClient.change_pe_comanaged_database_insightc s"g}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | durt j } | rt | t j s|j | |j| | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a Create a AWR hub resource for the tenant in Operations Insights. This resource will be created in root compartment. :param oci.opsi.models.CreateAwrHubDetails create_awr_hub_details: (required) Details using which an AWR hub resource will be created in Operations Insights. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrHub` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_awr_hub API. /awrHubsr+create_awr_hubzWhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/CreateAwrHubr r!r0r/csg|]}|vr|qSr'r'r1r3r'r(r4Hr5z;OperationsInsightsClient.create_awr_hub..z#create_awr_hub got unknown kwargs: r>r0r/r@rArDrCcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Sr5z;OperationsInsightsClient.create_awr_hub..r!rFNAwrHubr rHrIrKrL response_typer rMrNrOrrQrRr#r7rSr$rXr!rrYrTrZr[r\r]r"r^r_) r%Zcreate_awr_hub_detailsr&rOrHrIrMrNrarKr!r'r3r(rsf(       z'OperationsInsightsClient.create_awr_hubc s"g}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | durt j } | rt | t j s|j | |j| | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a Register Awr Hub source :param oci.opsi.models.CreateAwrHubSourceDetails create_awr_hub_source_details: (required) Payload containing details to register the source database :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrHubSource` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_awr_hub_source API. /awrHubSourcesr+create_awr_hub_sourcezchttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/CreateAwrHubSourcercsg|]}|vr|qSr'r'r1r3r'r(r4r5zBOperationsInsightsClient.create_awr_hub_source..z*create_awr_hub_source got unknown kwargs: r>r0r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5zBOperationsInsightsClient.create_awr_hub_source..r!rFN AwrHubSourcer rr) r%Zcreate_awr_hub_source_detailsr&rOrHrIrMrNrarKr!r'r3r(rxsf'       z.OperationsInsightsClient.create_awr_hub_sourcec s"g}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | durt j } | rt | t j s|j | |j| | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a Create a Database Insight resource for a database in Operations Insights. The database will be enabled in Operations Insights. Database metric collection and analysis will be started. :param oci.opsi.models.CreateDatabaseInsightDetails create_database_insight_details: (required) Details for the database for which a Database Insight resource will be created in Operations Insights. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.DatabaseInsight` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_database_insight API. /databaseInsightsr+create_database_insightzihttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/CreateDatabaseInsightrcsg|]}|vr|qSr'r'r1r3r'r(r4r5zDOperationsInsightsClient.create_database_insight..z,create_database_insight got unknown kwargs: r>r0r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5zDOperationsInsightsClient.create_database_insight..r!rFNDatabaseInsightr rr) r%Zcreate_database_insight_detailsr&rOrHrIrMrNrarKr!r'r3r(rsf'       z0OperationsInsightsClient.create_database_insightc s"g}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | durt j } | rt | t j s|j | |j| | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a Create a Enterprise Manager bridge in Operations Insights. :param oci.opsi.models.CreateEnterpriseManagerBridgeDetails create_enterprise_manager_bridge_details: (required) Details for the Enterprise Manager bridge to be created in Operations Insights. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.EnterpriseManagerBridge` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_enterprise_manager_bridge API. /enterpriseManagerBridgesr+ create_enterprise_manager_bridgezyhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/CreateEnterpriseManagerBridgercsg|]}|vr|qSr'r'r1r3r'r(r4tr5zMOperationsInsightsClient.create_enterprise_manager_bridge..z5create_enterprise_manager_bridge got unknown kwargs: r>r0r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5zMOperationsInsightsClient.create_enterprise_manager_bridge..r!rFNEnterpriseManagerBridger rr) r%Z(create_enterprise_manager_bridge_detailsr&rOrHrIrMrNrarKr!r'r3r(r@sf'       z9OperationsInsightsClient.create_enterprise_manager_bridgec s"g}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | durt j } | rt | t j s|j | |j| | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a Create an Exadata insight resource for an Exadata system in Operations Insights. The Exadata system will be enabled in Operations Insights. Exadata-related metric collection and analysis will be started. :param oci.opsi.models.CreateExadataInsightDetails create_exadata_insight_details: (required) Details for the Exadata system for which an Exadata insight resource will be created in Operations Insights. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.ExadataInsight` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_exadata_insight API. /exadataInsightsr+create_exadata_insightzghttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/CreateExadataInsightrcsg|]}|vr|qSr'r'r1r3r'r(r4r5zCOperationsInsightsClient.create_exadata_insight..z+create_exadata_insight got unknown kwargs: r>r0r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5zCOperationsInsightsClient.create_exadata_insight..r!rFNExadataInsightr rr) r%Zcreate_exadata_insight_detailsr&rOrHrIrMrNrarKr!r'r3r(rsf'       z/OperationsInsightsClient.create_exadata_insightc s"g}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | durt j } | rt | t j s|j | |j| | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a? Create a Host Insight resource for a host in Ops Insights. The host will be enabled in Ops Insights. Host metric collection and analysis will be started. :param oci.opsi.models.CreateHostInsightDetails create_host_insight_details: (required) Details for the host for which a Host Insight resource will be created in Ops Insights. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.HostInsight` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_host_insight API. /hostInsightsr+create_host_insightzahttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/CreateHostInsightrcsg|]}|vr|qSr'r'r1r3r'r(r4<r5z@OperationsInsightsClient.create_host_insight..z(create_host_insight got unknown kwargs: r>r0r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Gr5z@OperationsInsightsClient.create_host_insight..r!rFN HostInsightr rr) r%Zcreate_host_insight_detailsr&rOrHrIrMrNrarKr!r'r3r(rsf'       z,OperationsInsightsClient.create_host_insightc s"g}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | durt j } | rt | t j s|j | |j| | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a Create a news report in Ops Insights. The report will be enabled in Ops Insights. Insights will be emailed as per selected frequency. :param oci.opsi.models.CreateNewsReportDetails create_news_report_details: (required) Details for the news report that will be created in Ops Insights. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.NewsReport` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_news_report API. /newsReportsr+create_news_reportz_https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/CreateNewsReportrcsg|]}|vr|qSr'r'r1r3r'r(r4r5z?OperationsInsightsClient.create_news_report..z'create_news_report got unknown kwargs: r>r0r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5z?OperationsInsightsClient.create_news_report..r!rFN NewsReportr rr) r%Zcreate_news_report_detailsr&rOrHrIrMrNrarKr!r'r3r(rlsf'       z+OperationsInsightsClient.create_news_reportc s"g}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | durt j } | rt | t j s|j | |j| | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)am Create a private endpoint resource for the tenant in Ops Insights. This resource will be created in customer compartment. :param oci.opsi.models.CreateOperationsInsightsPrivateEndpointDetails create_operations_insights_private_endpoint_details: (required) Details to create a new private endpoint. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OperationsInsightsPrivateEndpoint` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_operations_insights_private_endpoint API. #/operationsInsightsPrivateEndpointsr++create_operations_insights_private_endpointzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/CreateOperationsInsightsPrivateEndpointrcsg|]}|vr|qSr'r'r1r3r'r(r4 r5zXOperationsInsightsClient.create_operations_insights_private_endpoint..z@create_operations_insights_private_endpoint got unknown kwargs: r>r0r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r; r5zXOperationsInsightsClient.create_operations_insights_private_endpoint..r!rFN!OperationsInsightsPrivateEndpointr rr) r%Z3create_operations_insights_private_endpoint_detailsr&rOrHrIrMrNrarKr!r'r3r(rsf(       zDOperationsInsightsClient.create_operations_insights_private_endpointc s"g}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | durt j } | rt | t j s|j | |j| | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)aj Create a Ops Insights Warehouse resource for the tenant in Ops Insights. New ADW will be provisioned for this tenant. There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment. If the 'opsi-warehouse-type' header is passed to the API, a warehouse resource without ADW or Schema provisioning is created. :param oci.opsi.models.CreateOperationsInsightsWarehouseDetails create_operations_insights_warehouse_details: (required) Details using which an Ops Insights Warehouse resource will be created in Ops Insights. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OperationsInsightsWarehouse` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_operations_insights_warehouse API. /operationsInsightsWarehousesr+$create_operations_insights_warehousezhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/CreateOperationsInsightsWarehousercsg|]}|vr|qSr'r'r1r3r'r(r4k r5zQOperationsInsightsClient.create_operations_insights_warehouse..z9create_operations_insights_warehouse got unknown kwargs: r>r0r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;v r5zQOperationsInsightsClient.create_operations_insights_warehouse..r!rFNOperationsInsightsWarehouser rr) r%Z,create_operations_insights_warehouse_detailsr&rOrHrIrMrNrarKr!r'r3r(r5 sf)       z=OperationsInsightsClient.create_operations_insights_warehousec s"g}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | durt j } | rt | t j s|j | |j| | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a Create a Operations Insights Warehouse user resource for the tenant in Operations Insights. This resource will be created in root compartment. :param oci.opsi.models.CreateOperationsInsightsWarehouseUserDetails create_operations_insights_warehouse_user_details: (required) Parameter using which an Operations Insights Warehouse user resource will be created. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OperationsInsightsWarehouseUser` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_operations_insights_warehouse_user API. !/operationsInsightsWarehouseUsersr+)create_operations_insights_warehouse_userzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/CreateOperationsInsightsWarehouseUserrcsg|]}|vr|qSr'r'r1r3r'r(r4 r5zVOperationsInsightsClient.create_operations_insights_warehouse_user..z>create_operations_insights_warehouse_user got unknown kwargs: r>r0r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r; r5zVOperationsInsightsClient.create_operations_insights_warehouse_user..r!rFNOperationsInsightsWarehouseUserr rr) r%Z1create_operations_insights_warehouse_user_detailsr&rOrHrIrMrNrarKr!r'r3r(r sf(       zBOperationsInsightsClient.create_operations_insights_warehouse_userc s0g}d}d}d}d}gdfddt|D}|rFtd|d |vrxd g} |d D]} | | vr\td | q\d |vrd dg} |d D]} | | vrtd| qd|vrgd} |dD]}|| vrtd| q|j|d td|j|d td|j|dtd|j|dtdd}ddt|D}dd|dt|dtd}ddt|D}|jj|d|j d}|durt j }|rt |t j s|j||j|||j|j|jj|||||d |d!|||d" S|jj|||||d |d!|||d" SdS)#a Create an OPSI configuration resource. :param oci.opsi.models.CreateOpsiConfigurationDetails create_opsi_configuration_details: (required) Information about OPSI configuration resource to be created. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] opsi_config_field: (optional) Optional fields to return as part of OpsiConfiguration object. Unless requested, these fields will not be returned by default. Allowed values are: "configItems" :param list[str] config_item_custom_status: (optional) Specifies whether only customized configuration items or only non-customized configuration items or both have to be returned. By default only customized configuration items are returned. Allowed values are: "customized", "nonCustomized" :param list[str] config_items_applicable_context: (optional) Returns the configuration items filtered by applicable contexts sent in this param. By default configuration items of all applicable contexts are returned. :param list[str] config_item_field: (optional) Specifies the fields to return in a config item summary. Allowed values are: "name", "value", "defaultValue", "metadata", "applicableContexts" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OpsiConfiguration` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_opsi_configuration API. /opsiConfigurationsr+create_opsi_configurationzmhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/CreateOpsiConfiguration)r r!r0r/opsi_config_fieldconfig_item_custom_statusconfig_items_applicable_contextconfig_item_fieldcsg|]}|vr|qSr'r'r1r3r'r(r4K r5zFOperationsInsightsClient.create_opsi_configuration..z.create_opsi_configuration got unknown kwargs: r configItems6Invalid value for `opsi_config_field`, must be one of r customized nonCustomized>Invalid value for `config_item_custom_status`, must be one of rnamevalue defaultValuemetadataapplicableContexts6Invalid value for `config_item_field`, must be one of multirZopsiConfigFieldZconfigItemCustomStatusconfigItemsApplicableContextconfigItemFieldcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;n r5zFOperationsInsightsClient.create_opsi_configuration..r>r0r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;v r5r!rFNOpsiConfigurationr rHrI query_paramsrKrLrr rMrNrO)rrQrRr$ generate_collection_format_paramr#r7rSrXr!rrYrTrZr[r\r]r"r^r_)r%Z!create_opsi_configuration_detailsr&rOrHrIrMrNra opsi_config_field_allowed_valuesopsi_config_field_item(config_item_custom_status_allowed_valuesconfig_item_custom_status_item config_item_field_allowed_valuesconfig_item_field_itemrrKr!r'r3r(r s:           z2OperationsInsightsClient.create_opsi_configurationc s~dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rXt| t js2|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a Deletes an AWR hub. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_awr_hub API. awrHubId/awrHubs/{awrHubId}DELETEdelete_awr_hubzWhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/DeleteAwrHubrkcsg|]}|vr|qSr'r'r1r3r'r(r4 r5z;OperationsInsightsClient.delete_awr_hub..z#delete_awr_hub got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r; r5z;OperationsInsightsClient.delete_awr_hub..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r; r5r!rFr rHrIrJrKr rMrNrOrmr% awr_hub_idr&rOrHrIrMrNrarJr9r:rKr!r'r3r(r sl$$      z'OperationsInsightsClient.delete_awr_hubc sddg}d}d}d}d}gdfdd t|D} | rJtd | ||d } d d t| D} t| D]<\} } | dust| tjrrt| dkrrtd| dqrdd|dt |dt d} dd t| D} |j j |d|j d}|dur t j}|r\t|t js6|j | ||j|j|j j||| | |d|||d S|j j||| | |d|||dSdS)a\ Deletes an Awr Hub object. :param str awr_hub_source_id: (required) Unique Awr Hub Source identifier :param str object_name: (required) Unique Awr Hub Object identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_awr_hub_object API. re objectName.z*delete_awr_hub_object got unknown kwargs: rercSsi|]\}}|tur||qSr'r6r8r'r'r(r;C r5zBOperationsInsightsClient.delete_awr_hub_object..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;O r5r!rFr rrmr%rg object_namer&rOrHrIrMrNrarJr9r:rKr!r'r3r(r sn'$      z.OperationsInsightsClient.delete_awr_hub_objectc s~dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rXt| t js2|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a  Deletes an Awr Hub source object. :param str awr_hub_source_id: (required) Unique Awr Hub Source identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_awr_hub_source API. re/awrHubSources/{awrHubSourceId}rdelete_awr_hub_sourcezchttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/DeleteAwrHubSourcerkcsg|]}|vr|qSr'r'r1r3r'r(r4 r5zBOperationsInsightsClient.delete_awr_hub_source..z*delete_awr_hub_source got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r; r5zBOperationsInsightsClient.delete_awr_hub_source..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r; r5r!rFr rrmr%rgr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rq sl$$      z.OperationsInsightsClient.delete_awr_hub_sourcec s~dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rXt| t js2|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)aN Deletes a database insight. The database insight will be deleted and cannot be enabled again. :param str database_insight_id: (required) Unique database insight identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_database_insight API. rb%/databaseInsights/{databaseInsightId}rdelete_database_insightzihttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/DeleteDatabaseInsightrkcsg|]}|vr|qSr'r'r1r3r'r(r4 r5zDOperationsInsightsClient.delete_database_insight..z,delete_database_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r; r5zDOperationsInsightsClient.delete_database_insight..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r; r5r!rFr rrmr%rdr&rOrHrIrMrNrarJr9r:rKr!r'r3r(r sl$$      z0OperationsInsightsClient.delete_database_insightc s~dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rXt| t js2|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a Deletes an Operations Insights Enterprise Manager bridge. If any database insight is still referencing this bridge, the operation will fail. :param str enterprise_manager_bridge_id: (required) Unique Enterprise Manager bridge identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_enterprise_manager_bridge API. ri5/enterpriseManagerBridges/{enterpriseManagerBridgeId}r delete_enterprise_manager_bridgezyhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/DeleteEnterpriseManagerBridgerkcsg|]}|vr|qSr'r'r1r3r'r(r4r r5zMOperationsInsightsClient.delete_enterprise_manager_bridge..z5delete_enterprise_manager_bridge got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;{ r5zMOperationsInsightsClient.delete_enterprise_manager_bridge..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r; r5r!rFr rrmr%rnr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rA sl$$      z9OperationsInsightsClient.delete_enterprise_manager_bridgec s~dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rXt| t js2|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)aI Deletes an Exadata insight. The Exadata insight will be deleted and cannot be enabled again. :param str exadata_insight_id: (required) Unique Exadata insight identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_exadata_insight API. r*#/exadataInsights/{exadataInsightId}rdelete_exadata_insightzghttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/DeleteExadataInsightrkcsg|]}|vr|qSr'r'r1r3r'r(r4 r5zCOperationsInsightsClient.delete_exadata_insight..z+delete_exadata_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r; r5zCOperationsInsightsClient.delete_exadata_insight..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r; r5r!rFr rrmr%r`r&rOrHrIrMrNrarJr9r:rKr!r'r3r(r sl$$      z/OperationsInsightsClient.delete_exadata_insightc s~dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rXt| t js2|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a6 Deletes a host insight. The host insight will be deleted and cannot be enabled again. :param str host_insight_id: (required) Unique host insight identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_host_insight API. rp/hostInsights/{hostInsightId}rdelete_host_insightzahttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/DeleteHostInsightrkcsg|]}|vr|qSr'r'r1r3r'r(r4B r5z@OperationsInsightsClient.delete_host_insight..z(delete_host_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;K r5z@OperationsInsightsClient.delete_host_insight..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;W r5r!rFr rrmr%rrr&rOrHrIrMrNrarJr9r:rKr!r'r3r(r sl$$      z,OperationsInsightsClient.delete_host_insightc s~dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rXt| t js2|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a1 Deletes a news report. The news report will be deleted and cannot be enabled again. :param str news_report_id: (required) Unique news report identifier. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_news_report API. rs/newsReports/{newsReportId}rdelete_news_reportz_https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/DeleteNewsReportrkcsg|]}|vr|qSr'r'r1r3r'r(r4 r5z?OperationsInsightsClient.delete_news_report..z'delete_news_report got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r; r5z?OperationsInsightsClient.delete_news_report..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r; r5r!rFr rrmr%rur&rOrHrIrMrNrarJr9r:rKr!r'r3r(ry sl$$      z+OperationsInsightsClient.delete_news_reportc s~dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rXt| t js2|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a Deletes a private endpoint. :param str operations_insights_private_endpoint_id: (required) The `OCID`__ of the Operation Insights private endpoint. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_operations_insights_private_endpoint API. rvI/operationsInsightsPrivateEndpoints/{operationsInsightsPrivateEndpointId}r+delete_operations_insights_private_endpointzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/DeleteOperationsInsightsPrivateEndpointrkcsg|]}|vr|qSr'r'r1r3r'r(r4r5zXOperationsInsightsClient.delete_operations_insights_private_endpoint..z@delete_operations_insights_private_endpoint got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zXOperationsInsightsClient.delete_operations_insights_private_endpoint..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;)r5r!rFr rrmr%rxr&rOrHrIrMrNrarJr9r:rKr!r'r3r(r sl&$      zDOperationsInsightsClient.delete_operations_insights_private_endpointc s~dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rXt| t js2|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)ae Deletes an Operations Insights Warehouse. There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment. User must delete AWR Hub resource for this warehouse before calling this operation. User must delete the warehouse users before calling this operation. :param str operations_insights_warehouse_id: (required) Unique Ops Insights Warehouse identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_operations_insights_warehouse API. ry=/operationsInsightsWarehouses/{operationsInsightsWarehouseId}r$delete_operations_insights_warehousezhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/DeleteOperationsInsightsWarehouserkcsg|]}|vr|qSr'r'r1r3r'r(r4r5zQOperationsInsightsClient.delete_operations_insights_warehouse..z9delete_operations_insights_warehouse got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zQOperationsInsightsClient.delete_operations_insights_warehouse..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rrmr%r{r&rOrHrIrMrNrarJr9r:rKr!r'r3r(rKsl'$      z=OperationsInsightsClient.delete_operations_insights_warehousec s~dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rXt| t js2|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)ag Deletes an Operations Insights Warehouse User. :param str operations_insights_warehouse_user_id: (required) Unique Operations Insights Warehouse User identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_operations_insights_warehouse_user API. !operationsInsightsWarehouseUserIdE/operationsInsightsWarehouseUsers/{operationsInsightsWarehouseUserId}r)delete_operations_insights_warehouse_userzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/DeleteOperationsInsightsWarehouseUserrkcsg|]}|vr|qSr'r'r1r3r'r(r4r5zVOperationsInsightsClient.delete_operations_insights_warehouse_user..z>delete_operations_insights_warehouse_user got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zVOperationsInsightsClient.delete_operations_insights_warehouse_user..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rrmr%%operations_insights_warehouse_user_idr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rsl$$      zBOperationsInsightsClient.delete_operations_insights_warehouse_userc s~dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rXt| t js2|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a Deletes an OPSI configuration resource. :param str opsi_configuration_id: (required) `OCID`__ of OPSI configuration resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_opsi_configuration API. r|)/opsiConfigurations/{opsiConfigurationId}rdelete_opsi_configurationzmhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/DeleteOpsiConfigurationrkcsg|]}|vr|qSr'r'r1r3r'r(r4Qr5zFOperationsInsightsClient.delete_opsi_configuration..z.delete_opsi_configuration got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;Zr5zFOperationsInsightsClient.delete_opsi_configuration..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;fr5r!rFr rrm)r%r~r&rOrHrIrMrNrarJr9r:rKr!r'r3r(rsl&$      z2OperationsInsightsClient.delete_opsi_configurationc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rnt| t jsH|j | |j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a} Disable advanced features for an Autonomous Database in Operations Insights. The connection detail and advanced features will be removed. :param str database_insight_id: (required) Unique database insight identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use disable_autonomous_database_insight_advanced_features API. rbz^/databaseInsights/{databaseInsightId}/actions/disableAutonomousDatabaseInsightAdvancedFeaturesr+5disable_autonomous_database_insight_advanced_featureszhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/DisableAutonomousDatabaseInsightAdvancedFeaturesr-csg|]}|vr|qSr'r'r1r3r'r(r4r5zbOperationsInsightsClient.disable_autonomous_database_insight_advanced_features..zJdisable_autonomous_database_insight_advanced_features got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zbOperationsInsightsClient.disable_autonomous_database_insight_advanced_features..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rrPrr'r3r(rsp,$        zNOperationsInsightsClient.disable_autonomous_database_insight_advanced_featuresc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rnt| t jsH|j | |j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a+ Disables a Awr Hub source database in Operations Insights. This will stop the Awr data flow for the given Awr Hub source. :param str awr_hub_source_id: (required) Unique Awr Hub Source identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use disable_awr_hub_source API. rez//awrHubSources/{awrHubSourceId}/actions/disabler+disable_awr_hub_sourcezdhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/DisableAwrHubSourcer-csg|]}|vr|qSr'r'r1r3r'r(r45r5zCOperationsInsightsClient.disable_awr_hub_source..z+disable_awr_hub_source got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;>r5zCOperationsInsightsClient.disable_awr_hub_source..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Kr5r!rFr rrPrr'r3r(rsp,$        z/OperationsInsightsClient.disable_awr_hub_sourcec sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rnt| t jsH|j | |j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a Disables a database in Operations Insights. Database metric collection and analysis will be stopped. :param str database_insight_id: (required) Unique database insight identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use disable_database_insight API. rbz5/databaseInsights/{databaseInsightId}/actions/disabler+disable_database_insightzjhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/DisableDatabaseInsightr-csg|]}|vr|qSr'r'r1r3r'r(r4r5zEOperationsInsightsClient.disable_database_insight..z-disable_database_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zEOperationsInsightsClient.disable_database_insight..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rrPrr'r3r(rnsp,$        z1OperationsInsightsClient.disable_database_insightc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rnt| t jsH|j | |j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a( Disables an Exadata system in Operations Insights. Exadata-related metric collection and analysis will be stopped. :param str exadata_insight_id: (required) Unique Exadata insight identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use disable_exadata_insight API. r*z3/exadataInsights/{exadataInsightId}/actions/disabler+disable_exadata_insightzhhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/DisableExadataInsightr-csg|]}|vr|qSr'r'r1r3r'r(r4r5zDOperationsInsightsClient.disable_exadata_insight..z,disable_exadata_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;$r5zDOperationsInsightsClient.disable_exadata_insight..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;1r5r!rFr rrPrr'r3r(rsp,$        z0OperationsInsightsClient.disable_exadata_insightc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rnt| t jsH|j | |j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a Disables a host in Ops Insights. Host metric collection and analysis will be stopped. :param str host_insight_id: (required) Unique host insight identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use disable_host_insight API. rpz-/hostInsights/{hostInsightId}/actions/disabler+disable_host_insightzbhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/DisableHostInsightr-csg|]}|vr|qSr'r'r1r3r'r(r4r5zAOperationsInsightsClient.disable_host_insight..z)disable_host_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zAOperationsInsightsClient.disable_host_insight..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rrPrr'r3r(rTsp,$        z-OperationsInsightsClient.disable_host_insightc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rht|t js>|j | |j | ||j|j|j j||| | |d|d|||d S|j j||| | |d|d|||d Sd S)a Download the ADW wallet for Operations Insights Warehouse using which the Hub data is exposed. :param str operations_insights_warehouse_id: (required) Unique Ops Insights Warehouse identifier :param oci.opsi.models.DownloadOperationsInsightsWarehouseWalletDetails download_operations_insights_warehouse_wallet_details: (required) The information to be updated. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type stream :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use download_operations_insights_warehouse_wallet API. ryz]/operationsInsightsWarehouses/{operationsInsightsWarehouseId}/actions/downloadWarehouseWalletr+-download_operations_insights_warehouse_walletzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/DownloadOperationsInsightsWarehouseWallet)r r!r/r0csg|]}|vr|qSr'r'r1r3r'r(r4r5zZOperationsInsightsClient.download_operations_insights_warehouse_wallet..zBdownload_operations_insights_warehouse_wallet got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zZOperationsInsightsClient.download_operations_insights_warehouse_wallet..Nrr<r=application/octet-streamr>r/r0)r@rArCrDcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFstreamr ) rHrIrJrKrLrr rMrNrOrP)r%r{Z5download_operations_insights_warehouse_wallet_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rsv*$       zFOperationsInsightsClient.download_operations_insights_warehouse_walletc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)ao Enables advanced features for an Autonomous Database in Operations Insights. A direct connection will be available for further collection. :param oci.opsi.models.EnableAutonomousDatabaseInsightAdvancedFeaturesDetails enable_autonomous_database_insight_advanced_features_details: (required) Connection Details for the Autonomous Database in Operations Insights. :param str database_insight_id: (required) Unique database insight identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use enable_autonomous_database_insight_advanced_features API. rbz]/databaseInsights/{databaseInsightId}/actions/enableAutonomousDatabaseInsightAdvancedFeaturesr+4enable_autonomous_database_insight_advanced_featureszhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/EnableAutonomousDatabaseInsightAdvancedFeaturesr-csg|]}|vr|qSr'r'r1r3r'r(r4wr5zaOperationsInsightsClient.enable_autonomous_database_insight_advanced_features..zIenable_autonomous_database_insight_advanced_features got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zaOperationsInsightsClient.enable_autonomous_database_insight_advanced_features..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rGrP)r%Z`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use enable_awr_hub_source API. rez./awrHubSources/{awrHubSourceId}/actions/enabler+enable_awr_hub_sourcezchttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/EnableAwrHubSourcer-csg|]}|vr|qSr'r'r1r3r'r(r4r5zBOperationsInsightsClient.enable_awr_hub_source..z*enable_awr_hub_source got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zBOperationsInsightsClient.enable_awr_hub_source..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rrPrr'r3r(rsp,$        z.OperationsInsightsClient.enable_awr_hub_sourcec sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Enables a database in Operations Insights. Database metric collection and analysis will be started. :param oci.opsi.models.EnableDatabaseInsightDetails enable_database_insight_details: (required) Details for the database to be enabled in Operations Insights. :param str database_insight_id: (required) Unique database insight identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use enable_database_insight API. rbz4/databaseInsights/{databaseInsightId}/actions/enabler+enable_database_insightzihttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/EnableDatabaseInsightr-csg|]}|vr|qSr'r'r1r3r'r(r4br5zDOperationsInsightsClient.enable_database_insight..z,enable_database_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;kr5zDOperationsInsightsClient.enable_database_insight..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;xr5r!rFr rGrP)r%Zenable_database_insight_detailsrdr&rOrHrIrMrNrarJr9r:rKr!r'r3r(r%st/$        z0OperationsInsightsClient.enable_database_insightc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Enables an Exadata system in Operations Insights. Exadata-related metric collection and analysis will be started. :param oci.opsi.models.EnableExadataInsightDetails enable_exadata_insight_details: (required) Details for the Exadata system to be enabled in Operations Insights. :param str exadata_insight_id: (required) Unique Exadata insight identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use enable_exadata_insight API. r*z2/exadataInsights/{exadataInsightId}/actions/enabler+enable_exadata_insightzghttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/EnableExadataInsightr-csg|]}|vr|qSr'r'r1r3r'r(r4r5zCOperationsInsightsClient.enable_exadata_insight..z+enable_exadata_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zCOperationsInsightsClient.enable_exadata_insight..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFr rGrP)r%Zenable_exadata_insight_detailsr`r&rOrHrIrMrNrarJr9r:rKr!r'r3r(rst/$        z/OperationsInsightsClient.enable_exadata_insightc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rpt|t jsH|j | |j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Enables a host in Ops Insights. Host metric collection and analysis will be started. :param oci.opsi.models.EnableHostInsightDetails enable_host_insight_details: (required) Details for the host to be enabled in Ops Insights. :param str host_insight_id: (required) Unique host insight identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use enable_host_insight API. rpz,/hostInsights/{hostInsightId}/actions/enabler+enable_host_insightzahttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/EnableHostInsightr-csg|]}|vr|qSr'r'r1r3r'r(r4Rr5z@OperationsInsightsClient.enable_host_insight..z(enable_host_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;[r5z@OperationsInsightsClient.enable_host_insight..Nrr<r=r>r.r/r0r?cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;hr5r!rFr rGrP)r%Zenable_host_insight_detailsrrr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rst/$        z,OperationsInsightsClient.enable_host_insightc s8ddg}d}d}d}d}gdfdd t|D} | rJtd | d|i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|vrddg} |d| vrtd| d|vrddg}|d|vrtd|||dt |dt |dt |dt |dt |dt |dt d}dd t|D}d d |d!t d"}d#d t|D}|j j |d$|j d%}|d urt j}|rt|t js|j |||j|j|j j||| ||d&|d'|||d( S|j j||| ||d&|d'|||d( Sd S))a Gets the AWR report for the specified database. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str awr_source_database_identifier: (required) The internal ID of the database. The internal ID of the database is not the `OCID`__. It can be retrieved from the following endpoint: /awrHubs/{awrHubId}/awrDatabases __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param int begin_snapshot_identifier_greater_than_or_equal_to: (optional) The optional greater than or equal to filter on the snapshot ID. :param int end_snapshot_identifier_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the snapshot Identifier. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param str report_type: (optional) The query parameter to filter the AWR report types. Allowed values are: "AWR", "ASH" :param str report_format: (optional) The format of the AWR report. Allowed values are: "HTML", "TEXT" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrDatabaseReport` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_awr_database_report API. rawrSourceDatabaseIdentifierz%/awrHubs/{awrHubId}/awrDatabaseReportGETget_awr_database_reportz_https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/GetAwrDatabaseReport) r r!instance_number2begin_snapshot_identifier_greater_than_or_equal_to-end_snapshot_identifier_less_than_or_equal_totime_greater_than_or_equal_totime_less_than_or_equal_to report_type report_formatr/csg|]}|vr|qSr'r'r1r3r'r(r4r5zDOperationsInsightsClient.get_awr_database_report..z,get_awr_database_report got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zDOperationsInsightsClient.get_awr_database_report..Nrr<r=rZAWRZASHz0Invalid value for `report_type`, must be one of rHTMLTEXT2Invalid value for `report_format`, must be one of rrrrr)rinstanceNumber+beginSnapshotIdentifierGreaterThanOrEqualTo&endSnapshotIdentifierLessThanOrEqualTotimeGreaterThanOrEqualTotimeLessThanOrEqualToZ reportType reportFormatcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r>r/r@rArCcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r; r5r!rFZAwrDatabaseReportr rHrIrJrrKrr rMrNrOrm)r%rawr_source_database_identifierr&rOrHrIrMrNrarJr9r:Zreport_type_allowed_valuesreport_format_allowed_valuesrrKr!r'r3r(rs? $               z0OperationsInsightsClient.get_awr_database_reportc sgd}d}d}d}d} gdfddt|D} | rJtd | d |i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|vrddg}|d|vrtd|||dt |dt |dt |dt |dt ||dt d}dd t|D}dd|dt d}dd t|D}|j j |d |j d!}|d urt j}|rt|t js|j |||j|j|j j||| ||d"|d#|| |d$ S|j j||| ||d"|d#|| |d$ Sd S)%an Gets the SQL health check report for one SQL of the specified database. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str awr_source_database_identifier: (required) The internal ID of the database. The internal ID of the database is not the `OCID`__. It can be retrieved from the following endpoint: /awrHubs/{awrHubId}/awrDatabases __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str sql_id: (required) The parameter to filter SQL by ID. Note that the SQL ID is generated internally by Oracle for each SQL statement and can be retrieved from AWR Report API (/awrHubs/{awrHubId}/awrDbReport). :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param int begin_snapshot_identifier_greater_than_or_equal_to: (optional) The optional greater than or equal to filter on the snapshot ID. :param int end_snapshot_identifier_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the snapshot Identifier. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param str report_format: (optional) The format of the AWR report. Allowed values are: "HTML", "TEXT" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrDatabaseSqlReport` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_awr_database_sql_report API. )rrsqlIdz(/awrHubs/{awrHubId}/awrDatabaseSqlReportrget_awr_database_sql_reportzbhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/GetAwrDatabaseSqlReport) r r!rrrrrrr/csg|]}|vr|qSr'r'r1r3r'r(r4r5zHOperationsInsightsClient.get_awr_database_sql_report..z0get_awr_database_sql_report got unknown kwargs: rcSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zHOperationsInsightsClient.get_awr_database_sql_report..Nrr<r=rrrrrrrrr)rr r r r r rrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFZAwrDatabaseSqlReportr rrm)r%rrZsql_idr&rOrHrIrMrNrarJr9r:rrrKr!r'r3r(r3s= $             z4OperationsInsightsClient.get_awr_database_sql_reportc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)aq Gets details of an AWR hub. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrHub` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_awr_hub API. rrr get_awr_hubzThttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/GetAwrHubr r!r/csg|]}|vr|qSr'r'r1r3r'r(r4r5z8OperationsInsightsClient.get_awr_hub..z get_awr_hub got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5z8OperationsInsightsClient.get_awr_hub..Nrr<r=r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFrr rHrIrJrKrr rMrNrOrmrr'r3r(rsn$    z$OperationsInsightsClient.get_awr_hubc szddg}d}d}d}d}gdfdd t|D} | rJtd | ||d } d d t| D} t| D]<\} } | dust| tjrrt| dkrrtd| dqrdd|dt d} dd t| D} |j j |d|j d}|durt j}|rRt|t js*|j | ||j|j|j j||| | d|d|||d S|j j||| | d|d|||d SdS)a Gets the Awr Hub object metadata and body. :param str awr_hub_source_id: (required) Unique Awr Hub Source identifier :param str object_name: (required) Unique Awr Hub Object identifier :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type stream :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_awr_hub_object API. rerrrget_awr_hub_objectz`https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubObjects/GetAwrHubObjectrcsg|]}|vr|qSr'r'r1r3r'r(r4`r5z?OperationsInsightsClient.get_awr_hub_object..z'get_awr_hub_object got unknown kwargs: rcSsi|]\}}|tur||qSr'r6r8r'r'r(r;jr5z?OperationsInsightsClient.get_awr_hub_object..Nrr<r=rr>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;ur5r!rFrr rrmrr'r3r(r2sp"$    z+OperationsInsightsClient.get_awr_hub_objectc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Gets the Awr Hub source object. :param str awr_hub_source_id: (required) Unique Awr Hub Source identifier :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrHubSource` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_awr_hub_source API. rerrget_awr_hub_sourcez`https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/GetAwrHubSourcercsg|]}|vr|qSr'r'r1r3r'r(r4r5z?OperationsInsightsClient.get_awr_hub_source..z'get_awr_hub_source got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5z?OperationsInsightsClient.get_awr_hub_source..Nrr<r=r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFrr rrmrr'r3r(rsn$    z+OperationsInsightsClient.get_awr_hub_sourcec sddg}d}d}d}d}gdfdd t|D} | rJtd | d|i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|vrddg} |d| vrtd| ||dt |dt |dt |dt |dt |dt d}dd t|D}dd|dt d}dd t|D}|j j |d |j d!}|d urt j}|rt|t js|j |||j|j|j j||| ||d"|d#|||d$ S|j j||| ||d"|d#|||d$ Sd S)%a Gets the AWR report for the specified source database in the AWR hub. The difference between the timeGreaterThanOrEqualTo and timeLessThanOrEqualTo should not be greater than 7 days. Either beginSnapshotIdentifierGreaterThanOrEqualTo & endSnapshotIdentifierLessThanOrEqualTo params Or timeGreaterThanOrEqualTo & timeLessThanOrEqualTo params are required. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str awr_source_database_identifier: (required) AWR source database identifier. :param str report_format: (optional) The format of the AWR report. Default report format is HTML. Allowed values are: "HTML", "TEXT" :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param int begin_snapshot_identifier_greater_than_or_equal_to: (optional) The optional greater than or equal to filter on the snapshot ID. :param int end_snapshot_identifier_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the snapshot Identifier. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrReport` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_awr_report API. rrz/awrHubs/{awrHubId}/awrReportrget_awr_reportzWhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/GetAwrReport) r r!rrrrrrr/csg|]}|vr|qSr'r'r1r3r'r(r4Er5z;OperationsInsightsClient.get_awr_report..z#get_awr_report got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;Nr5z;OperationsInsightsClient.get_awr_report..Nrr<r=rrrrrrrrr)rrr r r r r cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;dr5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;kr5r!rFZ AwrReportr rrm)r%rrr&rOrHrIrMrNrarJr9r:rrrKr!r'r3r(rs7 $             z'OperationsInsightsClient.get_awr_reportc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Gets details of a database insight. :param str database_insight_id: (required) Unique database insight identifier :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.DatabaseInsight` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_database_insight API. rbrrget_database_insightzfhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/GetDatabaseInsightrcsg|]}|vr|qSr'r'r1r3r'r(r4r5zAOperationsInsightsClient.get_database_insight..z)get_database_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zAOperationsInsightsClient.get_database_insight..Nrr<r=r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFrr rrmrr'r3r(rsn$    z-OperationsInsightsClient.get_database_insightc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Gets details of an Operations Insights Enterprise Manager bridge. :param str enterprise_manager_bridge_id: (required) Unique Enterprise Manager bridge identifier :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.EnterpriseManagerBridge` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_enterprise_manager_bridge API. rirrget_enterprise_manager_bridgezvhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/GetEnterpriseManagerBridgercsg|]}|vr|qSr'r'r1r3r'r(r4r5zJOperationsInsightsClient.get_enterprise_manager_bridge..z2get_enterprise_manager_bridge got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;(r5zJOperationsInsightsClient.get_enterprise_manager_bridge..Nrr<r=r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;3r5r!rFrr rrmrr'r3r(rsn$    z6OperationsInsightsClient.get_enterprise_manager_bridgec svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Gets details of an Exadata insight. :param str exadata_insight_id: (required) Unique Exadata insight identifier :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.ExadataInsight` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_exadata_insight API. r*rrget_exadata_insightzdhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/GetExadataInsightrcsg|]}|vr|qSr'r'r1r3r'r(r4r5z@OperationsInsightsClient.get_exadata_insight..z(get_exadata_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5z@OperationsInsightsClient.get_exadata_insight..Nrr<r=r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFrr rrmrr'r3r(rWsn$    z,OperationsInsightsClient.get_exadata_insightc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Gets details of a host insight. :param str host_insight_id: (required) Unique host insight identifier :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.HostInsight` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_host_insight API. rprrget_host_insightz^https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/GetHostInsightrcsg|]}|vr|qSr'r'r1r3r'r(r4r5z=OperationsInsightsClient.get_host_insight..z%get_host_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5z=OperationsInsightsClient.get_host_insight..Nrr<r=r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFrr rrmrr'r3r(rsn$    z)OperationsInsightsClient.get_host_insightc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Gets details of a news report. :param str news_report_id: (required) Unique news report identifier. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.NewsReport` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_news_report API. rsrrget_news_reportz\https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/GetNewsReportrcsg|]}|vr|qSr'r'r1r3r'r(r4Hr5z.z$get_news_report got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;Qr5z.Nrr<r=r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;\r5r!rFrr rrmrr'r3r(rsn$    z(OperationsInsightsClient.get_news_reportc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)aq Gets the details of the specified private endpoint. :param str operations_insights_private_endpoint_id: (required) The `OCID`__ of the Operation Insights private endpoint. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OperationsInsightsPrivateEndpoint` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_operations_insights_private_endpoint API. rvrr(get_operations_insights_private_endpointzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/GetOperationsInsightsPrivateEndpointrcsg|]}|vr|qSr'r'r1r3r'r(r4r5zUOperationsInsightsClient.get_operations_insights_private_endpoint..z=get_operations_insights_private_endpoint got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zUOperationsInsightsClient.get_operations_insights_private_endpoint..Nrr<r=r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFrr rrmrr'r3r(r sn!$    zAOperationsInsightsClient.get_operations_insights_private_endpointc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a\ Gets details of an Ops Insights Warehouse. There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment. :param str operations_insights_warehouse_id: (required) Unique Ops Insights Warehouse identifier :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OperationsInsightsWarehouse` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_operations_insights_warehouse API. ryrr!get_operations_insights_warehousez~https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/GetOperationsInsightsWarehousercsg|]}|vr|qSr'r'r1r3r'r(r4r5zNOperationsInsightsClient.get_operations_insights_warehouse..z6get_operations_insights_warehouse got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zNOperationsInsightsClient.get_operations_insights_warehouse..Nrr<r=r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;%r5r!rFrr rrmrr'r3r(r!sn $    z:OperationsInsightsClient.get_operations_insights_warehousec svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Gets details of an Operations Insights Warehouse User. :param str operations_insights_warehouse_user_id: (required) Unique Operations Insights Warehouse User identifier :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OperationsInsightsWarehouseUser` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_operations_insights_warehouse_user API. rrr&get_operations_insights_warehouse_userzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/GetOperationsInsightsWarehouseUserrcsg|]}|vr|qSr'r'r1r3r'r(r4tr5zSOperationsInsightsClient.get_operations_insights_warehouse_user..z;get_operations_insights_warehouse_user got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;}r5zSOperationsInsightsClient.get_operations_insights_warehouse_user..Nrr<r=r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFrr rrmrr'r3r(r"Isn$    z?OperationsInsightsClient.get_operations_insights_warehouse_userc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqnd|vrdg} |dD]} | | vrtd| qd|vrddg}|dD]}||vrtd|qd|vrNgd}|dD]}||vr.td|q.|j | dt d|j | dt d|j | dt d|j | dt dd}dd t|D}dd| dt d }d!d t|D}|jj | d"|j d#}|d urtj}|r^t|tjs4|j|||j|j|jj||| ||d$| d%|||d& S|jj||| ||d$| d%|||d& Sd S)'a Gets details of an OPSI configuration resource. Values specified in configItemField and configItemCustomStatus query params will be considered, only if configItems field is requested as part of opsiConfigField query param. Values specified in configItemCustomStatus will determine whether only customized configuration items or only non-customized configuration items or both have to be returned. :param str opsi_configuration_id: (required) `OCID`__ of OPSI configuration resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] opsi_config_field: (optional) Optional fields to return as part of OpsiConfiguration object. Unless requested, these fields will not be returned by default. Allowed values are: "configItems" :param list[str] config_item_custom_status: (optional) Specifies whether only customized configuration items or only non-customized configuration items or both have to be returned. By default only customized configuration items are returned. Allowed values are: "customized", "nonCustomized" :param list[str] config_items_applicable_context: (optional) Returns the configuration items filtered by applicable contexts sent in this param. By default configuration items of all applicable contexts are returned. :param list[str] config_item_field: (optional) Specifies the fields to return in a config item summary. Allowed values are: "name", "value", "defaultValue", "metadata", "applicableContexts" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OpsiConfiguration` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_opsi_configuration API. r|rrget_opsi_configurationzjhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/GetOpsiConfiguration)r r!rrrrr/csg|]}|vr|qSr'r'r1r3r'r(r4r5zCOperationsInsightsClient.get_opsi_configuration..z+get_opsi_configuration got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zCOperationsInsightsClient.get_opsi_configuration..Nrr<r=rrrrrrrrrrrrrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;&r5r!rFrr rrrQrRrSrTrUrVrWr$rr#r7rXr!rrYrZr\r]r"r^r_)r%r~r&rOrHrIrMrNrarJr9r:rrrrrrrrKr!r'r3r(r#s6 $           z/OperationsInsightsClient.get_opsi_configurationc sddg}d}d}d}d}gdfdd t|D} | rJtd | d|i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|i} dd t| D} dd|dt d}dd t|D}|j j |d|j d}|d urt j}|rpt|t jsF|j |||j|j|j j||| | |d|d|||d S|j j||| | |d|d|||d Sd S)ag Gets details of an OPSI data object. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str opsi_data_object_identifier: (required) Unique OPSI data object identifier. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OpsiDataObject` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_opsi_data_object API. ZopsiDataObjectIdentifier compartmentIdz+/opsiDataObjects/{opsiDataObjectIdentifier}rget_opsi_data_objectzdhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiDataObjects/GetOpsiDataObjectrcsg|]}|vr|qSr'r'r1r3r'r(r4|r5zAOperationsInsightsClient.get_opsi_data_object..z)get_opsi_data_object got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5zAOperationsInsightsClient.get_opsi_data_object..Nrr<r=cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFZOpsiDataObjectr rrm)r%compartment_idZopsi_data_object_identifierr&rOrHrIrMrNrarJr9r:rrKr!r'r3r(r&Lsx$$     z-OperationsInsightsClient.get_opsi_data_objectc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Gets the status of the work request with the given ID. :param str work_request_id: (required) The ID of the asynchronous request. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.WorkRequest` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_work_request API. workRequestIdz/workRequests/{workRequestId}rget_work_requestz^https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/WorkRequests/GetWorkRequestrcsg|]}|vr|qSr'r'r1r3r'r(r4r5z=OperationsInsightsClient.get_work_request..z%get_work_request got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;r5z=OperationsInsightsClient.get_work_request..Nrr<r=r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFZ WorkRequestr rrm)r%work_request_idr&rOrHrIrMrNrarJr9r:rKr!r'r3r(r)sn$    z)OperationsInsightsClient.get_work_requestc svddg}d}d}d}d}gdfdd t|D} | rJtd | ||d } d d t| D} t| D]<\} } | dust| tjrrt| dkrrtd| dqrdd|dt d} dd t| D} |j j |d|j d}|durt j}|rPt|t js*|j | ||j|j|j j||| | |d|||d S|j j||| | |d|||dSdS)a Gets the Awr Hub object's user-defined metadata and entity tag (ETag). :param str awr_hub_source_id: (required) Unique Awr Hub Source identifier :param str object_name: (required) Unique Awr Hub Object identifier :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use head_awr_hub_object API. rerrZHEADhead_awr_hub_objectzahttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubObjects/HeadAwrHubObjectrcsg|]}|vr|qSr'r'r1r3r'r(r4Lr5z@OperationsInsightsClient.head_awr_hub_object..z(head_awr_hub_object got unknown kwargs: rcSsi|]\}}|tur||qSr'r6r8r'r'r(r;Vr5z@OperationsInsightsClient.head_awr_hub_object..Nrr<r=rr>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;ar5r!rFr rrmrr'r3r(r+sl"$    z,OperationsInsightsClient.head_awr_hub_objectc sbg}d}d}d}d}gdfddt|D}|rFtd||d t|d td } d d t| D} dd|dt|dt|dtd} dd t| D} |jj|d|jd} | durt j } | r8t | t j s|j | |j| | |j| j|jj||| | |d|d|||d S|jj||| | |d|d|||d SdS)a. This endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline. Either databaseId or id must be specified. :param oci.opsi.models.IngestAddmReportsDetails ingest_addm_reports_details: (required) Collection of addm reports for a particular database. :param str database_id: (optional) Optional `OCID`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (optional) `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.IngestAddmReportsResponseDetails` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use ingest_addm_reports API. z+/databaseInsights/actions/ingestAddmReportsr+ingest_addm_reportszehttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestAddmReportsr r! database_ididr/r.r0csg|]}|vr|qSr'r'r1r3r'r(r4r5z@OperationsInsightsClient.ingest_addm_reports..z(ingest_addm_reports got unknown kwargs: r.r/ databaseIdr/cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5z@OperationsInsightsClient.ingest_addm_reports..r>r/r.r0r@rArCrBrDcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFNZ IngestAddmReportsResponseDetailsr rr) r%Zingest_addm_reports_detailsr&rOrHrIrMrNrarrKr!r'r3r(r,st7          z,OperationsInsightsClient.ingest_addm_reportsc sbg}d}d}d}d}gdfddt|D}|rFtd||d t|d td } d d t| D} dd|dt|dt|dtd} dd t| D} |jj|d|jd} | durt j } | r8t | t j s|j | |j| | |j| j|jj||| | |d|d|||d S|jj||| | |d|d|||d SdS)a9 This is a generic ingest endpoint for all database configuration metrics. :param oci.opsi.models.IngestDatabaseConfigurationDetails ingest_database_configuration_details: (required) Payload for one or more database configuration metrics for a particular database. :param str database_id: (optional) Optional `OCID`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (optional) `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.IngestDatabaseConfigurationResponseDetails` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use ingest_database_configuration API. z5/databaseInsights/actions/ingestDatabaseConfigurationr+ingest_database_configurationzohttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestDatabaseConfigurationr-csg|]}|vr|qSr'r'r1r3r'r(r4Ir5zJOperationsInsightsClient.ingest_database_configuration..z2ingest_database_configuration got unknown kwargs: r.r/r0cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Rr5zJOperationsInsightsClient.ingest_database_configuration..r>r/r.r0r2cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;[r5r!rFNZ*IngestDatabaseConfigurationResponseDetailsr rr) r%Z%ingest_database_configuration_detailsr&rOrHrIrMrNrarrKr!r'r3r(r3st6          z6OperationsInsightsClient.ingest_database_configurationc sPdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} d d |d t|dt|dtd} dd t| D} |jj|d|jd} | durt j } | r&t | t j s|j | |j| | |j| j|jj||| | |d|d|||d S|jj||| | |d|d|||d SdS)a[ This is a generic ingest endpoint for all the host configuration metrics :param str id: (required) Required `OCID`__ of the host insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param oci.opsi.models.IngestHostConfigurationDetails ingest_host_configuration_details: (required) Payload for one or more host configuration metrics for a particular host. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.IngestHostConfigurationResponseDetails` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use ingest_host_configuration API. r/z-/hostInsights/actions/ingestHostConfigurationr+ingest_host_configurationzghttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/IngestHostConfigurationr r!r/r.r0csg|]}|vr|qSr'r'r1r3r'r(r4r5zFOperationsInsightsClient.ingest_host_configuration..z.ingest_host_configuration got unknown kwargs: cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5zFOperationsInsightsClient.ingest_host_configuration..r>r/r.r0r2cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFNZ&IngestHostConfigurationResponseDetailsr rrrQrRrSr#r7r$rXr!rrYrTrZr[r\r]r"r^r_) r%r/Z!ingest_host_configuration_detailsr&rOrHrIrMrNrarrKr!r'r3r(r4sr1        z2OperationsInsightsClient.ingest_host_configurationc sPdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} d d |d t|dt|dtd} dd t| D} |jj|d|jd} | durt j } | r&t | t j s|j | |j| | |j| j|jj||| | |d|d|||d S|jj||| | |d|d|||d SdS)a9 This is a generic ingest endpoint for all the host performance metrics :param str id: (required) Required `OCID`__ of the host insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param oci.opsi.models.IngestHostMetricsDetails ingest_host_metrics_details: (required) Payload for one or more host performance metrics for a particular host. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.IngestHostMetricsResponseDetails` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use ingest_host_metrics API. r/z'/hostInsights/actions/ingestHostMetricsr+ingest_host_metricszahttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/IngestHostMetricsr5csg|]}|vr|qSr'r'r1r3r'r(r48r5z@OperationsInsightsClient.ingest_host_metrics..z(ingest_host_metrics got unknown kwargs: cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;@r5z@OperationsInsightsClient.ingest_host_metrics..r>r/r.r0r2cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Ir5r!rFNZ IngestHostMetricsResponseDetailsr rr6) r%r/Zingest_host_metrics_detailsr&rOrHrIrMrNrarrKr!r'r3r(r7sr1        z,OperationsInsightsClient.ingest_host_metricsc sbg}d}d}d}d}gdfddt|D}|rFtd||d t|d td } d d t| D} dd|dt|dt|dtd} dd t| D} |jj|d|jd} | durt j } | r8t | t j s|j | |j| | |j| j|jj||| | |d|d|||d S|jj||| | |d|d|||d SdS)aR The MySql SQL Stats endpoint takes in a JSON payload, persists it in Ops Insights ingest pipeline. Either databaseId or id must be specified. :param oci.opsi.models.IngestMySqlSqlStatsDetails ingest_my_sql_sql_stats_details: (required) Collection of MySql SQL stats objects for a particular database. :param str database_id: (optional) Optional `OCID`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (optional) `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.IngestMySqlSqlStatsResponseDetails` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use ingest_my_sql_sql_stats API. z3/databaseInsights/actions/ingestMySqlSqlStatsMetricr+ingest_my_sql_sql_statszghttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestMySqlSqlStatsr-csg|]}|vr|qSr'r'r1r3r'r(r4r5zDOperationsInsightsClient.ingest_my_sql_sql_stats..z,ingest_my_sql_sql_stats got unknown kwargs: r.r/r0cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5zDOperationsInsightsClient.ingest_my_sql_sql_stats..r>r/r.r0r2cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFNZ"IngestMySqlSqlStatsResponseDetailsr rr) r%Zingest_my_sql_sql_stats_detailsr&rOrHrIrMrNrarrKr!r'r3r(r8pst7          z0OperationsInsightsClient.ingest_my_sql_sql_statsc slg}d}d}d}d}gdfddt|D}|rFtd||d t|d t|d td } d dt| D} dd|dt|dt|dtd} ddt| D} |jj|d|jd} | durt j } | rBt | t j s|j | |j| | |j| j|jj||| | |d|d|||d S|jj||| | |d|d|||d SdS)a The SqlText endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline. Either databaseId or id must be specified. Disclaimer: SQL text being uploaded explicitly via APIs is already masked. All sensitive literals contained in the sqlFullText column are masked prior to ingestion. :param oci.opsi.models.IngestMySqlSqlTextDetails ingest_my_sql_sql_text_details: (required) Collection of SQL text objects for a particular database. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str database_id: (optional) Optional `OCID`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (optional) `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.IngestMySqlSqlTextResponseDetails` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use ingest_my_sql_sql_text API. z,/databaseInsights/actions/ingestMySqlSqlTextr+ingest_my_sql_sql_textzfhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestMySqlSqlTextr r!r'r.r/r/r.r0csg|]}|vr|qSr'r'r1r3r'r(r4>r5zCOperationsInsightsClient.ingest_my_sql_sql_text..z+ingest_my_sql_sql_text got unknown kwargs: r'r.r/r%r1r/cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Hr5zCOperationsInsightsClient.ingest_my_sql_sql_text..r>r/r.r0r2cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Qr5r!rFNZ!IngestMySqlSqlTextResponseDetailsr rr) r%Zingest_my_sql_sql_text_detailsr&rOrHrIrMrNrarrKr!r'r3r(r9sv=           z/OperationsInsightsClient.ingest_my_sql_sql_textc slg}d}d}d}d}gdfddt|D}|rFtd||d t|d t|d td } d dt| D} dd|dt|dt|dtd} ddt| D} |jj|d|jd} | durt j } | rBt | t j s|j | |j| | |j| j|jj||| | |d|d|||d S|jj||| | |d|d|||d SdS)a The sqlbucket endpoint takes in a JSON payload, persists it in Ops Insights ingest pipeline. Either databaseId or id must be specified. :param oci.opsi.models.IngestSqlBucketDetails ingest_sql_bucket_details: (required) Collection of SQL bucket objects for a particular database. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str database_id: (optional) Optional `OCID`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (optional) `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.IngestSqlBucketResponseDetails` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use ingest_sql_bucket API. z)/databaseInsights/actions/ingestSqlBucketr+ingest_sql_bucketzchttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestSqlBucketr:csg|]}|vr|qSr'r'r1r3r'r(r4r5z>OperationsInsightsClient.ingest_sql_bucket..z&ingest_sql_bucket got unknown kwargs: r'r.r/r;cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5z>OperationsInsightsClient.ingest_sql_bucket..r>r/r.r0r2cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;r5r!rFNZIngestSqlBucketResponseDetailsr rr) r%Zingest_sql_bucket_detailsr&rOrHrIrMrNrarrKr!r'r3r(r<xsv<           z*OperationsInsightsClient.ingest_sql_bucketc slg}d}d}d}d}gdfddt|D}|rFtd||d t|d t|d td } d dt| D} dd|dt|dt|dtd} ddt| D} |jj|d|jd} | durt j } | rBt | t j s|j | |j| | |j| j|jj||| | |d|d|||d S|jj||| | |d|d|||d SdS)a The SqlPlanLines endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline. Either databaseId or id must be specified. :param oci.opsi.models.IngestSqlPlanLinesDetails ingest_sql_plan_lines_details: (required) Collection of SQL plan line objects for a particular database. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str database_id: (optional) Optional `OCID`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (optional) `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.IngestSqlPlanLinesResponseDetails` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use ingest_sql_plan_lines API. z,/databaseInsights/actions/ingestSqlPlanLinesr+ingest_sql_plan_lineszfhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestSqlPlanLinesr:csg|]}|vr|qSr'r'r1r3r'r(r4L r5zBOperationsInsightsClient.ingest_sql_plan_lines..z*ingest_sql_plan_lines got unknown kwargs: r'r.r/r;cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;V r5zBOperationsInsightsClient.ingest_sql_plan_lines..r>r/r.r0r2cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;_ r5r!rFNZ!IngestSqlPlanLinesResponseDetailsr rr) r%Zingest_sql_plan_lines_detailsr&rOrHrIrMrNrarrKr!r'r3r(r=sv<           z.OperationsInsightsClient.ingest_sql_plan_linesc sbg}d}d}d}d}gdfddt|D}|rFtd||d t|d td } d d t| D} dd|dt|dt|dtd} dd t| D} |jj|d|jd} | durt j } | r8t | t j s|j | |j| | |j| j|jj||| | |d|d|||d S|jj||| | |d|d|||d SdS)a' The SQL Stats endpoint takes in a JSON payload, persists it in Ops Insights ingest pipeline. Either databaseId or id must be specified. :param oci.opsi.models.IngestSqlStatsDetails ingest_sql_stats_details: (required) Collection of SQL stats objects for a particular database. :param str database_id: (optional) Optional `OCID`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (optional) `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.IngestSqlStatsResponseDetails` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use ingest_sql_stats API. z./databaseInsights/actions/ingestSqlStatsMetricr+ingest_sql_statszbhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestSqlStatsr-csg|]}|vr|qSr'r'r1r3r'r(r4 r5z=OperationsInsightsClient.ingest_sql_stats..z%ingest_sql_stats got unknown kwargs: r.r/r0cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r; r5z=OperationsInsightsClient.ingest_sql_stats..r>r/r.r0r2cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r; r5r!rFNZIngestSqlStatsResponseDetailsr rr) r%Zingest_sql_stats_detailsr&rOrHrIrMrNrarrKr!r'r3r(r> st7          z)OperationsInsightsClient.ingest_sql_statsc slg}d}d}d}d}gdfddt|D}|rFtd||d t|d t|d td } d dt| D} dd|dt|dt|dtd} ddt| D} |jj|d|jd} | durt j } | rBt | t j s|j | |j| | |j| j|jj||| | |d|d|||d S|jj||| | |d|d|||d SdS)a The SqlText endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline. Either databaseId or id must be specified. Disclaimer: SQL text being uploaded explicitly via APIs is not masked. Any sensitive literals contained in the sqlFullText column should be masked prior to ingestion. :param oci.opsi.models.IngestSqlTextDetails ingest_sql_text_details: (required) Collection of SQL text objects for a particular database. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str database_id: (optional) Optional `OCID`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (optional) `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_retry_token: (optional) A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.IngestSqlTextResponseDetails` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use ingest_sql_text API. z'/databaseInsights/actions/ingestSqlTextr+ingest_sql_textzahttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestSqlTextr:csg|]}|vr|qSr'r'r1r3r'r(r4T!r5z.z$ingest_sql_text got unknown kwargs: r'r.r/r;cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;^!r5z.r>r/r.r0r2cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;g!r5r!rFNZIngestSqlTextResponseDetailsr rr) r%Zingest_sql_text_detailsr&rOrHrIrMrNrarrKr!r'r3r(r?!sv=           z(OperationsInsightsClient.ingest_sql_textc s,dg}d}d}d}d}gdfddt|D}|rHtd |d |vrrd d g} |d | vrrtd | d|vrdg} |d| vrtd| ||j|dtd|j|dtd|dt|dt|d t|dt|j|dtd|j|dtd|j|dtd|j|dtd|dtd } ddt| D} dd|dtd } d!dt| D} |jj|d"|j d#} | d$urt j } | rt | t j s|j| | |j| j|jj||| | d%|d&|||d' S|jj||| | d%|d&|||d' Sd$S)(a Gets list of ADDM finding categories. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Field name for sorting the finding categories Allowed values are: "name" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AddmDbFindingCategoryCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_addm_db_finding_categories API. r%z)/databaseInsights/addmDbFindingCategoriesrlist_addm_db_finding_categorieszohttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbFindingCategoriesr r!r.r/limitpage sort_ordersort_byr/defined_tag_equalsfreeform_tag_equalsdefined_tag_existsfreeform_tag_existscompartment_id_in_subtreecsg|]}|vr|qSr'r'r1r3r'r(r4"r5zLOperationsInsightsClient.list_addm_db_finding_categories..z4list_addm_db_finding_categories got unknown kwargs: rDASCDESC/Invalid value for `sort_order`, must be one of rEr,Invalid value for `sort_by`, must be one of r.rr/rBrCrFrGrHrIrJ r%r1r/rBrC sortOrdersortBydefinedTagEqualsfreeformTagEqualsdefinedTagExistsfreeformTagExistscompartmentIdInSubtreecSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;'"r5zLOperationsInsightsClient.list_addm_db_finding_categories..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;."r5r!rFNZAddmDbFindingCategoryCollectionr rHrIrrKrr rMrNrOrrQrRr$rr#r7rSrXr!rrYrTrZr\r]r"r^r_r%r'r&rOrHrIrMrNrasort_order_allowed_valuessort_by_allowed_valuesrrKr!r'r3r(r@!sa            z8OperationsInsightsClient.list_addm_db_finding_categoriesc sTdg}d}d}d}d}gdfddt|D}|rHtd |d |vrrd d g} |d | vrrtd | d|vrdg} |d| vrtd| ||j|dtd|j|dtd|dt|dt|dt|dt|dt|dt|d t|dt|j|dtd|j|dtd|j|dtd|j|dtd|dtd} d d!t| D} d"d"|d#td$} d%d!t| D} |jj|d&|j d'} | d(urt j } | r,t | t j s|j| | |j| j|jj||| | d)|d*|||d+ S|jj||| | d)|d*|||d+ Sd(S),a Get the ADDM findings time series for the specified databases for a given time period. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str category_name: (optional) Optional value filter to match the finding category exactly. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Field name for sorting the ADDM finding time series summary data Allowed values are: "timestamp" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AddmDbFindingsTimeSeriesCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_addm_db_findings_time_series API. r%z*/databaseInsights/addmDbFindingsTimeSeriesr!list_addm_db_findings_time_serieszphttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbFindingsTimeSeriesr r!r.r/rtime_interval_starttime_interval_end category_namerBrCrDrEr/rFrGrHrIrJcsg|]}|vr|qSr'r'r1r3r'r(r4"r5zNOperationsInsightsClient.list_addm_db_findings_time_series..z6list_addm_db_findings_time_series got unknown kwargs: rDrKrLrMrE timestamprNr.rr/rr^r_r`rBrCrFrGrHrIrJr%r1r/r timeIntervalStarttimeIntervalEnd categoryNamerBrCrPrQrRrSrTrUrVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;#r5zNOperationsInsightsClient.list_addm_db_findings_time_series..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r; #r5r!rFNZ"AddmDbFindingsTimeSeriesCollectionr rWrXrYr'r3r(r\R"st                z:OperationsInsightsClient.list_addm_db_findings_time_seriesc s,dg}d}d}d}d}gdfddt|D}|rHtd |d |vrrd d g} |d | vrrtd | d|vrdg} |d| vrtd| ||j|dtd|j|dtd|dt|dt|d t|dt|j|dtd|j|dtd|j|dtd|j|dtd|dtd } ddt| D} dd|dtd } d!dt| D} |jj|d"|j d#} | d$urt j } | rt | t j s|j| | |j| j|jj||| | d%|d&|||d' S|jj||| | d%|d&|||d' Sd$S)(a Gets list of ADDM database parameter categories for the specified databases. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Field name for sorting the database parameter categories Allowed values are: "name" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AddmDbParameterCategoryCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_addm_db_parameter_categories API. r%z+/databaseInsights/addmDbParameterCategoriesr!list_addm_db_parameter_categorieszqhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbParameterCategoriesrAcsg|]}|vr|qSr'r'r1r3r'r(r4#r5zNOperationsInsightsClient.list_addm_db_parameter_categories..z6list_addm_db_parameter_categories got unknown kwargs: rDrKrLrMrErrNr.rr/rBrCrFrGrHrIrJrOcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;#r5zNOperationsInsightsClient.list_addm_db_parameter_categories..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;#r5r!rFNZ!AddmDbParameterCategoryCollectionr rWrXrYr'r3r(rf1#sa            z:OperationsInsightsClient.list_addm_db_parameter_categoriesc s,dg}d}d}d}d}gdfddt|D}|rHtd |d |vrrd d g} |d | vrrtd | d|vrdg} |d| vrtd| ||j|dtd|j|dtd|dt|dt|d t|dt|j|dtd|j|dtd|j|dtd|j|dtd|dtd } ddt| D} dd|dtd } d!dt| D} |jj|d"|j d#} | d$urt j } | rt | t j s|j| | |j| j|jj||| | d%|d&|||d' S|jj||| | d%|d&|||d' Sd$S)(a Gets list of ADDM recommendation categories for the specified databases. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Field name for sorting the recommendation categories Allowed values are: "name" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AddmDbRecommendationCategoryCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_addm_db_recommendation_categories API. r%z0/databaseInsights/addmDbRecommendationCategoriesr&list_addm_db_recommendation_categorieszvhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbRecommendationCategoriesrAcsg|]}|vr|qSr'r'r1r3r'r(r4m$r5zSOperationsInsightsClient.list_addm_db_recommendation_categories..z;list_addm_db_recommendation_categories got unknown kwargs: rDrKrLrMrErrNr.rr/rBrCrFrGrHrIrJrOcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;$r5zSOperationsInsightsClient.list_addm_db_recommendation_categories..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;$r5r!rFNZ&AddmDbRecommendationCategoryCollectionr rWrXrYr'r3r(rg#sa            z?OperationsInsightsClient.list_addm_db_recommendation_categoriesc s|dg}d}d}d}d}gdfddt|D}|rHtd |d |vrrd d g} |d | vrrtd | d|vrdg} |d| vrtd| ||j|dtd|j|dtd|dt|dt|dt|dt|dt|dt|dt|dt|dt|dt|d t|dt|j|dtd|j|dtd|j|d td|j|d!td|d"td#} d$d%t| D} d&d&|d'td(} d)d%t| D} |jj|d*|j d+} | d,urt j } | rTt | t j s,|j| | |j| j|jj||| | d-|d.|||d/ S|jj||| | d-|d.|||d/ Sd,S)0a Gets time series data for ADDM recommendations for the specified databases. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str category_name: (optional) Optional value filter to match the finding category exactly. :param str sql_identifier: (optional) Optional filter to return only resources whose sql id matches the value given. Only considered when categoryName is SQL_TUNING. :param str owner_or_name_contains: (optional) Optional filter to return only resources whose owner or name contains the substring given. The match is not case sensitive. Only considered when categoryName is SCHEMA_OBJECT. :param str name_contains: (optional) Optional filter to return only resources whose name contains the substring given. The match is not case sensitive. Only considered when categoryName is DATABASE_CONFIGURATION. :param str name: (optional) Optional filter to return only resources whose name exactly matches the substring given. The match is case sensitive. Only considered when categoryName is DATABASE_CONFIGURATION. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Field name for sorting the ADDM recommendation time series summary data Allowed values are: "timestamp" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AddmDbRecommendationsTimeSeriesCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_addm_db_recommendations_time_series API. r%z1/databaseInsights/addmDbRecommendationsTimeSeriesr(list_addm_db_recommendations_time_serieszwhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbRecommendationsTimeSeries)r r!r.r/rr^r_r`sql_identifierowner_or_name_contains name_containsrrBrCrDrEr/rFrGrHrIrJcsg|]}|vr|qSr'r'r1r3r'r(r4\%r5zUOperationsInsightsClient.list_addm_db_recommendations_time_series..z=list_addm_db_recommendations_time_series got unknown kwargs: rDrKrLrMrErarNr.rr/rr^r_r`rirjrkrrBrCrFrGrHrIrJ)r%r1r/r rcrdre sqlIdentifierownerOrNameContains nameContainsrrBrCrPrQrRrSrTrUrVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;%r5zUOperationsInsightsClient.list_addm_db_recommendations_time_series..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;%r5r!rFNZ)AddmDbRecommendationsTimeSeriesCollectionr rWrXrYr'r3r(rh$s                    zAOperationsInsightsClient.list_addm_db_recommendations_time_seriesc sBdg}d}d}d}d}gdfddt|D}|rHtd |d |vrrd d g} |d | vrrtd | d|vrddg} |d| vrtd| ||j|dtd|j|dtd|dt|dt|dt|dt|d t|dt|j|dtd|j|dtd|j|dtd|j|dtd|dtd} dd t| D} d!d!|d"td#} d$d t| D} |jj|d%|j d&} | d'urt j } | rt | t j s|j| | |j| j|jj||| | d(|d)|||d* S|jj||| | d(|d)|||d* Sd'S)+a Gets a list of ADDM database information :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Field name for sorting ADDM database data Allowed values are: "databaseName", "numberOfFindings" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AddmDbCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_addm_dbs API. r%z/databaseInsights/addmDbsr list_addm_dbsz_https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbs)r r!r.r/r^r_rBrCrDrEr/rFrGrHrIrJcsg|]}|vr|qSr'r'r1r3r'r(r47&r5z:OperationsInsightsClient.list_addm_dbs..z"list_addm_dbs got unknown kwargs: rDrKrLrMrE databaseNameZnumberOfFindingsrNr.rr/r^r_rBrCrFrGrHrIrJ)r%r1r/rcrdrBrCrPrQrRrSrTrUrVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Z&r5z:OperationsInsightsClient.list_addm_dbs..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;a&r5r!rFNZAddmDbCollectionr rWrXrYr'r3r(ro%sn              z&OperationsInsightsClient.list_addm_dbsc sLddg}d}d}d}d}gdfdd t|D} | rJtd | d|i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|vrddg} |d| vrtd| d|vrddg}|d|vrtd|||dt |dt |dt |dt |dt |dt |dt |dt |dt d }d!d t|D}d"d"|d#t d$}d%d t|D}|j j |d&|j d'}|d urt j}|r"t|t js|j |||j|j|j j||| ||d(|d)|||d* S|j j||| ||d(|d)|||d* Sd S)+a  Lists AWR snapshots for the specified database in the AWR. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str awr_source_database_identifier: (required) The internal ID of the database. The internal ID of the database is not the `OCID`__. It can be retrieved from the following endpoint: /awrHubs/{awrHubId}/awrDatabases __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param int begin_snapshot_identifier_greater_than_or_equal_to: (optional) The optional greater than or equal to filter on the snapshot ID. :param int end_snapshot_identifier_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the snapshot Identifier. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_by: (optional) The option to sort the AWR snapshot summary data. Allowed values are: "TIME_BEGIN", "SNAPSHOT_ID" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrDatabaseSnapshotCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_awr_database_snapshots API. rrz(/awrHubs/{awrHubId}/awrDatabaseSnapshotsrlist_awr_database_snapshotszchttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/ListAwrDatabaseSnapshots r r!rrrrrrCrBrErDr/csg|]}|vr|qSr'r'r1r3r'r(r4&r5zHOperationsInsightsClient.list_awr_database_snapshots..z0list_awr_database_snapshots got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;&r5zHOperationsInsightsClient.list_awr_database_snapshots..Nrr<r=rE TIME_BEGINZ SNAPSHOT_IDrNrDrKrLrMrrrrrrCrB) rr r r r r rCrBrQrPcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;'r5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;'r5r!rFZAwrDatabaseSnapshotCollectionr rrm)r%rrr&rOrHrIrMrNrarJr9r:r[rZrrKr!r'r3r(rq&sO$                 z4OperationsInsightsClient.list_awr_database_snapshotsc s4dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqnd|vrddg} |d| vrtd| d|vrddg} |d| vrtd| |dt |dt |dt |dt |dt |dt |dt d}dd t|D}dd|d t d!}d"d t|D}|j j |d#|j d$}|d urt j}|r t|t js|j |||j|j|j j||| ||d%|d&|||d' S|j j||| ||d%|d&|||d' Sd S)(a= Gets the list of databases and their snapshot summary details available in the AWRHub. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str name: (optional) The optional single value query parameter to filter the entity name. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_by: (optional) The option to sort the AWR summary data. Allowed values are: "END_INTERVAL_TIME", "NAME" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrDatabaseCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_awr_databases API. rz /awrHubs/{awrHubId}/awrDatabasesrlist_awr_databasesz[https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/ListAwrDatabases r r!rrrrCrBrErDr/csg|]}|vr|qSr'r'r1r3r'r(r4'r5z?OperationsInsightsClient.list_awr_databases..z'list_awr_databases got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;'r5z?OperationsInsightsClient.list_awr_databases..Nrr<r=rEEND_INTERVAL_TIMENAMErNrDrKrLrMrrrrCrBrr r rCrBrQrPcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;'r5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;'r5r!rFZAwrDatabaseCollectionr rrmr%rr&rOrHrIrMrNrarJr9r:r[rZrrKr!r'r3r(rt?'sB $               z+OperationsInsightsClient.list_awr_databasesc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqnd|vrgd} |d| vrtd| |dt |dt |dt |dt |dt |dt |dt |dt d} dd t| D} dd|dt d}dd t|D}|j j |d |j d!}|d urt j}|rt|t js|j |||j|j|j j||| | |d"|d#|||d$ S|j j||| | |d"|d#|||d$ Sd S)%a Gets a list of Awr Hub objects. Awr Hub id needs to specified. :param str awr_hub_source_id: (required) Unique Awr Hub Source identifier :param str prefix: (optional) The string to use for matching against the start of object names in a Awr Hub list objects query. :param str start: (optional) Object names returned by Awr Hub list objects query must be greater or equal to this parameter. :param str end: (optional) Object names returned by Awr Hub list objects query must be strictly less than this parameter. :param str delimiter: (optional) When this parameter is set, only objects whose names do not contain the delimiter character (after an optionally specified prefix) are returned in the Awr Hub list objects key of the response body. Scanned objects whose names contain the delimiter have the part of their name up to the first occurrence of the delimiter (including the optional prefix) returned as a set of prefixes. Note that only '/' is a supported delimiter character at this time. :param str start_after: (optional) Awr Hub Object name after which remaining objects are listed :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str fields: (optional) By default all the fields are returned. Use this parameter to fetch specific fields 'size', 'etag', 'md5', 'timeCreated', 'timeModified', 'storageTier' and 'archivalState' fields. List the names of those fields in a comma-separated, case-insensitive list as the value of this parameter. For example: 'name,etag,timeCreated,md5,timeModified,storageTier,archivalState'. Allowed values are: "name", "size", "etag", "timeCreated", "md5", "archivalState", "timeModified", "storageTier" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.ListObjects` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_awr_hub_objects API. rez//awrHubObjects/awrHubSources/{awrHubSourceId}/orlist_awr_hub_objectszbhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubObjects/ListAwrHubObjects) r r!prefixstartend delimiter start_afterrCrBfieldsr/csg|]}|vr|qSr'r'r1r3r'r(r4E(r5zAOperationsInsightsClient.list_awr_hub_objects..z)list_awr_hub_objects got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;N(r5zAOperationsInsightsClient.list_awr_hub_objects..Nrr<r=r)rsizeZetag timeCreatedZmd5Z archivalStateZ timeModifiedZ storageTier+Invalid value for `fields`, must be one of r{r|r}r~rrCrB)r{r|r}r~Z startAfterrCrBrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;e(r5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;l(r5r!rFZ ListObjectsr rrm)r%rgr&rOrHrIrMrNrarJr9r:fields_allowed_valuesrrKr!r'r3r(rz'sJ $               z-OperationsInsightsClient.list_awr_hub_objectsc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vr|gd } |d D]} | | vr`td | q`d |vrgd} |d D]} | | vrtd| qd|vrgd} |dD]}|| vrtd| qd|vrddg}|d|vrtd|d|vr@ddg}|d|vr@td|||dt|dt|j|d td|dt|j|d td|j|dtd|dt|d t|dt|dtd! }d"d#t|D}d$d$|d%td&}d'd#t|D}|jj|d(|j d)}|d*ur.t j }|rt |t j sZ|j|||j|j|jj||||d+|d,|||d- S|jj||||d+|d,|||d- Sd*S).a Gets a list of Awr Hub source objects. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str awr_hub_source_id: (optional) Awr Hub source identifier :param list[str] source_type: (optional) Filter by one or more database type. Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB. Allowed values are: "ADW_S", "ATP_S", "ADW_D", "ATP_D", "EXTERNAL_PDB", "EXTERNAL_NONCDB", "COMANAGED_VM_CDB", "COMANAGED_VM_PDB", "COMANAGED_VM_NONCDB", "COMANAGED_BM_CDB", "COMANAGED_BM_PDB", "COMANAGED_BM_NONCDB", "COMANAGED_EXACS_CDB", "COMANAGED_EXACS_PDB", "COMANAGED_EXACS_NONCDB", "UNDEFINED" :param str name: (optional) Awr Hub source database name :param list[str] status: (optional) Resource Status Allowed values are: "ACCEPTING", "NOT_ACCEPTING", "NOT_REGISTERED", "TERMINATED" :param list[str] lifecycle_state: (optional) Lifecycle states Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. Allowed values are: "timeCreated", "displayName" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrHubSourceSummaryCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_awr_hub_sources API. rrrlist_awr_hub_sourceszbhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/ListAwrHubSources) r r!r'rg source_typerstatuslifecycle_staterBrCrDrEr/csg|]}|vr|qSr'r'r1r3r'r(r4(r5zAOperationsInsightsClient.list_awr_hub_sources..z)list_awr_hub_sources got unknown kwargs: r)ZADW_SZATP_SZADW_DZATP_DZ EXTERNAL_PDBZEXTERNAL_NONCDBZCOMANAGED_VM_CDBZCOMANAGED_VM_PDBZCOMANAGED_VM_NONCDBZCOMANAGED_BM_CDBZCOMANAGED_BM_PDBZCOMANAGED_BM_NONCDBZCOMANAGED_EXACS_CDBZCOMANAGED_EXACS_PDBZCOMANAGED_EXACS_NONCDBZ UNDEFINEDz0Invalid value for `source_type`, must be one of r)Z ACCEPTINGZ NOT_ACCEPTINGZNOT_REGISTERED TERMINATED+Invalid value for `status`, must be one of rCREATINGUPDATINGACTIVEDELETINGDELETEDFAILED4Invalid value for `lifecycle_state`, must be one of rDrKrLrMrEr displayNamerNr'rgrrrBrC) rr%reZ sourceTyperrlifecycleStaterBrCrPrQcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;4)r5zAOperationsInsightsClient.list_awr_hub_sources..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;;)r5r!rFNZAwrHubSourceSummaryCollectionr rWrrQrRr#r7r$rrSrXr!rrYrTrZr\r]r"r^r_)r%rr&rOrHrIrMrNraZsource_type_allowed_valuesZsource_type_itemstatus_allowed_values status_itemlifecycle_state_allowed_valueslifecycle_state_itemrZr[rrKr!r'r3r(r(sT                  z-OperationsInsightsClient.list_awr_hub_sourcesc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vr|gd } |d D]} | | vr`td | q`d |vrddg} |d | vrtd| d|vrddg} |d| vrtd| |dt|dt|dt||j|d td|dt|dt|d t|dtd } ddt| D} dd|dtd }d!dt|D}|jj|d"|j d#}|d$urt j }|rt |t j s|j|||j|j|jj||| |d%|d&|||d' S|jj||| |d%|d&|||d' Sd$S)(a Gets a list of AWR hubs. Either compartmentId or id must be specified. All these resources are expected to be in root compartment. :param str operations_insights_warehouse_id: (required) Unique Operations Insights Warehouse identifier :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str display_name: (optional) A filter to return only resources that match the entire display name. :param str id: (optional) Unique Awr Hub identifier :param list[str] lifecycle_state: (optional) Lifecycle states Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. Allowed values are: "timeCreated", "displayName" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrHubSummaryCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_awr_hubs API. ryrr list_awr_hubszVhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/ListAwrHubs r r!r' display_namer/rrBrCrDrEr/csg|]}|vr|qSr'r'r1r3r'r(r4)r5z:OperationsInsightsClient.list_awr_hubs..z"list_awr_hubs got unknown kwargs: rrrrDrKrLrMrErrrNr'rr/rrBrC r%rr/ryrrBrCrPrQcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;)r5z:OperationsInsightsClient.list_awr_hubs..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;)r5r!rFNZAwrHubSummaryCollectionr rWrr%r{r&rOrHrIrMrNrarrrZr[rrKr!r'r3r(r_)sI                 z&OperationsInsightsClient.list_awr_hubsc s.ddg}d}d}d}d}gdfdd t|D} | rJtd | d|i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|vrddg} |d| vrtd| d|vrddg}|d|vrtd|||dt |dt |dt |dt |dt |dt d}dd t|D}dd|d t d!}d"d t|D}|j j |d#|j d$}|d urt j}|rt|t js|j |||j|j|j j||| ||d%|d&|||d' S|j j||| ||d%|d&|||d' Sd S)(ag Lists AWR snapshots for the specified source database in the AWR hub. The difference between the timeGreaterThanOrEqualTo and timeLessThanOrEqualTo should not exceed an elapsed range of 1 day. The timeGreaterThanOrEqualTo & timeLessThanOrEqualTo params are optional. If these params are not provided, by default last 1 day snapshots will be returned. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str awr_source_database_identifier: (required) AWR source database identifier. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The option to sort the AWR snapshot summary data. Default sort is by timeBegin. Allowed values are: "timeBegin", "snapshotId" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrSnapshotCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_awr_snapshots API. rrz /awrHubs/{awrHubId}/awrSnapshotsrlist_awr_snapshotsz[https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/ListAwrSnapshots) r r!rrrBrCrDrEr/csg|]}|vr|qSr'r'r1r3r'r(r4b*r5z?OperationsInsightsClient.list_awr_snapshots..z'list_awr_snapshots got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;k*r5z?OperationsInsightsClient.list_awr_snapshots..Nrr<r=rDrKrLrMrEZ timeBeginZ snapshotIdrNrrrBrC)rr r rBrCrPrQcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;*r5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;*r5r!rFZAwrSnapshotCollectionr rrm)r%rrr&rOrHrIrMrNrarJr9r:rZr[rrKr!r'r3r(r *sC $              z+OperationsInsightsClient.list_awr_snapshotsc sg}d}d}d}d}gdfddt|D}|rFtd|d |vrzgd }|d D]} | |vr^td |q^d |vrd dg} |d | vrtd| d|vrgd} |d| vrtd| |dt|dt|j|dtd|j|dtd|j|dtd|j|dtd|j|d td|dt|dt|d t|dt|j|dtd|j|dtd|j|dtd|j|dtd|j|d td|d!t|j|d"tdd#} d$d%t| D} d&d&|d'td(} d)d%t| D} |jj|d*|j d+}|d,urZt j }|rt |t j s|j| ||j|j|jj||| | d-|d.|||d/ S|jj||| | d-|d.|||d/ Sd,S)0a Gets a list of database insight configurations based on the query parameters specified. Either compartmentId or databaseInsightId query parameter must be specified. When both compartmentId and compartmentIdInSubtree are specified, a list of database insight configurations in that compartment and in all sub-compartments will be returned. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str enterprise_manager_bridge_id: (optional) Unique Enterprise Manager bridge identifier :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param list[str] database_type: (optional) Filter by one or more database type. Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB. Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB", "MDS-MYSQL" :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Database configuration list sort options. If `fields` parameter is selected, the `sortBy` parameter must be one of the fields specified. Allowed values are: "databaseName", "databaseDisplayName", "databaseType" :param list[str] host_name: (optional) Filter by one or more hostname. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.DatabaseConfigurationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_database_configurations API. z(/databaseInsights/databaseConfigurationsrlist_database_configurationsznhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListDatabaseConfigurations)r r!r'rnr/r.r`cdb_name database_typerBrCrDrE host_namer/rFrGrHrIrJvmcluster_namecsg|]}|vr|qSr'r'r1r3r'r(r4L+r5zIOperationsInsightsClient.list_database_configurations..z1list_database_configurations got unknown kwargs: rzADW-SzATP-SzADW-DzATP-Dz EXTERNAL-PDBzEXTERNAL-NONCDBzCOMANAGED-VM-CDBzCOMANAGED-VM-PDBzCOMANAGED-VM-NONCDBzCOMANAGED-BM-CDBzCOMANAGED-BM-PDBzCOMANAGED-BM-NONCDBzCOMANAGED-EXACS-CDBzCOMANAGED-EXACS-PDBzCOMANAGED-EXACS-NONCDBz MDS-MYSQL2Invalid value for `database_type`, must be one of rDrKrLrMrErpdatabaseDisplayName databaseTyperNr'rnr/rr.r`rrBrCrrFrGrHrIrJr)r%rir/r1r*cdbNamerrBrCrPrQhostNamerRrSrTrUrV vmclusterNamecSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;{+r5zIOperationsInsightsClient.list_database_configurations..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;+r5r!rFNZDatabaseConfigurationCollectionr rWr)r%r&rOrHrIrMrNradatabase_type_allowed_valuesdatabase_type_itemrZr[rrKr!r'r3r(r*sy               z5OperationsInsightsClient.list_database_configurationsc s,g}d}d}d}d}gdfddt|D}|rFtd|d |vrzgd }|d D]} | |vr^td |q^d |vrgd } |d D]} | | vrtd| qd|vrgd} |dD]} | | vrtd| qd|vrgd}|dD]}||vrtd|qd|vrFddg}|d|vrFtd|d|vrtgd}|d|vrttd||dt|dt|j|dtd|j|d td|j|d td|j|dtd|j|d td|j|dtd|d!t|d"t|dt|dt|d#t|d$t|d%td&}d'd(t|D}d)d)|d*td+}d,d(t|D}|jj|d-|j d.}|d/urt j }|rt |t j s|j|||j|j|jj||||d0|d1|||d2 S|jj||||d0|d1|||d2 Sd/S)3a4 Gets a list of database insights based on the query parameters specified. Either compartmentId or id query parameter must be specified. When both compartmentId and compartmentIdInSubtree are specified, a list of database insights in that compartment and in all sub-compartments will be returned. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str enterprise_manager_bridge_id: (optional) Unique Enterprise Manager bridge identifier :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param list[str] lifecycle_state: (optional) Lifecycle states Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION" :param list[str] database_type: (optional) Filter by one or more database type. Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB. Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] fields: (optional) Specifies the fields to return in a database summary response. By default all fields are returned if omitted. Allowed values are: "compartmentId", "databaseName", "databaseDisplayName", "databaseType", "databaseVersion", "databaseHostNames", "freeformTags", "definedTags" :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Database insight list sort options. If `fields` parameter is selected, the `sortBy` parameter must be one of the fields specified. Allowed values are: "databaseName", "databaseDisplayName", "databaseType" :param str exadata_insight_id: (optional) `OCID`__ of exadata insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param str opsi_private_endpoint_id: (optional) Unique Operations Insights PrivateEndpoint identifier :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.DatabaseInsightsCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_database_insights API. rrlist_database_insightszhhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListDatabaseInsights)r r!r'rnr/rrrr.rrBrCrDrEr`rJopsi_private_endpoint_idr/csg|]}|vr|qSr'r'r1r3r'r(r4*,r5zCOperationsInsightsClient.list_database_insights..z+list_database_insights got unknown kwargs: rZDISABLEDZENABLEDrrrrrrrrrZNEEDS_ATTENTIONrrrrr)r%rprrZdatabaseVersionZdatabaseHostNamesZ freeformTagsZ definedTagsrrDrKrLrMrErrNr'rnr/rr.rBrCr`rJr)r%rir/rrrr1rrBrCrPrQr*rVopsiPrivateEndpointIdcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;n,r5zCOperationsInsightsClient.list_database_insights..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;u,r5r!rFNZDatabaseInsightsCollectionr rWr)r%r&rOrHrIrMrNrarrrrrrrZ fields_itemrZr[rrKr!r'r3r(r+si                     z/OperationsInsightsClient.list_database_insightsc sg}d}d}d}d}gdfddt|D}|rFtd|d |vrzgd }|d D]} | |vr^td |q^d |vrd dg} |d | vrtd| d|vrddg} |d| vrtd| |dt|dt|dt|j|d td|dt|dt|d t|dt|dtd } ddt| D} dd|dtd } d!dt| D} |jj|d"|j d#}|d$urt j }|rt |t j s|j| ||j|j|jj||| | d%|d&|||d' S|jj||| | d%|d&|||d' Sd$S)(a Gets a list of Ops Insights Enterprise Manager bridges. Either compartmentId or id must be specified. When both compartmentId and compartmentIdInSubtree are specified, a list of bridges in that compartment and in all sub-compartments will be returned. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str display_name: (optional) A filter to return only resources that match the entire display name. :param str id: (optional) Unique Enterprise Manager bridge identifier :param list[str] lifecycle_state: (optional) Lifecycle states Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION" :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. Allowed values are: "timeCreated", "displayName" :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.EnterpriseManagerBridgeCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_enterprise_manager_bridges API. rrlist_enterprise_manager_bridgeszxhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/ListEnterpriseManagerBridges) r r!r'rr/rrBrCrDrErJr/csg|]}|vr|qSr'r'r1r3r'r(r4,r5zLOperationsInsightsClient.list_enterprise_manager_bridges..z4list_enterprise_manager_bridges got unknown kwargs: rrrrDrKrLrMrErrrNr'rr/rrBrCrJ) r%rr/rrBrCrPrQrVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;-r5zLOperationsInsightsClient.list_enterprise_manager_bridges..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;%-r5r!rFNZ!EnterpriseManagerBridgeCollectionr rWrr%r&rOrHrIrMrNrarrrZr[rrKr!r'r3r(r,sJ                 z8OperationsInsightsClient.list_enterprise_manager_bridgesc  s*g}d}d}d}d}gdfddt|D}|rFtd|d |vrpd d g}|d |vrptd |d |vrgd} |d | vrtd| |dt|j|dtd|j|dtd|dt|dt|d t|d t|j|dtd|j|dtd|j|dtd|j|dtdd } ddt| D} dd|dtd} d dt| D} |jj|d!|j d"} | d#urt j } | rt | t j s|j| | |j| j|jj||| | d$|d%|||d& S|jj||| | d$|d%|||d& Sd#S)'a Gets a list of exadata insight configurations. Either compartmentId or exadataInsightsId query parameter must be specified. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_type: (optional) Filter by one or more Exadata types. Possible value are DBMACHINE, EXACS, and EXACC. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Exadata configuration list sort options. If `fields` parameter is selected, the `sortBy` parameter must be one of the fields specified. Allowed values are: "exadataName", "exadataDisplayName", "exadataType" :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.ExadataConfigurationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_exadata_configurations API. z&/exadataInsights/exadataConfigurationsrlist_exadata_configurationszlhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/ListExadataConfigurations)r r!r'r` exadata_typerBrCrDrErFrGrHrIr/csg|]}|vr|qSr'r'r1r3r'r(r4-r5zHOperationsInsightsClient.list_exadata_configurations..z0list_exadata_configurations got unknown kwargs: rDrKrLrMrE) exadataNameZexadataDisplayName exadataTyperNr'r`rrrBrCrFrGrHrI) r%r*rrBrCrPrQrRrSrTrUcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;-r5zHOperationsInsightsClient.list_exadata_configurations..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;-r5r!rFNZExadataConfigurationCollectionr rWr) r%r&rOrHrIrMrNrarZr[rrKr!r'r3r(rI-s]             z4OperationsInsightsClient.list_exadata_configurationsc sg}d}d}d}d}gdfddt|D}|rFtd|d |vrzgd }|d D]} | |vr^td |q^d |vrgd } |d D]} | | vrtd| qd|vrddg} |d| vrtd| d|vrddg} |d| vrtd| |dt|dt|j|dtd|j|d td|j|d td|j|dtd|dt|dt|dt|dt|dtd }d d!t|D}d"d"|d#td$}d%d!t|D}|jj|d&|j d'}|d(urt j }|rZt |t j s2|j|||j|j|jj||||d)|d*|||d+ S|jj||||d)|d*|||d+ Sd(S),a Gets a list of Exadata insights based on the query parameters specified. Either compartmentId or id query parameter must be specified. When both compartmentId and compartmentIdInSubtree are specified, a list of Exadata insights in that compartment and in all sub-compartments will be returned. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str enterprise_manager_bridge_id: (optional) Unique Enterprise Manager bridge identifier :param list[str] id: (optional) Optional list of Exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param list[str] lifecycle_state: (optional) Lifecycle states Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION" :param list[str] exadata_type: (optional) Filter by one or more Exadata types. Possible value are DBMACHINE, EXACS, and EXACC. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Exadata insight list sort options. If `fields` parameter is selected, the `sortBy` parameter must be one of the fields specified. Default order for timeCreated is descending. Default order for exadataName is ascending. If no value is specified timeCreated is default. Allowed values are: "timeCreated", "exadataName" :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.ExadataInsightSummaryCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_exadata_insights API. rrlist_exadata_insightszfhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/ListExadataInsights)r r!r'rnr/rrrrBrCrDrErJr/csg|]}|vr|qSr'r'r1r3r'r(r4t.r5zBOperationsInsightsClient.list_exadata_insights..z*list_exadata_insights got unknown kwargs: rrrrrrrDrKrLrMrErrrNr'rnr/rrrBrCrJ) r%rir/rrrrBrCrPrQrVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;.r5zBOperationsInsightsClient.list_exadata_insights..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;.r5r!rFNZExadataInsightSummaryCollectionr rWrr%r&rOrHrIrMrNrarrrrrZr[rrKr!r'r3r(r.sU                 z.OperationsInsightsClient.list_exadata_insightsc sg}d}d}d}d}gdfddt|D}|rFtd|d |vrzgd }|d D]} | |vr^td |q^d |vrd dg} |d | vrtd| d|vrddg} |d| vrtd| d|vrgd} |dD]} | | vrtd| q|dt|dt|j|dtd|j|dtd|j|d td|dt|dt|d t|dt|j|dtd|j|dtd|j|d td|j|d!td|d"t|j|d#td|d$t|j|d%td|j|dtdd&}d'd(t|D}d)d)|d*td+}d,d(t|D}|jj|d-|j d.}|d/urt j }|rt |t j s|j|||j|j|jj||||d0|d1|||d2 S|jj||||d0|d1|||d2 Sd/S)3a Gets a list of host insight configurations based on the query parameters specified. Either compartmentId or hostInsightId query parameter must be specified. When both compartmentId and compartmentIdInSubtree are specified, a list of host insight configurations in that compartment and in all sub-compartments will be returned. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str enterprise_manager_bridge_id: (optional) Unique Enterprise Manager bridge identifier :param list[str] id: (optional) Optional list of host insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] platform_type: (optional) Filter by one or more platform types. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. Allowed values are: "LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX" :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Host configuration list sort options. Allowed values are: "hostName", "platformType" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] host_type: (optional) Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.HostConfigurationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_host_configurations API. z /hostInsights/hostConfigurationsrlist_host_configurationszfhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListHostConfigurations)r r!r'rnr/r` platform_typerBrCrDrEr/rFrGrHrIrJ host_typehost_idrrcsg|]}|vr|qSr'r'r1r3r'r(r4k/r5zEOperationsInsightsClient.list_host_configurations..z-list_host_configurations got unknown kwargs: rZLINUXZSOLARISZSUNOSZZLINUXZWINDOWSZAIXZHP_UX2Invalid value for `platform_type`, must be one of rDrKrLrMrEr platformTyperNrrrr'rnr/rr`rBrCrFrGrHrIrJrrr)r%rir/r*rrBrCrPrQrRrSrTrUrVhostTypehostIdrrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;/r5zEOperationsInsightsClient.list_host_configurations..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;/r5r!rFNZHostConfigurationCollectionr rWr)r%r&rOrHrIrMrNraplatform_type_allowed_valuesplatform_type_itemrZr[rrrrKr!r'r3r(r.s~                  z1OperationsInsightsClient.list_host_configurationsc sg}d}d}d}d}gdfddt|D}|rFtd|d |vrzgd }|d D]} | |vr^td |q^d |vrgd } |d D]} | | vrtd| qd|vrgd} |dD]} | | vrtd| qd|vrddg}|d|vrtd|d|vr>ddg}|d|vr>td||dt|j|dtd|j|d td|j|d td|j|dtd|j|dtd|dt|dt|dt|dt|d t|d!t|d"td# }d$d%t|D}d&d&|d'td(}d)d%t|D}|jj|d*|j d+}|d,ur\t j }|rt |t j s|j|||j|j|jj||||d-|d.|||d/ S|jj||||d-|d.|||d/ Sd,S)0a1 Gets a list of host insights based on the query parameters specified. Either compartmentId or id query parameter must be specified. When both compartmentId and compartmentIdInSubtree are specified, a list of host insights in that compartment and in all sub-compartments will be returned. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of host insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param list[str] lifecycle_state: (optional) Lifecycle states Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION" :param list[str] host_type: (optional) Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST :param list[str] platform_type: (optional) Filter by one or more platform types. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. Allowed values are: "LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX" :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Host insight list sort options. If `fields` parameter is selected, the `sortBy` parameter must be one of the fields specified. Allowed values are: "hostName", "hostType" :param str enterprise_manager_bridge_id: (optional) Unique Enterprise Manager bridge identifier :param str exadata_insight_id: (optional) `OCID`__ of exadata insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.HostInsightSummaryCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_host_insights API. rrlist_host_insightsz`https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListHostInsights)r r!r'r/rrrrrBrCrDrErnr`rJr/csg|]}|vr|qSr'r'r1r3r'r(r4H0r5z?OperationsInsightsClient.list_host_insights..z'list_host_insights got unknown kwargs: rrrrrrrrrrDrKrLrMrErrrNr'r/rrrBrCrnr`rJ) r%r/rrrrrBrCrPrQrir*rVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;0r5z?OperationsInsightsClient.list_host_insights..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;0r5r!rFNZHostInsightSummaryCollectionr rWr)r%r&rOrHrIrMrNrarrrrrrrZr[rrKr!r'r3r(r/sb                  z+OperationsInsightsClient.list_host_insightsc sddg}d}d}d}d}gdfdd t|D} | rJtd | d |vr~gd } |d D]} | | vrbtd | qbd|vrddg} |d| vrtd| d|vrddg} |d| vrtd| d|vrgd}|dD]}||vrtd|q||dt|dt|dt|j|d td||dt|dt|dt|dt|dt|j|d td|d!t|j|dtdd"}d#d$t|D}d%d%|d&td'}d(d$t|D}|jj|d)|j d*}|d+ur t j }|r`t |t j s8|j|||j|j|jj||||d,|d-|||d. S|jj||||d,|d-|||d. Sd+S)/a Get a list of hosted entities details. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (required) Required `OCID`__ of the host insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] platform_type: (optional) Filter by one or more platform types. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. Allowed values are: "LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX" :param str exadata_insight_id: (optional) `OCID`__ of exadata insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Hosted entity list sort options. Allowed values are: "entityName", "entityType" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] host_type: (optional) Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.HostedEntityCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_hosted_entities API. r%r/z/hostInsights/hostedEntitiesrlist_hosted_entitieszbhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListHostedEntities)r r!analysis_time_intervalr^r_rr`rBrCrDrEr/rrrcsg|]}|vr|qSr'r'r1r3r'r(r431r5zAOperationsInsightsClient.list_hosted_entities..z)list_hosted_entities got unknown kwargs: rrrrDrKrLrMrE entityName entityTyperNrrrrr^r_rr`rBrCrr)r%analysisTimeIntervalrcrdrr/r*rBrCrPrQrrrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;f1r5zAOperationsInsightsClient.list_hosted_entities..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;m1r5r!rFNZHostedEntityCollectionr rWr)r%r'r/r&rOrHrIrMrNrarrrZr[rrrrKr!r'r3r(r0sn                   z-OperationsInsightsClient.list_hosted_entitiesc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vrrd d g} |d | vrrtd | d|vrddg} |d| vrtd| ||dt|dt|d t|dtd} ddt| D} dd|dtd} ddt| D} |jj|d|jd} | dur0t j } | rt | t j s\|j | | |j| j|jj||| | d|d|||d S|jj||| | d|d|||d SdS)!ap Gets a list of agent entities available to add a new hostInsight. An agent entity is "available" and will be shown if all the following conditions are true: 1. The agent OCID is not already being used for an existing hostInsight. 2. The agent availabilityStatus = 'ACTIVE' 3. The agent lifecycleState = 'ACTIVE' :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Hosted entity list sort options. Allowed values are: "entityName", "entityType" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.ImportableAgentEntitySummaryCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_importable_agent_entities API. r%z/importableAgentEntitiesrlist_importable_agent_entitieszkhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListImportableAgentEntitiesr r!rBrCrDrEr/csg|]}|vr|qSr'r'r1r3r'r(r41r5zKOperationsInsightsClient.list_importable_agent_entities..z3list_importable_agent_entities got unknown kwargs: rDrKrLrMrErrrNrBrCr%rBrCrPrQcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;1r5zKOperationsInsightsClient.list_importable_agent_entities..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;2r5r!rFNZ&ImportableAgentEntitySummaryCollectionr rWrrQrRr#r7rSr$rXr!rrYrTrZr\r]r"r^r_rYr'r3r(r1s?            z7OperationsInsightsClient.list_importable_agent_entitiesc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vrrd d g} |d | vrrtd | d|vrgd} |d| vrtd| ||dt|dt|d t|dtd} ddt| D} dd|dtd} ddt| D} |jj|d|jd} | dur0t j } | rt | t j s\|j | | |j| j|jj||| | d|d|||d S|jj||| | d|d|||d SdS) a8 Gets a list of available compute intances running cloud agent to add a new hostInsight. An Compute entity is "available" and will be shown if all the following conditions are true: 1. Compute is running OCA 2. OCI Management Agent is not enabled or If OCI Management Agent is enabled 2.1 The agent OCID is not already being used for an existing hostInsight. 2.2 The agent availabilityStatus = 'ACTIVE' 2.3 The agent lifecycleState = 'ACTIVE' :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Compute entity list sort options. Allowed values are: "computeId", "computeDisplayName", "platformType", "hostName" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.ImportableComputeEntitySummaryCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_importable_compute_entities API. r%z/importableComputeEntitiesr list_importable_compute_entitieszmhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListImportableComputeEntitiesrcsg|]}|vr|qSr'r'r1r3r'r(r4v2r5zMOperationsInsightsClient.list_importable_compute_entities..z5list_importable_compute_entities got unknown kwargs: rDrKrLrMrE)Z computeIdZcomputeDisplayNamerrrNrBrCrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;2r5zMOperationsInsightsClient.list_importable_compute_entities..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;2r5r!rFNZ(ImportableComputeEntitySummaryCollectionr rWrrYr'r3r(r%2sA            z9OperationsInsightsClient.list_importable_compute_entitiesc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqn|dt |dt |j |dt d|dt |dt d} dd t| D} dd|dt d} dd t| D} |j j |d|j d}|d urRtj}|rt|tjs~|j | ||j|j|j j||| | | d|d|||d S|j j||| | | d|d|||d Sd S)!a Gets a list of importable entities for an Operations Insights Enterprise Manager bridge that have not been imported before. :param str enterprise_manager_bridge_id: (required) Unique Enterprise Manager bridge identifier :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param list[str] enterprise_manager_entity_type: (optional) Filter by one or more Enterprise Manager entity types. Currently, the supported types are "oracle_pdb", "oracle_database", "host", "oracle_dbmachine", "oracle_exa_cloud_service", and "oracle_oci_exadata_cloud_service". If this parameter is not specified, targets of all supported entity types are returned by default. :param str enterprise_manager_identifier: (optional) Used in combination with enterpriseManagerParentEntityIdentifier to return the members of a particular Enterprise Manager parent entity. Both enterpriseManagerIdentifier and enterpriseManagerParentEntityIdentifier must be specified to identify a particular Enterprise Manager parent entity. :param str enterprise_manager_parent_entity_identifier: (optional) Used in combination with enterpriseManagerIdentifier to return the members of a particular Enterprise Manager parent entity. Both enterpriseManagerIdentifier and enterpriseManagerParentEntityIdentifier must be specified to identify a particular Enterprise Manager parent entity. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.ImportableEnterpriseManagerEntityCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_importable_enterprise_manager_entities API. rizY/enterpriseManagerBridges/{enterpriseManagerBridgeId}/importableEnterpriseManagerEntitiesr+list_importable_enterprise_manager_entitieszhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/ListImportableEnterpriseManagerEntities)r r!rBrCenterprise_manager_entity_typeenterprise_manager_identifier+enterprise_manager_parent_entity_identifierr/csg|]}|vr|qSr'r'r1r3r'r(r43r5zXOperationsInsightsClient.list_importable_enterprise_manager_entities..z@list_importable_enterprise_manager_entities got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r; 3r5zXOperationsInsightsClient.list_importable_enterprise_manager_entities..Nrr<r=rBrCrrrr)rBrCZenterpriseManagerEntityTypeZenterpriseManagerIdentifierZ'enterpriseManagerParentEntityIdentifiercSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;3r5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;!3r5r!rFZ+ImportableEnterpriseManagerEntityCollectionr rrrQrRrSrTrUrVrWr#r7r$rrXr!rrYrZr\r]r"r^r_)r%rnr&rOrHrIrMrNrarJr9r:rrKr!r'r3r(r2s8 $         zDOperationsInsightsClient.list_importable_enterprise_manager_entitiesc sZg}d}d}d}d}gdfddt|D}|rFtd|d |vrzgd }|d D]} | |vr^td |q^d |vrgd } |d D]} | | vrtd| qd|vrddg} |d| vrtd| d|vrddg} |d| vrtd| |dt|dt|j|d td|j|d td|dt|dt|dt|dt|dtd }ddt|D}d d |d!td"}d#dt|D}|jj|d$|j d%}|d&urt j }|r2t |t j s |j|||j|j|jj||||d'|d(|||d) S|jj||||d'|d(|||d) Sd&S)*a Gets a list of news reports based on the query parameters specified. Either compartmentId or id query parameter must be specified. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str news_report_id: (optional) Unique Ops Insights news report identifier :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param list[str] lifecycle_state: (optional) Lifecycle states Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION" :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) News report list sort options. If `fields` parameter is selected, the `sortBy` parameter must be one of the fields specified. Allowed values are: "name", "newsFrequency" :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.NewsReportCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_news_reports API. rrlist_news_reportsz]https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReport/ListNewsReports) r r!r'rurrrBrCrDrErJr/csg|]}|vr|qSr'r'r1r3r'r(r43r5z>OperationsInsightsClient.list_news_reports..z&list_news_reports got unknown kwargs: rrrrrrrDrKrLrMrErZ newsFrequencyrNr'rurrBrCrJ) r%rsrrrBrCrPrQrVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;3r5z>OperationsInsightsClient.list_news_reports..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;3r5r!rFNZNewsReportCollectionr rWrrr'r3r(rG3sK                 z*OperationsInsightsClient.list_news_reportsc s,g}d}d}d}d}gdfddt|D}|rFtd|d |vrzgd }|d D]} | |vr^td |q^d |vrd dg} |d | vrtd| d|vrgd} |d| vrtd| |dt|dt|dt|dt|dt|j|d td|dt|dt|d t|dt|dtd } ddt| D} dd|d td!} d"dt| D} |jj|d#|j d$}|d%urt j }|rt |t j s|j| ||j|j|jj||| | d&|d'|||d( S|jj||| | d&|d'|||d( Sd%S))a Gets a list of Operation Insights private endpoints. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str display_name: (optional) A filter to return only resources that match the entire display name. :param str opsi_private_endpoint_id: (optional) Unique Operations Insights PrivateEndpoint identifier :param bool is_used_for_rac_dbs: (optional) The option to filter OPSI private endpoints that can used for RAC. Should be used along with vcnId query parameter. :param str vcn_id: (optional) The `OCID`__ of the VCN. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param list[str] lifecycle_state: (optional) Lifecycle states Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION" :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The field to sort private endpoints. Allowed values are: "timeCreated", "id", "displayName" :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OperationsInsightsPrivateEndpointCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_operations_insights_private_endpoints API. rr*list_operations_insights_private_endpointszhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/ListOperationsInsightsPrivateEndpoints)r r!r'rris_used_for_rac_dbsvcn_idrrBrCrDrErJr/csg|]}|vr|qSr'r'r1r3r'r(r4h4r5zWOperationsInsightsClient.list_operations_insights_private_endpoints..z?list_operations_insights_private_endpoints got unknown kwargs: rrrrDrKrLrMrE)rr/rrNr'rrrrrrBrCrJ) r%rrZisUsedForRacDbsZvcnIdrrBrCrPrQrVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;4r5zWOperationsInsightsClient.list_operations_insights_private_endpoints..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;4r5r!rFNZ+OperationsInsightsPrivateEndpointCollectionr rWrrr'r3r(r4sQ                   zCOperationsInsightsClient.list_operations_insights_private_endpointsc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vr|gd } |d D]} | | vr`td | q`d |vrddg} |d | vrtd| d|vrddg} |d| vrtd| |dt|dt|dt||j|d td|dt|dt|d t|dtd } ddt| D} dd|dtd }d!dt|D}|jj|d"|j d#}|d$urt j }|rt |t j s|j|||j|j|jj||| |d%|d&|||d' S|jj||| |d%|d&|||d' Sd$S)(a Gets a list of Operations Insights Warehouse users. Either compartmentId or id must be specified. All these resources are expected to be in root compartment. :param str operations_insights_warehouse_id: (required) Unique Operations Insights Warehouse identifier :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str display_name: (optional) A filter to return only resources that match the entire display name. :param str id: (optional) Unique Operations Insights Warehouse User identifier :param list[str] lifecycle_state: (optional) Lifecycle states Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. Allowed values are: "timeCreated", "displayName" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OperationsInsightsWarehouseUserSummaryCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_operations_insights_warehouse_users API. ryrr(list_operations_insights_warehouse_userszhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/ListOperationsInsightsWarehouseUsersrcsg|]}|vr|qSr'r'r1r3r'r(r45r5zUOperationsInsightsClient.list_operations_insights_warehouse_users..z=list_operations_insights_warehouse_users got unknown kwargs: rrrrDrKrLrMrErrrNr'rr/rrBrCrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;>5r5zUOperationsInsightsClient.list_operations_insights_warehouse_users..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;E5r5r!rFNZ0OperationsInsightsWarehouseUserSummaryCollectionr rWrrr'r3r(r4sI                 zAOperationsInsightsClient.list_operations_insights_warehouse_usersc sg}d}d}d}d}gdfddt|D}|rFtd|d |vrzgd }|d D]} | |vr^td |q^d |vrd dg} |d | vrtd| d|vrddg} |d| vrtd| |dt|dt|dt|j|d td|dt|dt|d t|dtd} ddt| D} dd|dtd} d dt| D} |jj|d!|j d"}|d#urt j }|rt |t j s|j| ||j|j|jj||| | d$|d%|||d& S|jj||| | d$|d%|||d& Sd#S)'a Gets a list of Ops Insights warehouses. Either compartmentId or id must be specified. There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str display_name: (optional) A filter to return only resources that match the entire display name. :param str id: (optional) Unique Ops Insights Warehouse identifier :param list[str] lifecycle_state: (optional) Lifecycle states Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. Allowed values are: "timeCreated", "displayName" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OperationsInsightsWarehouseSummaryCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_operations_insights_warehouses API. rr#list_operations_insights_warehouseszhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/ListOperationsInsightsWarehousesrcsg|]}|vr|qSr'r'r1r3r'r(r45r5zPOperationsInsightsClient.list_operations_insights_warehouses..z8list_operations_insights_warehouses got unknown kwargs: rrrrDrKrLrMrErrrNr'rr/rrBrC)r%rr/rrBrCrPrQcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;5r5zPOperationsInsightsClient.list_operations_insights_warehouses..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;5r5r!rFNZ,OperationsInsightsWarehouseSummaryCollectionr rWrrr'r3r(ri5sG                 z`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OpsiConfigurationsCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_opsi_configurations API. r%rrlist_opsi_configurationszlhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/ListOpsiConfigurations) r r!rropsi_config_typerBrCrDrEr/csg|]}|vr|qSr'r'r1r3r'r(r4o6r5zEOperationsInsightsClient.list_opsi_configurations..z-list_opsi_configurations got unknown kwargs: rrrrUX_CONFIGURATION5Invalid value for `opsi_config_type`, must be one of rDrKrLrMrErrNrrrBrC)r%rropsiConfigTyperBrCrPrQcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;6r5zEOperationsInsightsClient.list_opsi_configurations..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;6r5r!rFNZOpsiConfigurationsCollectionr rWr)r%r'r&rOrHrIrMrNrarropsi_config_type_allowed_valuesZopsi_config_type_itemrZr[rrKr!r'r3r(r6sH                z1OperationsInsightsClient.list_opsi_configurationsc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vr|gd } |d D]} | | vr`td | q`d |vrddg} |d | vrtd| d|vrgd} |d| vrtd| ||j|d td|dt|dt|dt|d t|dt|dt|dtd } ddt| D} dd|dtd}d dt|D}|jj|d!|j d"}|d#urt j }|rt |t j s|j|||j|j|jj||| |d$|d%|||d& S|jj||| |d$|d%|||d& Sd#S)'aW Gets a list of OPSI data objects based on the query parameters specified. CompartmentId id query parameter must be specified. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] data_object_type: (optional) OPSI data object types. Allowed values are: "DATABASE_INSIGHTS_DATA_OBJECT", "HOST_INSIGHTS_DATA_OBJECT", "EXADATA_INSIGHTS_DATA_OBJECT" :param str display_name: (optional) A filter to return only resources that match the entire display name. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) OPSI data object list sort options. Allowed values are: "displayName", "dataObjectType", "name" :param str group_name: (optional) A filter to return only data objects that belongs to the group of the given group name. By default, no filtering will be applied on group name. :param str name: (optional) A filter to return only data objects that match the entire data object name. By default, no filtering will be applied on data object name. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OpsiDataObjectsCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_opsi_data_objects API. r%z/opsiDataObjectsrlist_opsi_data_objectszfhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiDataObjects/ListOpsiDataObjects) r r!data_object_typerrBrCrDrE group_namerr/csg|]}|vr|qSr'r'r1r3r'r(r4$7r5zCOperationsInsightsClient.list_opsi_data_objects..z+list_opsi_data_objects got unknown kwargs: r)ZDATABASE_INSIGHTS_DATA_OBJECTZHOST_INSIGHTS_DATA_OBJECTZEXADATA_INSIGHTS_DATA_OBJECT5Invalid value for `data_object_type`, must be one of rDrKrLrMrE)rdataObjectTyperrNrrrBrCrr) r%rrrBrCrPrQZ groupNamercSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;J7r5zCOperationsInsightsClient.list_opsi_data_objects..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Q7r5r!rFNZOpsiDataObjectsCollectionr rWrX)r%r'r&rOrHrIrMrNradata_object_type_allowed_valuesdata_object_type_itemrZr[rrKr!r'r3r(r6sI                 z/OperationsInsightsClient.list_opsi_data_objectsc s\gd}d}d}d}d} gdfddt|D} | rJtd | ||d t|d t||j|d |d td} ddt| D} dd|dtd} ddt| D} |jj|d|j d} | durt j } | r4t | t j s |j| | |j| j|jj||| | d|d|| |d S|jj||| | d|d|| |d SdS)a Query SQL Warehouse to list the plan xml for a given SQL execution plan. This returns a SqlPlanCollection object, but is currently limited to a single plan. Either databaseId or id must be specified. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str sql_identifier: (required) Unique SQL_ID for a SQL Statement. Example: `6rgjh9bjmy2s7` :param oci.opsi.models.list[int] plan_hash: (required) Unique plan hash for a SQL Plan of a particular SQL Statement. Example: `9820154385` :param str database_id: (optional) Optional `OCID`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (optional) `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SqlPlanCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_sql_plans API. )r%rlplanHashz/databaseInsights/sqlPlansrlist_sql_plansz`https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListSqlPlans)r r!r.r/rCr/csg|]}|vr|qSr'r'r1r3r'r(r47r5z;OperationsInsightsClient.list_sql_plans..z#list_sql_plans got unknown kwargs: r.r/rrC)r%r1r/rlrrCcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;7r5z;OperationsInsightsClient.list_sql_plans..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;7r5r!rFNZSqlPlanCollectionr rWr)r%r'riZ plan_hashr&rOrHrIrMrNrarrKr!r'r3r(ru7sr;        z'OperationsInsightsClient.list_sql_plansc  sddg}d}d}d}d}gdfdd t|D} | rJtd | |||d t|d t|d t|dt|j|dtd|j|dtd|j|dtd|j|dtd|dtd } ddt| D} dd|dtd} ddt| D} |jj|d|j d} | dur:t j } | rt | t j sf|j| | |j| j|jj||| | d|d |||d! S|jj||| | d|d |||d! SdS)"a5 Search SQL by SQL Identifier across databases in a compartment and in all sub-compartments if specified. And get the SQL Text and the details of the databases executing the SQL for a given time period. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str sql_identifier: (required) Unique SQL_ID for a SQL Statement. Example: `6rgjh9bjmy2s7` :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SqlSearchCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_sql_searches API. r%rlz/databaseInsights/sqlSearchesrlist_sql_searcheszchttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListSqlSearches) r r!rr^r_rCr/rFrGrHrIrJcsg|]}|vr|qSr'r'r1r3r'r(r4h8r5z>OperationsInsightsClient.list_sql_searches..z&list_sql_searches got unknown kwargs: rr^r_rCrFrrGrHrIrJ) r%rlrrcrdrCrRrSrTrUrVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;z8r5z>OperationsInsightsClient.list_sql_searches..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;8r5r!rFNZSqlSearchCollectionr rWr r%r'rir&rOrHrIrMrNrarrKr!r'r3r(r7s|\           z*OperationsInsightsClient.list_sql_searchesc  sddg}d}d}d}d}gdfdd t|D} | rJtd | ||j|d td |j|d td |j|d |dt|j|dtd |j|dtd |j|dtd |j|dtd |dtd } ddt| D} dd|dtd} ddt| D} |jj|d|j d} | durNt j } | rt | t j sz|j| | |j| j|jj||| | d|d|||d S|jj||| | d|d|||d SdS)!a Query SQL Warehouse to get the full SQL Text for a SQL in a compartment and in all sub-compartments if specified. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param oci.opsi.models.list[str] sql_identifier: (required) One or more unique SQL_IDs for a SQL Statement. Example: `6rgjh9bjmy2s7` :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the assosicated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database `OCIDs`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SqlTextCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_sql_texts API. r%rlz/databaseInsights/sqlTextsrlist_sql_textsz`https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListSqlTexts) r r!r.r/rCr/rFrGrHrIrJcsg|]}|vr|qSr'r'r1r3r'r(r4 9r5z;OperationsInsightsClient.list_sql_texts..z#list_sql_texts got unknown kwargs: r.rr/rCrFrGrHrIrJ) r%r1r/rlrCrRrSrTrUrVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;9r5z;OperationsInsightsClient.list_sql_texts..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;#9r5r!rFNZSqlTextCollectionr rWrXrr'r3r(r8szR          z'OperationsInsightsClient.list_sql_textsc sddg}d}d}d}d}gdfdd t|D} | rJtd | ||d } d d t| D} t| D]<\} } | dust| tjrrt| dkrrtd| dqrd|vrddg} |dD]}|| vrtd| qd|vrddg}|d|vrtd|d|vr@gd}|d|vr@td|d|vrxdg}|dD]}||vrXtd|qX|j | dt d | d!t | d"t | d#t | d$t | dt | dt |j | dt d d%}d&d t|D}d'd'| d(t d)}d*d t|D}|jj | d+|j d,}|durFtj}|rt|tjsr|j|||j|j|jj||| ||d-| d.|||d/ S|jj||| ||d-| d.|||d/ SdS)0aZ Gets a list of Warehouse data objects (e.g: views, tables), based on the query parameters specified. :param str warehouse_type: (required) Type of the Warehouse. Allowed values are: "awrHubs" :param str warehouse_id: (required) The `OCID`__ of a Warehouse. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] data_object_type: (optional) A filter to return only data objects that match the data object type. By default, no filtering will be applied on data object type. Allowed values are: "VIEW", "TABLE" :param str name: (optional) A filter to return only data objects that match the entire data object name. By default, no filtering will be applied on data object name. :param str owner: (optional) A filter to return only data objects that match the entire data object owner name. By default, no filtering will be applied on data object owner name. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Sort options for Warehouse data objects list. Allowed values are: "dataObjectType", "name", "owner" :param list[str] summary_field: (optional) Specifies the optional fields to return in a WarehouseDataObjectSummary. Unless requested, these fields are not returned by default. Allowed values are: "details" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.WarehouseDataObjectCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_warehouse_data_objects API. warehouseType warehouseIdz*/{warehouseType}/{warehouseId}/dataObjectsrlist_warehouse_data_objectszthttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiWarehouseDataObjects/ListWarehouseDataObjects) r r!rrownerrBrCrDrE summary_fieldr/csg|]}|vr|qSr'r'r1r3r'r(r49r5zHOperationsInsightsClient.list_warehouse_data_objects..z0list_warehouse_data_objects got unknown kwargs: rrcSsi|]\}}|tur||qSr'r6r8r'r'r(r;9r5zHOperationsInsightsClient.list_warehouse_data_objects..Nrr<r=rZVIEWZTABLErrDrKrLrMrE)rrrrNrZdetailsz2Invalid value for `summary_field`, must be one of rrrrBrC)rrrrBrCrPrQZ summaryFieldcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;9r5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;9r5r!rFZWarehouseDataObjectCollectionr rr$)r%warehouse_type warehouse_idr&rOrHrIrMrNrarJr9r:rrrZr[Zsummary_field_allowed_valuesZsummary_field_itemrrKr!r'r3r(rG9sP $                  z4OperationsInsightsClient.list_warehouse_data_objectsc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqnd|vrdg} |d| vrtd| d|vrddg} |d| vrtd| |dt |dt |dt |dt d}dd t|D}dd|dt d}dd t|D}|j j |d|j d }|d urt j}|rt|t js|j |||j|j|j j||| ||d!|d"|||d# S|j j||| ||d!|d"|||d# Sd S)$a Return a (paginated) list of errors for a given work request. :param str work_request_id: (required) The ID of the asynchronous request. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_by: (optional) The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. Allowed values are: "timeAccepted" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.WorkRequestErrorCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_work_request_errors API. r(z$/workRequests/{workRequestId}/errorsrlist_work_request_errorszehttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/WorkRequests/ListWorkRequestErrorsr r!r/rCrBrErDcsg|]}|vr|qSr'r'r1r3r'r(r4Y:r5zEOperationsInsightsClient.list_work_request_errors..z-list_work_request_errors got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;b:r5zEOperationsInsightsClient.list_work_request_errors..Nrr<r=rE timeAcceptedrNrDrKrLrMrCrBrCrBrQrPcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;|:r5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;:r5r!rFZWorkRequestErrorCollectionr rrmr%r*r&rOrHrIrMrNrarJr9r:r[rZrrKr!r'r3r(r:s9 $           z1OperationsInsightsClient.list_work_request_errorsc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqnd|vrdg} |d| vrtd| d|vrddg} |d| vrtd| |dt |dt |dt |dt d}dd t|D}dd|dt d}dd t|D}|j j |d|j d }|d urt j}|rt|t js|j |||j|j|j j||| ||d!|d"|||d# S|j j||| ||d!|d"|||d# Sd S)$a Return a (paginated) list of logs for a given work request. :param str work_request_id: (required) The ID of the asynchronous request. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_by: (optional) The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. Allowed values are: "timeAccepted" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.WorkRequestLogEntryCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_work_request_logs API. r(z"/workRequests/{workRequestId}/logsrlist_work_request_logszchttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/WorkRequests/ListWorkRequestLogsrcsg|]}|vr|qSr'r'r1r3r'r(r4:r5zCOperationsInsightsClient.list_work_request_logs..z+list_work_request_logs got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;:r5zCOperationsInsightsClient.list_work_request_logs..Nrr<r=rErrNrDrKrLrMrCrBrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;;r5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;;r5r!rFZWorkRequestLogEntryCollectionr rrmrr'r3r(r:s9 $           z/OperationsInsightsClient.list_work_request_logsc sg}d}d}d}d}gdfddt|D}|rFtd|d |vrpgd }|d |vrptd |d |vrd dg} |d | vrtd| d|vrdg} |d| vrtd| |dt|dt|dt|dt|d t|dt|dt|d t|dtd } ddt| D} dd|dtd} ddt| D} |jj|d |jd!} | d"urt j } | rt | t j s|j | | |j| j|jj||| | d#|d$|||d% S|jj||| | d#|d$|||d% Sd"S)&ad Lists the work requests in a compartment. Either compartmentId or id must be specified. Only one of id, resourceId or relatedResourceId can be specified optionally. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (optional) The ID of the asynchronous work request. :param str status: (optional) A filter to return only resources their lifecycleState matches the given OperationStatus. Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED" :param str resource_id: (optional) The ID of the resource affected by the work request. :param str related_resource_id: (optional) The ID of the related resource for the resource affected by the work request, e.g. the related Exadata Insight OCID of the Database Insight work request :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. Allowed values are: "timeAccepted" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.WorkRequestCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_work_requests API. z /workRequestsrlist_work_requestsz`https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/WorkRequests/ListWorkRequests) r r!r/rCrBr'r/r resource_idrelated_resource_idrDrEcsg|]}|vr|qSr'r'r1r3r'r(r4;r5z?OperationsInsightsClient.list_work_requests..z'list_work_requests got unknown kwargs: r)ZACCEPTEDZ IN_PROGRESSZWAITINGrZ SUCCEEDEDZ CANCELINGZCANCELEDrrDrKrLrMrErrNrCrBr'r/rr) rCrBr%r/rZ resourceIdZrelatedResourceIdrPrQcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;;r5z?OperationsInsightsClient.list_work_requests..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;;r5r!rFNZWorkRequestCollectionr rWr)r%r&rOrHrIrMrNrarrZr[rrKr!r'r3r(rB;sI                  z+OperationsInsightsClient.list_work_requestsc sfddg}d}d}d}d} gdfdd t|D} | rJtd | ||d } d d t| D} t| D]<\} } | dust| tjrrt| dkrrtd| dqrd|dt |dt d}dd t|D}z|Wn t y|dt }Yn0|t ur|durt|tj tjfsFt |dsFt dt |drt |dr|jdkrtj|dkrd|d<n8d|vrt|st||d}|d |d<|d!}|jj|d"|jd#}|durtj}|r`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :param int buffer_limit: (optional) A buffer limit for the stream to be buffered. buffer_limit is used to set the buffer size capacity. Streams will be read until the size of the buffer reaches the buffer_limit. If the stream size is greater than the buffer_limit, a BufferError exception will be thrown. The buffer_limit parameter is used when the stream object does not have a `seek`, `tell`, or `fileno` property for the Python Request library to calculate out the content length. If buffer_limit is not passed, then the buffer_limit will be defaulted to 100MB. Large streams can cause the process to freeze, consider passing in content-length for large streams instead. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use put_awr_hub_object API. rerrPUTput_awr_hub_objectz`https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubObjects/PutAwrHubObject)r r! buffer_limitr.r/csg|]}|vr|qSr'r'r1r3r'r(r4/<r5z?OperationsInsightsClient.put_awr_hub_object..z'put_awr_hub_object got unknown kwargs: rcSsi|]\}}|tur||qSr'r6r8r'r'r(r;9<r5z?OperationsInsightsClient.put_awr_hub_object..Nrr<r=r>r.r/)r@rBrCcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;D<r5put_awr_hub_object_bodyreadz=The body must be a string, bytes, or provide a read() method.filenorz0zContent-LengthrZcontent_lengthZ byte_contentr!rFFr ) rHrIrJrKrLZenforce_content_headersr rMrNrO)rrQrRrSrTrUrVrWr#r7 NameErrorZ binary_typehasattr TypeErrorrrZutilsZ super_lenrrr$rXr!rrYrZr\r]r"r^r_)r%rrgrr&rOrHrIrMrNrarJr9r:rKZcalculated_objr!r'r3r(r;s1$  $      z+OperationsInsightsClient.put_awr_hub_objectc sDdg}d}d}d}d}gdfddt|D} | rHtd | ||d t|d td } d dt| D} dd|dtd} ddt| D} |jj|d|jd} | durt j } | rt | t j s|j | | |j| j|jj||| | |d|d|||d S|jj||| | |d|d|||d SdS)aE Queries an OPSI data object with the inputs provided and sends the result set back. Either analysisTimeInterval or timeIntervalStart and timeIntervalEnd parameters need to be passed as well. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param oci.opsi.models.QueryOpsiDataObjectDataDetails query_opsi_data_object_data_details: (required) The information to be used for querying an OPSI data object. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.QueryDataObjectResultSetRowsCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use query_opsi_data_object_data API. r%z"/opsiDataObjects/actions/queryDatar+query_opsi_data_object_datazjhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiDataObjects/QueryOpsiDataObjectDatar r!rBrCr/csg|]}|vr|qSr'r'r1r3r'r(r4<r5zHOperationsInsightsClient.query_opsi_data_object_data..z0query_opsi_data_object_data got unknown kwargs: rBrC)r%rBrCcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;<r5zHOperationsInsightsClient.query_opsi_data_object_data..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;<r5r!rFN&QueryDataObjectResultSetRowsCollectionr rr) r%r'Z#query_opsi_data_object_data_detailsr&rOrHrIrMrNrarrKr!r'r3r(r <sp5       z4OperationsInsightsClient.query_opsi_data_object_datac sddg}d}d}d}d} gdfdd t|D} | rJtd | ||d } d d t| D} t| D]<\} } | dust| tjrrt| dkrrtd| dqr|dt |dt d}dd t|D}dd|dt d}dd t|D}|j j |d|j d}|dur.t j}|rt|t jsZ|j |||j|j|j j||| |||d|d|| |d S|j j||| |||d|d|| |d SdS)a Queries Warehouse data objects (e.g: views, tables) with the inputs provided and sends the result set back. Any data to which an OperationsInsightsWarehouseUser with a permission to the corresponding Warehouse can be queried. :param str warehouse_type: (required) Type of the Warehouse. Allowed values are: "awrHubs" :param str warehouse_id: (required) The `OCID`__ of a Warehouse. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param oci.opsi.models.QueryWarehouseDataObjectDataDetails query_warehouse_data_object_data_details: (required) The information to be used for querying a Warehouse. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.QueryDataObjectResultSetRowsCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use query_warehouse_data_object_data API. rrz0/{warehouseType}/{warehouseId}/actions/queryDatar+ query_warehouse_data_object_datazxhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiWarehouseDataObjects/QueryWarehouseDataObjectDatar csg|]}|vr|qSr'r'r1r3r'r(r4A=r5zMOperationsInsightsClient.query_warehouse_data_object_data..z5query_warehouse_data_object_data got unknown kwargs: rcSsi|]\}}|tur||qSr'r6r8r'r'r(r;K=r5zMOperationsInsightsClient.query_warehouse_data_object_data..Nrr<r=rBrC)rBrCcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;U=r5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;\=r5r!rFr r ) rHrIrJrrKrLrr rMrNrOrm)r%rrZ(query_warehouse_data_object_data_detailsr&rOrHrIrMrNrarJr9r:rrKr!r'r3r(r <s:$      z9OperationsInsightsClient.query_warehouse_data_object_datac s~dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | d urt j} | rXt| t js2|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a Rotate the ADW wallet for Operations Insights Warehouse using which the Hub data is exposed. :param str operations_insights_warehouse_id: (required) Unique Ops Insights Warehouse identifier :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use rotate_operations_insights_warehouse_wallet API. ryz[/operationsInsightsWarehouses/{operationsInsightsWarehouseId}/actions/rotateWarehouseWalletr++rotate_operations_insights_warehouse_walletzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/RotateOperationsInsightsWarehouseWallet)r r!r/r.csg|]}|vr|qSr'r'r1r3r'r(r4=r5zXOperationsInsightsClient.rotate_operations_insights_warehouse_wallet..z@rotate_operations_insights_warehouse_wallet got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;=r5zXOperationsInsightsClient.rotate_operations_insights_warehouse_wallet..Nrr<r=r>r/r.)r@rArCrBcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;=r5r!rFr rrmrr'r3r(r=sl$$      zDOperationsInsightsClient.rotate_operations_insights_warehouse_walletc sVdg}d}d}d}d}gdfddt|D}|rHtd |d |vrrd d g} |d | vrrtd | d|vrgd} |d| vrtd| ||j|dtd|j|dtd|dt|dt|dt|dt|dt|dt|d t|dt|j|dtd|j|dtd|j|dtd|j|dtd|dtd} d d!t| D} d"d"|d#td$} d%d!t| D} |jj|d&|j d'} | d(urt j } | r.t | t j s|j| | |j| j|jj||| | d)|d*|||d+ S|jj||| | d)|d*|||d+ Sd(S),a Summarizes ADDM findings for the specified databases. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str category_name: (optional) Optional value filter to match the finding category exactly. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Field name for sorting the ADDM finding summary data Allowed values are: "impactOverallPercent", "impactMaxPercent", "impactAvgActiveSessions", "frequencyCount" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AddmDbFindingAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_addm_db_findings API. r%z /databaseInsights/addmDbFindingsrsummarize_addm_db_findingszkhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbFindingsr]csg|]}|vr|qSr'r'r1r3r'r(r4{>r5zGOperationsInsightsClient.summarize_addm_db_findings..z/summarize_addm_db_findings got unknown kwargs: rDrKrLrMrE)ZimpactOverallPercentZimpactMaxPercentZimpactAvgActiveSessionsfrequencyCountrNr.rr/rr^r_r`rBrCrFrGrHrIrJrbcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;>r5zGOperationsInsightsClient.summarize_addm_db_findings..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;>r5r!rFNZ"AddmDbFindingAggregationCollectionr rWrXrYr'r3r(r=st                z3OperationsInsightsClient.summarize_addm_db_findingsc sZddg}d}d}d}d}gdfdd t|D} | rJtd | d |vrtd d g} |d | vrttd| d|vrddg} |d| vrtd| ||j|dtd|j|dtd|dt|dt|dt||dt|dt|dt|d t|dt|j|dtd|j|dtd|j|dtd|j|dtd|d td!} d"d#t| D} d$d$|d%td&} d'd#t| D} |jj|d(|j d)}|d*urt j }|r2t |t j s |j| ||j|j|jj||| | d+|d,|||d- S|jj||| | d+|d,|||d- Sd*S).a Summarizes the AWR database parameter change history for the specified parameter. There will be one element for each time that parameter changed during the specified time period. This API is limited to only one parameter per request. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str name: (required) Required filter to return only changes for the specified parameter. The match is case sensitive. :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str value_contains: (optional) Optional filter to return only resources whose value contains the substring given. The match is not case sensitive. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Field name for sorting the database parameter change data Allowed values are: "isChanged", "beginSnapId" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AddmDbParameterChangeAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_addm_db_parameter_changes API. r%rz(/databaseInsights/addmDbParameterChangesr#summarize_addm_db_parameter_changeszshttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbParameterChanges)r r!r.r/rr^r_value_containsrBrCrDrEr/rFrGrHrIrJcsg|]}|vr|qSr'r'r1r3r'r(r4a?r5zPOperationsInsightsClient.summarize_addm_db_parameter_changes..z8summarize_addm_db_parameter_changes got unknown kwargs: rDrKrLrMrE isChangedZ beginSnapIdrNr.rr/rr^r_rrBrCrFrGrHrIrJ)r%r1r/r rcrdrZ valueContainsrBrCrPrQrRrSrTrUrVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;?r5zPOperationsInsightsClient.summarize_addm_db_parameter_changes..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;?r5r!rFNZ*AddmDbParameterChangeAggregationCollectionr rWrX)r%r'rr&rOrHrIrMrNrarZr[rrKr!r'r3r(r>s{                z`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AddmDbParameterAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_addm_db_parameters API. r%z"/databaseInsights/addmDbParametersrsummarize_addm_db_parameterszmhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbParameters)r r!r.r/rr^r_r`name_or_value_contains is_changed is_defaulthas_recommendationsrBrCrDrEr/rFrGrHrIrJcsg|]}|vr|qSr'r'r1r3r'r(r4`@r5zIOperationsInsightsClient.summarize_addm_db_parameters..z1summarize_addm_db_parameters got unknown kwargs: rTRUEFALSEz/Invalid value for `is_changed`, must be one of rz/Invalid value for `is_default`, must be one of rz8Invalid value for `has_recommendations`, must be one of rDrKrLrMrErrrNr.rr/rr^r_r`rrBrCrFrGrHrIrJ)r%r1r/r rcrdreZnameOrValueContainsrZ isDefaultZhasRecommendationsrBrCrPrQrRrSrTrUrVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;@r5zIOperationsInsightsClient.summarize_addm_db_parameters..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;@r5r!rFNZ$AddmDbParameterAggregationCollectionr rWrX)r%r'r&rOrHrIrMrNraZis_changed_allowed_valuesZis_default_allowed_valuesZ"has_recommendations_allowed_valuesrZr[rrKr!r'r3r(r?s                       z5OperationsInsightsClient.summarize_addm_db_parametersc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vrrd d g} |d | vrrtd | d|vrgd} |d| vrtd| ||j|dtd|j|dtd|dt|dt|dt|dt|dt|dt|dt|dt|dt|dt|dt|d t|dt|j|dtd|j|d td|j|d!td|j|d"td|d#td$} d%d&t| D} d'd'|d(td)} d*d&t| D} |jj|d+|j d,} | d-ur t j } | r`t | t j s8|j| | |j| j|jj||| | d.|d/|||d0 S|jj||| | d.|d/|||d0 Sd-S)1a Summarizes ADDM recommendations for the specified databases. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str category_name: (optional) Optional value filter to match the finding category exactly. :param str finding_identifier: (optional) Unique finding ID :param str sql_identifier: (optional) Optional filter to return only resources whose sql id matches the value given. Only considered when categoryName is SQL_TUNING. :param str owner_or_name_contains: (optional) Optional filter to return only resources whose owner or name contains the substring given. The match is not case sensitive. Only considered when categoryName is SCHEMA_OBJECT. :param str name_contains: (optional) Optional filter to return only resources whose name contains the substring given. The match is not case sensitive. Only considered when categoryName is DATABASE_CONFIGURATION. :param str name: (optional) Optional filter to return only resources whose name exactly matches the substring given. The match is case sensitive. Only considered when categoryName is DATABASE_CONFIGURATION. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Field name for sorting the recommendation data Allowed values are: "maxBenefitPercent", "maxBenefitAvgActiveSessions", "frequencyCount" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AddmDbRecommendationAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_addm_db_recommendations API. r%z'/databaseInsights/addmDbRecommendationsr!summarize_addm_db_recommendationszrhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbRecommendations)r r!r.r/rr^r_r`finding_identifierrirjrkrrBrCrDrEr/rFrGrHrIrJcsg|]}|vr|qSr'r'r1r3r'r(r4pAr5zNOperationsInsightsClient.summarize_addm_db_recommendations..z6summarize_addm_db_recommendations got unknown kwargs: rDrKrLrMrE)ZmaxBenefitPercentZmaxBenefitAvgActiveSessionsrrNr.rr/rr^r_r`rrirjrkrrBrCrFrGrHrIrJ)r%r1r/r rcrdreZfindingIdentifierrlrmrnrrBrCrPrQrRrSrTrUrVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Ar5zNOperationsInsightsClient.summarize_addm_db_recommendations..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Ar5r!rFNZ)AddmDbRecommendationAggregationCollectionr rWrXrYr'r3r(r@s                     z:OperationsInsightsClient.summarize_addm_db_recommendationsc  sddg}d}d}d}d}gdfdd t|D} | rJtd | ||j|d td |j|d td |j|d |dt|dt|dt|dt|j|dtd |j|dtd |j|dtd |j|dtd |dtd } ddt| D} dd|dtd} ddt| D} |jj|d|j d} | d urlt j } | rt | t j s|j| | |j| j|jj||| | d!|d"|||d# S|jj||| | d!|d"|||d# Sd S)$a, Summarizes Schema objects for the specified databases for the specified objectIdentifiers :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param oci.opsi.models.list[int] object_identifier: (required) One or more unique Object id (from RDBMS) :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AddmDbSchemaObjectCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_addm_db_schema_objects API. r%objectIdentifierz%/databaseInsights/addmDbSchemaObjectsr summarize_addm_db_schema_objectszphttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbSchemaObjectsr r!r.r/r^r_rBrCr/rFrGrHrIrJcsg|]}|vr|qSr'r'r1r3r'r(r4CBr5zMOperationsInsightsClient.summarize_addm_db_schema_objects..z5summarize_addm_db_schema_objects got unknown kwargs: r.rr/r^r_rBrCrFrGrHrIrJ) r%r1r/rrcrdrBrCrRrSrTrUrVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;WBr5zMOperationsInsightsClient.summarize_addm_db_schema_objects..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;^Br5r!rFNZAddmDbSchemaObjectCollectionr rWrX) r%r'Zobject_identifierr&rOrHrIrMrNrarrKr!r'r3r(rAsg           z9OperationsInsightsClient.summarize_addm_db_schema_objectsc  sddg}d}d}d}d}gdfdd t|D} | rJtd | ||j|d td |j|d td |j|d |dt|dt|dt|dt|j|dtd |j|dtd |j|dtd |j|dtd |dtd } ddt| D} dd|dtd} ddt| D} |jj|d|j d} | d urlt j } | rt | t j s|j| | |j| j|jj||| | d!|d"|||d# S|jj||| | d!|d"|||d# Sd S)$aQ Summarizes SQL Statements for the specified databases for the specified sqlIdentifiers :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param oci.opsi.models.list[str] sql_identifier: (required) One or more unique SQL_IDs for a SQL Statement. Example: `6rgjh9bjmy2s7` :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AddmDbSqlStatementCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_addm_db_sql_statements API. r%rlz%/databaseInsights/addmDbSqlStatementsr summarize_addm_db_sql_statementszphttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbSqlStatementsrcsg|]}|vr|qSr'r'r1r3r'r(r4Cr5zMOperationsInsightsClient.summarize_addm_db_sql_statements..z5summarize_addm_db_sql_statements got unknown kwargs: r.rr/r^r_rBrCrFrGrHrIrJ) r%r1r/rlrcrdrBrCrRrSrTrUrVcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Cr5zMOperationsInsightsClient.summarize_addm_db_sql_statements..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Cr5r!rFNZAddmDbSqlStatementCollectionr rWrXrr'r3r(r Bsh           z9OperationsInsightsClient.summarize_addm_db_sql_statementsc sddg}d}d}d}d}gdfdd t|D} | rJtd | d|i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|vrgd} |d| vrtd| d|vrddg}|d|vrtd|d|vr4ddg}|d|vr4td|||dt |dt |dt |dt |d t |dt |d!t |d"t |dt |dt d# }d$d t|D}d%d%|d&t d'}d(d t|D}|j j |d)|j d*}|d urt j}|rZt|t js0|j |||j|j|j j||| ||d+|d,|||d- S|j j||| ||d+|d,|||d- Sd S).a Summarizes the AWR CPU resource limits and metrics for the specified database in AWR. Based on the time range provided as part of query param, the metrics points will be returned in the response as below. - if time range is <=7 days then the metrics points will be for every MINUTES - if time range is <=2 hours then the metrics points will be for every 10 SECONDS - if time range is >7 days then the metrics points will be for every HOUR. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str awr_source_database_identifier: (required) The internal ID of the database. The internal ID of the database is not the `OCID`__. It can be retrieved from the following endpoint: /awrHubs/{awrHubId}/awrDatabases __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param int begin_snapshot_identifier_greater_than_or_equal_to: (optional) The optional greater than or equal to filter on the snapshot ID. :param int end_snapshot_identifier_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the snapshot Identifier. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param str session_type: (optional) The optional query parameter to filter ASH activities by FOREGROUND or BACKGROUND. Allowed values are: "FOREGROUND", "BACKGROUND", "ALL" :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_by: (optional) The option to sort the AWR CPU usage summary data. Allowed values are: "TIME_SAMPLED", "AVG_VALUE" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrDatabaseCpuUsageCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_awr_database_cpu_usages API. rrz(/awrHubs/{awrHubId}/awrDatabaseCpuUsagesr!summarize_awr_database_cpu_usageszhhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseCpuUsages) r r!rrrrr session_typerCrBrErDr/csg|]}|vr|qSr'r'r1r3r'r(r4Cr5zNOperationsInsightsClient.summarize_awr_database_cpu_usages..z6summarize_awr_database_cpu_usages got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;Cr5zNOperationsInsightsClient.summarize_awr_database_cpu_usages..Nrr<r=r"Z FOREGROUNDZ BACKGROUNDZALL1Invalid value for `session_type`, must be one of rEZ TIME_SAMPLEDZ AVG_VALUErNrDrKrLrMrrrrrrCrB) rr r r r r  sessionTyperCrBrQrPcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Cr5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Cr5r!rFZAwrDatabaseCpuUsageCollectionr rrmr%rrr&rOrHrIrMrNrarJr9r:Zsession_type_allowed_valuesr[rZrrKr!r'r3r(r!@CsX$                   z:OperationsInsightsClient.summarize_awr_database_cpu_usagesc sXgd}d}d}d}d} gdfddt|D} | rJtd | d |i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|vrddg}|d|vrtd|d|vrddg}|d|vrtd|||dt |dt |dt |dt |dt |j |d|dt |d t |dt |dt d! }d"d t|D}d#d#|d$t d%}d&d t|D}|j j |d'|j d(}|d urtj}|r.t|tjs|j |||j|j|j j||| ||d)|d*|| |d+ S|j j||| ||d)|d*|| |d+ Sd S),a Summarizes the metric samples for the specified database in the AWR. The metric samples are summarized based on the Time dimension for each metric. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str awr_source_database_identifier: (required) The internal ID of the database. The internal ID of the database is not the `OCID`__. It can be retrieved from the following endpoint: /awrHubs/{awrHubId}/awrDatabases __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param oci.opsi.models.list[str] name: (required) The required multiple value query parameter to filter the entity name. :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param int begin_snapshot_identifier_greater_than_or_equal_to: (optional) The optional greater than or equal to filter on the snapshot ID. :param int end_snapshot_identifier_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the snapshot Identifier. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_by: (optional) The option to sort the AWR time series summary data. Allowed values are: "TIMESTAMP", "NAME" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrDatabaseMetricCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_awr_database_metrics API. rrrz&/awrHubs/{awrHubId}/awrDatabaseMetricsrsummarize_awr_database_metricszfhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseMetricsrrcsg|]}|vr|qSr'r'r1r3r'r(r4sDr5zKOperationsInsightsClient.summarize_awr_database_metrics..z3summarize_awr_database_metrics got unknown kwargs: rcSsi|]\}}|tur||qSr'r6r8r'r'r(r;|Dr5zKOperationsInsightsClient.summarize_awr_database_metrics..Nrr<r=rE TIMESTAMPrwrNrDrKrLrMrrrrrrrCrB rr r r r r rrCrBrQrPcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Dr5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Dr5r!rFZAwrDatabaseMetricCollectionr rrr%rrrr&rOrHrIrMrNrarJr9r:r[rZrrKr!r'r3r(r( DsR$                  z7OperationsInsightsClient.summarize_awr_database_metricsc sNgd}d}d}d}d} gdfddt|D} | rJtd | d |i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|vrddg}|d|vrtd|d|vrddg}|d|vrtd|||dt |dt |dt |dt |dt ||dt |dt |dt |dt d }d!d t|D}d"d"|d#t d$}d%d t|D}|j j |d&|j d'}|d urt j}|r$t|t js|j |||j|j|j j||| ||d(|d)|| |d* S|j j||| ||d(|d)|| |d* Sd S)+a@ Summarizes the database parameter change history for one database parameter of the specified database in AWR. One change history record contains the previous value, the changed value, and the corresponding time range. If the database parameter value was changed multiple times within the time range, then multiple change history records are created for the same parameter. Note that this API only returns information on change history details for one database parameter. To get a list of all the database parameters whose values were changed during a specified time range, use the following API endpoint: /awrHubs/{awrHubId}/awrDbParameters?awrSourceDatabaseIdentifier={awrSourceDbId} :param str awr_hub_id: (required) Unique Awr Hub identifier :param str awr_source_database_identifier: (required) The internal ID of the database. The internal ID of the database is not the `OCID`__. It can be retrieved from the following endpoint: /awrHubs/{awrHubId}/awrDatabases __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str name: (required) The required single value query parameter to filter the entity name. :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param int begin_snapshot_identifier_greater_than_or_equal_to: (optional) The optional greater than or equal to filter on the snapshot ID. :param int end_snapshot_identifier_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the snapshot Identifier. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_by: (optional) The option to sort the AWR database parameter change history data. Allowed values are: "IS_CHANGED", "NAME" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrDatabaseParameterChangeCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_awr_database_parameter_changes API. r'z//awrHubs/{awrHubId}/awrDatabaseParameterChangesr(summarize_awr_database_parameter_changeszohttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseParameterChangesrrcsg|]}|vr|qSr'r'r1r3r'r(r45Er5zUOperationsInsightsClient.summarize_awr_database_parameter_changes..z=summarize_awr_database_parameter_changes got unknown kwargs: rcSsi|]\}}|tur||qSr'r6r8r'r'r(r;>Er5zUOperationsInsightsClient.summarize_awr_database_parameter_changes..Nrr<r=rE IS_CHANGEDrwrNrDrKrLrMrrrrrrCrBr*cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;_Er5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;fEr5r!rFZ$AwrDatabaseParameterChangeCollectionr rrmr+r'r3r(r,DsV$                 zAOperationsInsightsClient.summarize_awr_database_parameter_changesc sddg}d}d}d}d}gdfdd t|D} | rJtd | d|i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|vrddg} |d| vrtd| d|vrddg}|d|vrtd|d|vr4gd}|d|vr4td|d|vrbddg}|d|vrbtd|d |vrd!d"g}|d |vrtd#|||d$t |d%t |d&t |d't |d(t |j |d)t d*|d+t |dt |dt |dt |d,t |d-t |dt |d t d.}d/d t|D}d0d0|d1t d2}d3d t|D}|j j |d4|j d5}|d urtj}|rt|tjs|j |||j|j|j j||| ||d6|d7|||d8 S|j j||| ||d6|d7|||d8 Sd S)9a Summarizes the database parameter history for the specified database in AWR. This includes the list of database parameters, with information on whether the parameter values were modified within the query time range. Note that each database parameter is only listed once. Depending on the optional query parameters, the returned summary gets all the database parameters, which include: Queryparam (valueChanged ="Y") - Each parameter whose value was changed during the time range, "isChanged : true" in response for the DB params. Queryparam (valueChanged ="N") - Each parameter whose value was unchanged during the time range, "isChanged : false" in response for the DB params. Queryparam (valueChanged ="Y" and valueModified = "SYSTEM_MOD") - Each parameter whose value was changed at the system level during the time range, "isChanged : true" & "valueModified : SYSTEM_MOD" in response for the DB params. Queryparam (valueChanged ="N" and valueDefault = "FALSE") - Each parameter whose value was unchanged during the time range, however, the value is not the default value, "isChanged : true" & "isDefault : false" in response for the DB params. Note that this API does not return information on the number of times each database parameter has been changed within the time range. To get the database parameter value change history for a specific parameter, use the following API endpoint: /awrHubs/{awrHubId}/awrDbParameterChanges?awrSourceDatabaseIdentifier={awrSourceDbId} :param str awr_hub_id: (required) Unique Awr Hub identifier :param str awr_source_database_identifier: (required) The internal ID of the database. The internal ID of the database is not the `OCID`__. It can be retrieved from the following endpoint: /awrHubs/{awrHubId}/awrDatabases __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param int begin_snapshot_identifier_greater_than_or_equal_to: (optional) The optional greater than or equal to filter on the snapshot ID. :param int end_snapshot_identifier_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the snapshot Identifier. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param list[str] name: (optional) The optional multiple value query parameter to filter the entity name. :param str name_contains: (optional) The optional contains query parameter to filter the entity name by any part of the name. :param str value_changed: (optional) The optional query parameter to filter database parameters whose values were changed. Allowed values are: "Y", "N" :param str value_default: (optional) The optional query parameter to filter the database parameters that had the default value in the last snapshot. Allowed values are: "TRUE", "FALSE" :param str value_modified: (optional) The optional query parameter to filter the database parameters that had a modified value in the last snapshot. Allowed values are: "MODIFIED", "SYSTEM_MOD", "FALSE" :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_by: (optional) The option to sort the AWR database parameter change history data. Allowed values are: "IS_CHANGED", "NAME" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrDatabaseParameterCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_awr_database_parameters API. rrz)/awrHubs/{awrHubId}/awrDatabaseParametersr!summarize_awr_database_parameterszihttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseParameters)r r!rrrrrrrk value_changed value_defaultvalue_modifiedrCrBrErDr/csg|]}|vr|qSr'r'r1r3r'r(r4Fr5zNOperationsInsightsClient.summarize_awr_database_parameters..z6summarize_awr_database_parameters got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;Fr5zNOperationsInsightsClient.summarize_awr_database_parameters..Nrr<r=r/YNz2Invalid value for `value_changed`, must be one of r0rrz2Invalid value for `value_default`, must be one of r1)ZMODIFIEDZ SYSTEM_MODrz3Invalid value for `value_modified`, must be one of rEr-rwrNrDrKrLrMrrrrrrrrkrCrB)rr r r r r rrnZ valueChangedZ valueDefaultZ valueModifiedrCrBrQrPcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;WFr5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;^Fr5r!rFZAwrDatabaseParameterCollectionr rr)r%rrr&rOrHrIrMrNrarJr9r:Zvalue_changed_allowed_valuesZvalue_default_allowed_valuesZvalue_modified_allowed_valuesr[rZrrKr!r'r3r(r.Esn$                       z:OperationsInsightsClient.summarize_awr_database_parametersc s4dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqnd|vrddg} |d| vrtd| d|vrddg} |d| vrtd| |dt |dt |dt |dt |dt |dt |dt d}dd t|D}dd|d t d!}d"d t|D}|j j |d#|j d$}|d urt j}|r t|t js|j |||j|j|j j||| ||d%|d&|||d' S|j j||| ||d%|d&|||d' Sd S)(a{ Summarizes the AWR snapshot ranges that contain continuous snapshots, for the specified AWRHub. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str name: (optional) The optional single value query parameter to filter the entity name. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_by: (optional) The option to sort the AWR summary data. Allowed values are: "END_INTERVAL_TIME", "NAME" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrDatabaseSnapshotRangeCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_awr_database_snapshot_ranges API. rz-/awrHubs/{awrHubId}/awrDatabaseSnapshotRangesr&summarize_awr_database_snapshot_rangeszmhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseSnapshotRangesrucsg|]}|vr|qSr'r'r1r3r'r(r4Fr5zSOperationsInsightsClient.summarize_awr_database_snapshot_ranges..z;summarize_awr_database_snapshot_ranges got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;Fr5zSOperationsInsightsClient.summarize_awr_database_snapshot_ranges..Nrr<r=rErvrwrNrDrKrLrMrrrrCrBrxcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Fr5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Gr5r!rFZ"AwrDatabaseSnapshotRangeCollectionr rrmryr'r3r(r4FsB $               z?OperationsInsightsClient.summarize_awr_database_snapshot_rangesc sXgd}d}d}d}d} gdfddt|D} | rJtd | d |i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|vrddg}|d|vrtd|d|vrddg}|d|vrtd|||dt |dt |dt |dt |dt |j |d|dt |d t |dt |dt d! }d"d t|D}d#d#|d$t d%}d&d t|D}|j j |d'|j d(}|d urtj}|r.t|tjs|j |||j|j|j j||| ||d)|d*|| |d+ S|j j||| ||d)|d*|| |d+ Sd S),a Summarizes the AWR SYSSTAT sample data for the specified database in AWR. The statistical data is summarized based on the Time dimension for each statistic. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str awr_source_database_identifier: (required) The internal ID of the database. The internal ID of the database is not the `OCID`__. It can be retrieved from the following endpoint: /awrHubs/{awrHubId}/awrDatabases __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param oci.opsi.models.list[str] name: (required) The required multiple value query parameter to filter the entity name. :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param int begin_snapshot_identifier_greater_than_or_equal_to: (optional) The optional greater than or equal to filter on the snapshot ID. :param int end_snapshot_identifier_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the snapshot Identifier. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_by: (optional) The option to sort the data within a time period. Allowed values are: "TIME_BEGIN", "NAME" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrDatabaseSysstatCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_awr_database_sysstats API. r'z'/awrHubs/{awrHubId}/awrDatabaseSysstatsrsummarize_awr_database_sysstatszghttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseSysstatsrrcsg|]}|vr|qSr'r'r1r3r'r(r4Gr5zLOperationsInsightsClient.summarize_awr_database_sysstats..z4summarize_awr_database_sysstats got unknown kwargs: rcSsi|]\}}|tur||qSr'r6r8r'r'r(r;Gr5zLOperationsInsightsClient.summarize_awr_database_sysstats..Nrr<r=rErsrwrNrDrKrLrMrrrrrrrCrBr*cSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Gr5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Gr5r!rFZAwrDatabaseSysstatCollectionr rrr+r'r3r(r5,GsR$                  z8OperationsInsightsClient.summarize_awr_database_sysstatsc szddg}d}d}d}d}gdfdd t|D} | rJtd | d|i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|vrgd} |d| vrtd| d|vrddg}|d|vrtd|d|vr4ddg}|d|vr4td|||dt |dt |dt |dt |d t |dt |d!t |dt |dt d" }d#d t|D}d$d$|d%t d&}d'd t|D}|j j |d(|j d)}|d urt j}|rPt|t js&|j |||j|j|j j||| ||d*|d+|||d, S|j j||| ||d*|d+|||d, Sd S)-a Summarizes the AWR top wait events. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str awr_source_database_identifier: (required) The internal ID of the database. The internal ID of the database is not the `OCID`__. It can be retrieved from the following endpoint: /awrHubs/{awrHubId}/awrDatabases __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param int begin_snapshot_identifier_greater_than_or_equal_to: (optional) The optional greater than or equal to filter on the snapshot ID. :param int end_snapshot_identifier_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the snapshot Identifier. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param str session_type: (optional) The optional query parameter to filter ASH activities by FOREGROUND or BACKGROUND. Allowed values are: "FOREGROUND", "BACKGROUND", "ALL" :param int top_n: (optional) The optional query parameter to filter the number of top categories to be returned. :param str sort_by: (optional) The option to sort the AWR top event summary data. Allowed values are: "WAITS_PERSEC", "AVG_WAIT_TIME_PERSEC" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrDatabaseTopWaitEventCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_awr_database_top_wait_events API. rrz,/awrHubs/{awrHubId}/awrDatabaseTopWaitEventsr&summarize_awr_database_top_wait_eventszlhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseTopWaitEvents) r r!rrrrrr"top_nrErDr/csg|]}|vr|qSr'r'r1r3r'r(r4FHr5zSOperationsInsightsClient.summarize_awr_database_top_wait_events..z;summarize_awr_database_top_wait_events got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;OHr5zSOperationsInsightsClient.summarize_awr_database_top_wait_events..Nrr<r=r"r#r$rEZ WAITS_PERSECZAVG_WAIT_TIME_PERSECrNrDrKrLrMrrrrrr7) rr r r r r r%ZtopNrQrPcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;vHr5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;}Hr5r!rFZ!AwrDatabaseTopWaitEventCollectionr rrmr&r'r3r(r6GsG$                  z?OperationsInsightsClient.summarize_awr_database_top_wait_eventsc slgd}d}d}d}d} gdfddt|D} | rJtd | d |i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|vrddg}|d|vrtd|d|vrddg}|d|vrtd|||dt |dt |dt |dt |dt ||dt |dt |d t |d!t |d"t |dt |dt d#}d$d t|D}d%d%|d&t d'}d(d t|D}|j j |d)|j d*}|d urt j}|rBt|t js|j |||j|j|j j||| ||d+|d,|| |d- S|j j||| ||d+|d,|| |d- Sd S).a Summarizes AWR wait event data into value buckets and frequency, for the specified database in the AWR. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str awr_source_database_identifier: (required) The internal ID of the database. The internal ID of the database is not the `OCID`__. It can be retrieved from the following endpoint: /awrHubs/{awrHubId}/awrDatabases __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str name: (required) The required single value query parameter to filter the entity name. :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param int begin_snapshot_identifier_greater_than_or_equal_to: (optional) The optional greater than or equal to filter on the snapshot ID. :param int end_snapshot_identifier_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the snapshot Identifier. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param int num_bucket: (optional) The number of buckets within the histogram. :param float min_value: (optional) The minimum value of the histogram. :param float max_value: (optional) The maximum value of the histogram. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_by: (optional) The option to sort distribution data. Allowed values are: "CATEGORY", "PERCENTAGE" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrDatabaseWaitEventBucketCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_awr_database_wait_event_buckets API. r'z//awrHubs/{awrHubId}/awrDatabaseWaitEventBucketsr)summarize_awr_database_wait_event_bucketszohttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseWaitEventBuckets)r r!rrrrr num_bucket min_value max_valuerCrBrErDr/csg|]}|vr|qSr'r'r1r3r'r(r4Ir5zVOperationsInsightsClient.summarize_awr_database_wait_event_buckets..z>summarize_awr_database_wait_event_buckets got unknown kwargs: rcSsi|]\}}|tur||qSr'r6r8r'r'r(r;Ir5zVOperationsInsightsClient.summarize_awr_database_wait_event_buckets..Nrr<r=rECATEGORYZ PERCENTAGErNrDrKrLrMrrrrrr9r:r;rCrB)rr r r r r rZ numBucketZminValueZmaxValuerCrBrQrPcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;CIr5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;JIr5r!rFZ$AwrDatabaseWaitEventBucketCollectionr rrmr+r'r3r(r8Hs[$                   zBOperationsInsightsClient.summarize_awr_database_wait_event_bucketsc sddg}d}d}d}d}gdfdd t|D} | rJtd | d|i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|vrgd} |d| vrtd| d|vrddg}|d|vrtd|d|vr4ddg}|d|vr4td|||dt |dt |dt |dt |d t |j |d!t d"|dt |d#t |d$t |dt |dt d% }d&d t|D}d'd'|d(t d)}d*d t|D}|j j |d+|j d,}|d urtj}|rnt|tjsD|j |||j|j|j j||| ||d-|d.|||d/ S|j j||| ||d-|d.|||d/ Sd S)0a Summarizes the AWR wait event sample data for the specified database in the AWR. The event data is summarized based on the Time dimension for each event. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str awr_source_database_identifier: (required) The internal ID of the database. The internal ID of the database is not the `OCID`__. It can be retrieved from the following endpoint: /awrHubs/{awrHubId}/awrDatabases __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str instance_number: (optional) The optional single value query parameter to filter by database instance number. :param int begin_snapshot_identifier_greater_than_or_equal_to: (optional) The optional greater than or equal to filter on the snapshot ID. :param int end_snapshot_identifier_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the snapshot Identifier. :param datetime time_greater_than_or_equal_to: (optional) The optional greater than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param datetime time_less_than_or_equal_to: (optional) The optional less than or equal to query parameter to filter the timestamp. The timestamp format to be followed is: YYYY-MM-DDTHH:MM:SSZ, example 2020-12-03T19:00:53Z :param list[str] name: (optional) The optional multiple value query parameter to filter the entity name. :param str session_type: (optional) The optional query parameter to filter ASH activities by FOREGROUND or BACKGROUND. Allowed values are: "FOREGROUND", "BACKGROUND", "ALL" :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_by: (optional) The option to sort the data within a time period. Allowed values are: "TIME_BEGIN", "NAME" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.AwrDatabaseWaitEventCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_awr_database_wait_events API. rrz)/awrHubs/{awrHubId}/awrDatabaseWaitEventsr"summarize_awr_database_wait_eventszihttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseWaitEvents)r r!rrrrrrr"rCrBrErDr/csg|]}|vr|qSr'r'r1r3r'r(r4Ir5zOOperationsInsightsClient.summarize_awr_database_wait_events..z7summarize_awr_database_wait_events got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;Ir5zOOperationsInsightsClient.summarize_awr_database_wait_events..Nrr<r=r"r#r$rErsrwrNrDrKrLrMrrrrrrrrCrB) rr r r r r rr%rCrBrQrPcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Jr5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Jr5r!rFZAwrDatabaseWaitEventCollectionr rrr&r'r3r(r=pIsW$                  z;OperationsInsightsClient.summarize_awr_database_wait_eventsc s*dg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqnd|vrddg} |d| vrtd| d|vrddg} |d| vrtd| |dt |dt |dt |dt |dt |dt d}dd t|D}dd|dt d}d d t|D}|j j |d!|j d"}|d urt j}|rt|t js|j |||j|j|j j||| ||d#|d$|||d% S|j j||| ||d#|d$|||d% Sd S)&a Gets a list of summary of AWR Sources. :param str awr_hub_id: (required) Unique Awr Hub identifier :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str name: (optional) Name for an Awr source database :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_by: (optional) The order in which Awr sources summary records are listed Allowed values are: "snapshotsUploaded", "name" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeAwrSourcesSummariesCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_awr_sources_summaries API. rz%/awrHubs/{awrHubId}/awrSourcesSummaryrsummarize_awr_sources_summarieszghttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrSourcesSummaries) r r!r'rrBrCrErDr/csg|]}|vr|qSr'r'r1r3r'r(r4Jr5zLOperationsInsightsClient.summarize_awr_sources_summaries..z4summarize_awr_sources_summaries got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;Jr5zLOperationsInsightsClient.summarize_awr_sources_summaries..Nrr<r=rEZsnapshotsUploadedrrNrDrKrLrMr'rBrC)r%rrBrCrQrPcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Jr5r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Jr5r!rFZ&SummarizeAwrSourcesSummariesCollectionr rrmryr'r3r(r>=JsA $             z8OperationsInsightsClient.summarize_awr_sources_summariesc sg}d}d}d}d}gdfddt|D}|rFtd|d |vrnd g}|d |vrntd |d |vrgd } |d D]} | | vrtd| q|dt|d t|dt|dt|j|dtd|j|d td|dtd} ddt| D} dd|dtd} ddt| D} |jj|d|j d} | durft j } | rt | t j s|j| | |j| j|jj||| | d|d |||d! S|jj||| | d|d |||d! SdS)"a Gets the applicable configuration items based on the query parameters specified. Configuration items for an opsiConfigType with respect to a compartmentId can be fetched. Values specified in configItemField param will determine what fields for each configuration items have to be returned. :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str opsi_config_type: (optional) Filter to return configuration items based on configuration type of OPSI configuration. Allowed values are: "UX_CONFIGURATION" :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param list[str] config_items_applicable_context: (optional) Returns the configuration items filtered by applicable contexts sent in this param. By default configuration items of all applicable contexts are returned. :param list[str] config_item_field: (optional) Specifies the fields to return in a config item summary. Allowed values are: "name", "value", "defaultValue", "valueSourceConfig", "metadata", "applicableContexts" :param str name: (optional) A filter to return only configuration items that match the entire name. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.ConfigurationItemsCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_configuration_items API. z&/opsiConfigurations/configurationItemsrsummarize_configuration_itemszqhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/SummarizeConfigurationItems) r r!r'rrBrCrrrr/csg|]}|vr|qSr'r'r1r3r'r(r47Kr5zJOperationsInsightsClient.summarize_configuration_items..z2summarize_configuration_items got unknown kwargs: rrrr)rrrZvalueSourceConfigrrrr'rBrCrrr)r%rrBrCrrrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;TKr5zJOperationsInsightsClient.summarize_configuration_items..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;[Kr5r!rFNZConfigurationItemsCollectionr rWr)r%r&rOrHrIrMrNrarrrrrKr!r'r3r(r?JsB              z6OperationsInsightsClient.summarize_configuration_itemsc s:ddg}d}d}d}d}gdfdd t|D} | rJtd | d |vr~gd } |d D]} | | vrbtd | qbd|vrgd} |d| vrtd| d|vrddg} |d| vrtd| d|vrgd}|d|vrtd||||dt|dt|dt|j|d td|j|dtd|j|dtd|j|dtd|j|dtd|dt|d t|dt|dt|d!t|j|d"td|d#t|j|d$td|j|d%td|j|d&td|j|d'td|d(t|j|d)td|d*t|d+td,}d-d.t|D}d/d/|d0td1}d2d.t|D}|jj|d3|j d4}|d5urt j }|rt |t j s|j|||j|j|jj||||d6|d7|||d8 S|jj||||d6|d7|||d8 Sd5S)9a$ Returns response with time series data (endTimestamp, capacity, baseCapacity) for the time period specified. The maximum time range for analysis is 2 years, hence this is intentionally not paginated. If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Filter by resource metric. Supported values are CPU , STORAGE, MEMORY and IO. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] database_type: (optional) Filter by one or more database type. Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB. Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param str utilization_level: (optional) Filter by utilization level by the following buckets: - HIGH_UTILIZATION: DBs with utilization greater or equal than 75. - LOW_UTILIZATION: DBs with utilization lower than 25. - MEDIUM_HIGH_UTILIZATION: DBs with utilization greater or equal than 50 but lower than 75. - MEDIUM_LOW_UTILIZATION: DBs with utilization greater or equal than 25 but lower than 50. Allowed values are: "HIGH_UTILIZATION", "LOW_UTILIZATION", "MEDIUM_HIGH_UTILIZATION", "MEDIUM_LOW_UTILIZATION" :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Sorts using end timestamp , capacity or baseCapacity Allowed values are: "endTimestamp", "capacity", "baseCapacity" :param str tablespace_name: (optional) Tablespace name for a database :param list[str] host_name: (optional) Filter by one or more hostname. :param bool is_database_instance_level_metrics: (optional) Flag to indicate if database instance level metrics should be returned. The flag is ignored when a host name filter is not applied. When a hostname filter is applied this flag will determine whether to return metrics for the instances located on the specified host or for the whole database which contains an instance on this host. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param int high_utilization_threshold: (optional) Percent value in which a resource metric is considered highly utilized. :param int low_utilization_threshold: (optional) Percent value in which a resource metric is considered low utilized. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_database_insight_resource_capacity_trend API. r%resourceMetricz'/databaseInsights/resourceCapacityTrendr2summarize_database_insight_resource_capacity_trendzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceCapacityTrend)r r!rr^r_rr.r/r`rutilization_levelrCrDrEtablespace_namer"is_database_instance_level_metricsr/rFrGrHrIrJrhigh_utilization_thresholdlow_utilization_thresholdcsg|]}|vr|qSr'r'r1r3r'r(r4>Lr5z_OperationsInsightsClient.summarize_database_insight_resource_capacity_trend..zGsummarize_database_insight_resource_capacity_trend got unknown kwargs: rrrrBZHIGH_UTILIZATIONZLOW_UTILIZATIONZMEDIUM_HIGH_UTILIZATIONZMEDIUM_LOW_UTILIZATION6Invalid value for `utilization_level`, must be one of rDrKrLrMrE) endTimestampcapacityZ baseCapacityrNrr^r_rr.r/r`rrCrCrrDrFrGrHrIrJrrErF)r%r@rrcrdrr1r/r*rutilizationLevelrCrPrQtablespaceNamerisDatabaseInstanceLevelMetricsrRrSrTrUrVrhighUtilizationThresholdlowUtilizationThresholdcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;{Lr5z_OperationsInsightsClient.summarize_database_insight_resource_capacity_trend..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Lr5r!rFNZBSummarizeDatabaseInsightResourceCapacityTrendAggregationCollectionr rWr)r%r'resource_metricr&rOrHrIrMrNrarr utilization_level_allowed_valuesrZr[rrKr!r'r3r(rAKs                     zKOperationsInsightsClient.summarize_database_insight_resource_capacity_trendc sNddg}d}d}d}d}gdfdd t|D} | rJtd | d |vr~gd } |d D]} | | vrbtd | qbd|vrddg} |d| vrtd| d|vrgd} |d| vrtd| d|vrgd}|d|vrtd||||dt|dt|dt|j|d td|j|dtd|j|dtd|j|dtd|j|dtd|dt|d t|dt|dt|d!t|d"t|j|d#td|d$t|d%t|j|d&td|j|d'td|j|d(td|j|d)td|d*t|j|d+td|d,t|d-td.}d/d0t|D}d1d1|d2td3}d4d0t|D}|jj|d5|j d6}|d7urt j }|r&t |t j s|j|||j|j|jj||||d8|d9|||d: S|jj||||d8|d9|||d: Sd7S);aV' Get Forecast predictions for CPU and Storage resources since a time in the past. If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Filter by resource metric. Supported values are CPU , STORAGE, MEMORY and IO. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] database_type: (optional) Filter by one or more database type. Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB. Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param str statistic: (optional) Choose the type of statistic metric data to be used for forecasting. Allowed values are: "AVG", "MAX" :param int forecast_days: (optional) Number of days used for utilization forecast analysis. :param str forecast_model: (optional) Choose algorithm model for the forecasting. Possible values: - LINEAR: Uses linear regression algorithm for forecasting. - ML_AUTO: Automatically detects best algorithm to use for forecasting. - ML_NO_AUTO: Automatically detects seasonality of the data for forecasting using linear or seasonal algorithm. Allowed values are: "LINEAR", "ML_AUTO", "ML_NO_AUTO" :param str utilization_level: (optional) Filter by utilization level by the following buckets: - HIGH_UTILIZATION: DBs with utilization greater or equal than 75. - LOW_UTILIZATION: DBs with utilization lower than 25. - MEDIUM_HIGH_UTILIZATION: DBs with utilization greater or equal than 50 but lower than 75. - MEDIUM_LOW_UTILIZATION: DBs with utilization greater or equal than 25 but lower than 50. Allowed values are: "HIGH_UTILIZATION", "LOW_UTILIZATION", "MEDIUM_HIGH_UTILIZATION", "MEDIUM_LOW_UTILIZATION" :param int confidence: (optional) This parameter is used to change data's confidence level, this data is ingested by the forecast algorithm. Confidence is the probability of an interval to contain the expected population parameter. Manipulation of this value will lead to different results. If not set, default confidence value is 95%. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param list[str] host_name: (optional) Filter by one or more hostname. :param str tablespace_name: (optional) Tablespace name for a database :param bool is_database_instance_level_metrics: (optional) Flag to indicate if database instance level metrics should be returned. The flag is ignored when a host name filter is not applied. When a hostname filter is applied this flag will determine whether to return metrics for the instances located on the specified host or for the whole database which contains an instance on this host. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param int high_utilization_threshold: (optional) Percent value in which a resource metric is considered highly utilized. :param int low_utilization_threshold: (optional) Percent value in which a resource metric is considered low utilized. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeDatabaseInsightResourceForecastTrendAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_database_insight_resource_forecast_trend API. r%r@z'/databaseInsights/resourceForecastTrendr2summarize_database_insight_resource_forecast_trendzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceForecastTrend)r r!rr^r_rr.r/r`r statistic forecast_daysforecast_modelrB confidencerCrrCrDr/rFrGrHrIrJrrErFcsg|]}|vr|qSr'r'r1r3r'r(r4tMr5z_OperationsInsightsClient.summarize_database_insight_resource_forecast_trend..zGsummarize_database_insight_resource_forecast_trend got unknown kwargs: rrrrSAVGMAX.Invalid value for `statistic`, must be one of rUZLINEARZML_AUTOZ ML_NO_AUTO3Invalid value for `forecast_model`, must be one of rBrGrHrr^r_rr.r/r`rrTrVrCrrCrDrFrGrHrIrJrrErF)r%r@rrcrdrr1r/r*rrS forecastDays forecastModelrKrVrCrrLrMrRrSrTrUrVrrNrOcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Mr5z_OperationsInsightsClient.summarize_database_insight_resource_forecast_trend..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Mr5r!rFNZ8SummarizeDatabaseInsightResourceForecastTrendAggregationr rWr)r%r'rPr&rOrHrIrMrNrarrstatistic_allowed_valuesforecast_model_allowed_valuesrQrrKr!r'r3r(rRLs*                       zKOperationsInsightsClient.summarize_database_insight_resource_forecast_trendc s$ddg}d}d}d}d}gdfdd t|D} | rJtd | d |vr~gd } |d D]} | | vrbtd | qbd|vrddg} |d| vrtd| d|vrgd} |d| vrtd| |||dt|dt|dt|j|d td|j|dtd|j|dtd|j|dtd|j|dtd|dt|dt|dt|d t|d!t|dt|dt|j|d"td|d#t|j|d$td|j|d%td|j|d&td|j|d'td|d(t|j|d)td|d*t|d+td,}d-d.t|D}d/d/|d0td1}d2d.t|D}|jj|d3|j d4}|d5urt j }|rt |t j s|j|||j|j|jj||||d6|d7|||d8 S|jj||||d6|d7|||d8 Sd5S)9a)% Lists the Resource statistics (usage,capacity, usage change percent, utilization percent, base capacity, isAutoScalingEnabled) for each database filtered by utilization level in a compartment and in all sub-compartments if specified. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Filter by resource metric. Supported values are CPU , STORAGE, MEMORY and IO. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] database_type: (optional) Filter by one or more database type. Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB. Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param int percentile: (optional) Percentile values of daily usage to be used for computing the aggregate resource usage. :param str insight_by: (optional) Return data of a specific insight Possible values are High Utilization, Low Utilization, Any ,High Utilization Forecast, Low Utilization Forecast :param int forecast_days: (optional) Number of days used for utilization forecast analysis. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The order in which resource statistics records are listed Allowed values are: "utilizationPercent", "usage", "usageChangePercent", "databaseName", "databaseType" :param list[str] host_name: (optional) Filter by one or more hostname. :param bool is_database_instance_level_metrics: (optional) Flag to indicate if database instance level metrics should be returned. The flag is ignored when a host name filter is not applied. When a hostname filter is applied this flag will determine whether to return metrics for the instances located on the specified host or for the whole database which contains an instance on this host. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param int high_utilization_threshold: (optional) Percent value in which a resource metric is considered highly utilized. :param int low_utilization_threshold: (optional) Percent value in which a resource metric is considered low utilized. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeDatabaseInsightResourceStatisticsAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_database_insight_resource_statistics API. r%r@z$/databaseInsights/resourceStatisticsr.summarize_database_insight_resource_statisticsz~https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceStatistics)r r!rr^r_rr.r/r`r percentile insight_byrTrBrCrDrErrDr/rFrGrHrIrJrrErFcsg|]}|vr|qSr'r'r1r3r'r(r4Nr5z[OperationsInsightsClient.summarize_database_insight_resource_statistics..zCsummarize_database_insight_resource_statistics got unknown kwargs: rrrrDrKrLrMrE)utilizationPercentusageusageChangePercentrprrNrr^r_rr.r/r`rrarbrTrBrCrrDrFrGrHrIrJrrErF)r%r@rrcrdrr1r/r*rra insightByr\rBrCrPrQrrMrRrSrTrUrVrrNrOcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Nr5z[OperationsInsightsClient.summarize_database_insight_resource_statistics..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Nr5r!rFNZ?SummarizeDatabaseInsightResourceStatisticsAggregationCollectionr rWrr%r'rPr&rOrHrIrMrNrarrrZr[rrKr!r'r3r(r`Ms$                      zGOperationsInsightsClient.summarize_database_insight_resource_statisticsc sddg}d}d}d}d}gdfdd t|D} | rJtd | d |vr~gd } |d D]} | | vrbtd | qb|||dt|dt|dt|j|d td|j|dtd|j|dtd|j|dtd|j|dtd|dt|dt|dt|j|dtd|j|dtd|j|dtd|j|dtd|dt|j|dtd|j|dtdd } d!d"t| D} d#d#|d$td%} d&d"t| D} |jj|d'|j d(}|d)urt j }|rbt |t j s:|j| ||j|j|jj||| | d*|d+|||d, S|jj||| | d*|d+|||d, Sd)S)-a] A cumulative distribution function is used to rank the usage data points per database within the specified time period. For each database, the minimum data point with a ranking > the percentile value is included in the summation. Linear regression functions are used to calculate the usage change percentage. If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Filter by resource metric. Supported values are CPU , STORAGE, MEMORY and IO. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] database_type: (optional) Filter by one or more database type. Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB. Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] host_name: (optional) Filter by one or more hostname. :param bool is_database_instance_level_metrics: (optional) Flag to indicate if database instance level metrics should be returned. The flag is ignored when a host name filter is not applied. When a hostname filter is applied this flag will determine whether to return metrics for the instances located on the specified host or for the whole database which contains an instance on this host. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int percentile: (optional) Percentile values of daily usage to be used for computing the aggregate resource usage. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeDatabaseInsightResourceUsageAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_database_insight_resource_usage API. r%r@z&/databaseInsights/resourceUsageSummaryr)summarize_database_insight_resource_usagezyhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceUsage)r r!rr^r_rr.r/r`rrDrCrar/rFrGrHrIrJrrcsg|]}|vr|qSr'r'r1r3r'r(r4Or5zVOperationsInsightsClient.summarize_database_insight_resource_usage..z>summarize_database_insight_resource_usage got unknown kwargs: rrrrr^r_rr.r/r`rrDrCrarFrGrHrIrJrr)r%r@rrcrdrr1r/r*rrMrCrarRrSrTrUrVrrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Or5zVOperationsInsightsClient.summarize_database_insight_resource_usage..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Or5r!rFNZ0SummarizeDatabaseInsightResourceUsageAggregationr rWrr%r'rPr&rOrHrIrMrNrarrrrKr!r'r3r(rh Os             zBOperationsInsightsClient.summarize_database_insight_resource_usagec sddg}d}d}d}d}gdfdd t|D} | rJtd | d |vr~gd } |d D]} | | vrbtd | qbd|vrddg} |d| vrtd| d|vrgd} |d| vrtd| |||dt|dt|dt|j|d td|j|dtd|j|dtd|j|dtd|dt|dt|dt|j|dtd|dt|j|dtd|j|d td|j|d!td|j|d"td|d#t|j|d$td|j|d%tdd&}d'd(t|D}d)d)|d*td+}d,d(t|D}|jj|d-|j d.}|d/urlt j }|rt |t j s|j|||j|j|jj||||d0|d1|||d2 S|jj||||d0|d1|||d2 Sd/S)3a Returns response with time series data (endTimestamp, usage, capacity) for the time period specified. The maximum time range for analysis is 2 years, hence this is intentionally not paginated. If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Filter by resource metric. Supported values are CPU , STORAGE, MEMORY and IO. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] database_type: (optional) Filter by one or more database type. Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB. Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Sorts using end timestamp, usage or capacity Allowed values are: "endTimestamp", "usage", "capacity" :param list[str] host_name: (optional) Filter by one or more hostname. :param bool is_database_instance_level_metrics: (optional) Flag to indicate if database instance level metrics should be returned. The flag is ignored when a host name filter is not applied. When a hostname filter is applied this flag will determine whether to return metrics for the instances located on the specified host or for the whole database which contains an instance on this host. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeDatabaseInsightResourceUsageTrendAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_database_insight_resource_usage_trend API. r%r@z$/databaseInsights/resourceUsageTrendr/summarize_database_insight_resource_usage_trendz~https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceUsageTrend)r r!rr^r_rr.r/r`rCrDrErrDr/rFrGrHrIrJrrcsg|]}|vr|qSr'r'r1r3r'r(r4Pr5z\OperationsInsightsClient.summarize_database_insight_resource_usage_trend..zDsummarize_database_insight_resource_usage_trend got unknown kwargs: rrrrDrKrLrMrErIrdrJrNrr^r_rr.r/r`rCrrDrFrGrHrIrJrr)r%r@rrcrdrr1r/r*rCrPrQrrMrRrSrTrUrVrrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Pr5z\OperationsInsightsClient.summarize_database_insight_resource_usage_trend..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Pr5r!rFNZ?SummarizeDatabaseInsightResourceUsageTrendAggregationCollectionr rWrrgr'r3r(rjOs                 zHOperationsInsightsClient.summarize_database_insight_resource_usage_trendc sddg}d}d}d}d}gdfdd t|D} | rJtd | d |vr~gd } |d D]} | | vrbtd | qb|||dt|dt|dt|j|d td|j|dtd|j|dtd|j|dtd|dt|j|dtd|dt|dt|j|dtd|j|dtd|j|dtd|j|dtd|dt|j|dtd|j|dtd|d t|d!td"} d#d$t| D} d%d%|d&td'} d(d$t| D} |jj|d)|j d*}|d+ur"t j }|rvt |t j sN|j| ||j|j|jj||| | d,|d-|||d. S|jj||| | d,|d-|||d. Sd+S)/a Gets resources with current utilization (high and low) and projected utilization (high and low) for a resource type over specified time period. If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Filter by resource metric. Supported values are CPU , STORAGE, MEMORY and IO. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] database_type: (optional) Filter by one or more database type. Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB. Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param int forecast_days: (optional) Number of days used for utilization forecast analysis. :param list[str] host_name: (optional) Filter by one or more hostname. :param bool is_database_instance_level_metrics: (optional) Flag to indicate if database instance level metrics should be returned. The flag is ignored when a host name filter is not applied. When a hostname filter is applied this flag will determine whether to return metrics for the instances located on the specified host or for the whole database which contains an instance on this host. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param int high_utilization_threshold: (optional) Percent value in which a resource metric is considered highly utilized. :param int low_utilization_threshold: (optional) Percent value in which a resource metric is considered low utilized. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeDatabaseInsightResourceUtilizationInsightAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_database_insight_resource_utilization_insight API. r%r@z,/databaseInsights/resourceUtilizationInsightr7summarize_database_insight_resource_utilization_insightzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceUtilizationInsight)r r!rr^r_rr.r/r`rTrrDrCr/rFrGrHrIrJrrrErFcsg|]}|vr|qSr'r'r1r3r'r(r4Qr5zdOperationsInsightsClient.summarize_database_insight_resource_utilization_insight..zLsummarize_database_insight_resource_utilization_insight got unknown kwargs: rrrrr^r_rr.r/r`rTrrDrCrFrGrHrIrJrrrErF)r%r@rrcrdrr1r/r*r\rrMrCrRrSrTrUrVrrrNrOcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Qr5zdOperationsInsightsClient.summarize_database_insight_resource_utilization_insight..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Qr5r!rFNZ=SummarizeDatabaseInsightResourceUtilizationInsightAggregationr rWrrir'r3r(rlPs                zPOperationsInsightsClient.summarize_database_insight_resource_utilization_insightc stdg}d}d}d}d}gdfddt|D}|rHtd |||d t|d t|d t|d t|dt|dt|dtd} ddt| D} dd|dtd} ddt| D} |jj|d|jd} | durt j } | rLt | t j s$|j | | |j| j|jj||| | d|d|||d S|jj||| | d|d|||d SdS)a Returns response with usage time series data (endTimestamp, usage, capacity) with breakdown by tablespaceName for the time period specified. The maximum time range for analysis is 2 years, hence this is intentionally not paginated. Either databaseId or id must be specified. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str database_id: (optional) Optional `OCID`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (optional) `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_database_insight_tablespace_usage_trend API. r%z&/databaseInsights/tablespaceUsageTrendr1summarize_database_insight_tablespace_usage_trendzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightTablespaceUsageTrend) r r!rr^r_r.r/rCrBr/csg|]}|vr|qSr'r'r1r3r'r(r4ZRr5z^OperationsInsightsClient.summarize_database_insight_tablespace_usage_trend..zFsummarize_database_insight_tablespace_usage_trend got unknown kwargs: rr^r_r.r/rCrB)r%rrcrdr1r/rCrBcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;iRr5z^OperationsInsightsClient.summarize_database_insight_tablespace_usage_trend..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;pRr5r!rFNZASummarizeDatabaseInsightTablespaceUsageTrendAggregationCollectionr rWr) r%r'r&rOrHrIrMrNrarrKr!r'r3r(rmQsvP             zJOperationsInsightsClient.summarize_database_insight_tablespace_usage_trendc sRgd}d}d}d}d} gdfddt|D} | rJtd | d |vrtd d g} |d | vrttd | d|vrddg} |d| vrtd| |dt|||dt|dt|dt||j|dtd|j|dtd|j|dtd|j|dtd|j|dtd|j|dtd|dt|dt|d t|dtd} d d!t| D} d"d"|d#td$}d%d!t|D}|jj|d&|j d'}|d(urt j }|r*t |t j s|j|||j|j|jj||| |d)|d*|| |d+ S|jj||| |d)|d*|| |d+ Sd(S),a Returns response with time series data (endTimestamp, capacity) for the time period specified for an exadata system for a resource metric. Additionally resources can be filtered using databaseInsightId, hostInsightId or storageServerName query parameters. Top five resources are returned if total exceeds the limit specified. Valid values for ResourceType DATABASE are CPU,MEMORY,IO and STORAGE. Database name is returned in name field. DatabaseInsightId, cdbName and hostName query parameter applies to ResourceType DATABASE. Valid values for ResourceType HOST are CPU and MEMORY. HostName is returned in name field. HostInsightId and hostName query parameter applies to ResourceType HOST. Valid values for ResourceType STORAGE_SERVER are STORAGE, IOPS and THROUGHPUT. Storage server name is returned in name field for resourceMetric IOPS and THROUGHPUT and asmName is returned in name field for resourceMetric STORAGE. StorageServerName query parameter applies to ResourceType STORAGE_SERVER. Valid values for ResourceType DISKGROUP is STORAGE. Comma delimited (asmName,diskgroupName) is returned in name field. :param str resource_type: (required) Filter by resource. Supported values are HOST , STORAGE_SERVER and DATABASE :param str resource_metric: (required) Filter by resource metric. Supported values are CPU , STORAGE, MEMORY, IO, IOPS, THROUGHPUT :param str exadata_insight_id: (required) `OCID`__ of exadata insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] database_insight_id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] host_insight_id: (optional) Optional list of host insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] storage_server_name: (optional) Optional storage server name on an exadata system. :param list[str] exadata_type: (optional) Filter by one or more Exadata types. Possible value are DBMACHINE, EXACS, and EXACC. :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param list[str] host_name: (optional) Filter by hostname. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The order in which resource capacity trend records are listed Allowed values are: "id", "name" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeExadataInsightResourceCapacityTrendCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_exadata_insight_resource_capacity_trend API.  resourceTyper@r*z&/exadataInsights/resourceCapacityTrendr1summarize_exadata_insight_resource_capacity_trendzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceCapacityTrend)r r!r'rr^r_rdrrstorage_server_namerrrrCrBrDrEr/csg|]}|vr|qSr'r'r1r3r'r(r4'Sr5z^OperationsInsightsClient.summarize_exadata_insight_resource_capacity_trend..zFsummarize_exadata_insight_resource_capacity_trend got unknown kwargs: rDrKrLrMrEr/rrNr'rr^r_rdrrrrqrrrrCrB)r%ror@rrcrdr*rbrpstorageServerNamerrrrCrBrPrQcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;MSr5z^OperationsInsightsClient.summarize_exadata_insight_resource_capacity_trend..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;TSr5r!rFNZ6SummarizeExadataInsightResourceCapacityTrendCollectionr rWr)r% resource_typerPr`r&rOrHrIrMrNrarZr[rrKr!r'r3r(rpRsy               zJOperationsInsightsClient.summarize_exadata_insight_resource_capacity_trendc snddg}d}d}d}d}gdfdd t|D} | rJtd | d |vrtd d g} |d | vrttd| d|vrddg} |d| vrtd| |dt|||dt|dt|dt|j|dtd|j|dtd|j|dtd|j|dtd|dt|d t|dt|j|dtd|j|dtd|j|dtd|j|d tdd!} d"d#t| D} d$d$|d%td&} d'd#t| D} |jj|d(|j d)}|d*urt j }|rFt |t j s|j| ||j|j|jj||| | d+|d,|||d- S|jj||| | d+|d,|||d- Sd*S).aB Returns response with time series data (endTimestamp, capacity) for the time period specified for an exadata system or fleet aggregation for a resource metric. The maximum time range for analysis is 2 years, hence this is intentionally not paginated. Valid values for ResourceType DATABASE are CPU,MEMORY,IO and STORAGE. Valid values for ResourceType HOST are CPU and MEMORY. Valid values for ResourceType STORAGE_SERVER are STORAGE, IOPS and THROUGHPUT. :param str resource_type: (required) Filter by resource. Supported values are HOST , STORAGE_SERVER and DATABASE :param str resource_metric: (required) Filter by resource metric. Supported values are CPU , STORAGE, MEMORY, IO, IOPS, THROUGHPUT :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_type: (optional) Filter by one or more Exadata types. Possible value are DBMACHINE, EXACS, and EXACC. :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param list[str] host_name: (optional) Filter by hostname. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Sorts using end timestamp or capacity. Allowed values are: "endTimestamp", "capacity" :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeExadataInsightResourceCapacityTrendAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_exadata_insight_resource_capacity_trend_aggregated API. ror@z0/exadataInsights/resourceCapacityTrendAggregatedr.zQsummarize_exadata_insight_resource_capacity_trend_aggregated got unknown kwargs: rDrKrLrMrErIrJrNr'rr^r_r`rrrrrCrFrGrHrI)r%ror@rrcrdr*rrrrCrPrQrRrSrTrUcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;2Tr5ziOperationsInsightsClient.summarize_exadata_insight_resource_capacity_trend_aggregated..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;9Tr5r!rFNZ7SummarizeExadataInsightResourceCapacityTrendAggregationr rWr)r%rsrPr&rOrHrIrMrNrarZr[rrKr!r'r3r(rtxSsy              zUOperationsInsightsClient.summarize_exadata_insight_resource_capacity_trend_aggregatedc sgd}d}d}d}d} gdfddt|D} | rJtd | d |vrtd d g} |d | vrttd | d|vrgd} |d| vrtd| d|vrddg} |d| vrtd| d|vrgd}|d|vrtd||||dt|dt|dt||j|dtd|j|dtd|j|dtd|j|dtd|d t|d t|d!t|dt|j|d"td|j|d#td|d$t|d%t|dt|dt|d&td'}d(d)t|D}d*d*|d+td,}d-d)t|D}|jj|d.|j d/}|d0urRt j }|rt |t j s~|j|||j|j|jj||||d1|d2|| |d3 S|jj||||d1|d2|| |d3 Sd0S)4at Get historical usage and forecast predictions for an exadata system with breakdown by databases, hosts or storage servers. Additionally resources can be filtered using databaseInsightId, hostInsightId or storageServerName query parameters. Top five resources are returned if total exceeds the limit specified. Valid values for ResourceType DATABASE are CPU,MEMORY,IO and STORAGE. Database name is returned in name field. DatabaseInsightId , cdbName and hostName query parameter applies to ResourceType DATABASE. Valid values for ResourceType HOST are CPU and MEMORY. HostName s returned in name field. HostInsightId and hostName query parameter applies to ResourceType HOST. Valid values for ResourceType STORAGE_SERVER are STORAGE, IOPS and THROUGHPUT. Storage server name is returned in name field for resourceMetric IOPS and THROUGHPUT and asmName is returned in name field for resourceMetric STORAGE. StorageServerName query parameter applies to ResourceType STORAGE_SERVER. Valid value for ResourceType DISKGROUP is STORAGE. Comma delimited (asmName,diskgroupName) is returned in name field. :param str resource_type: (required) Filter by resource. Supported values are HOST , STORAGE_SERVER and DATABASE :param str resource_metric: (required) Filter by resource metric. Supported values are CPU , STORAGE, MEMORY, IO, IOPS, THROUGHPUT :param str exadata_insight_id: (required) `OCID`__ of exadata insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] database_insight_id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] host_insight_id: (optional) Optional list of host insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] storage_server_name: (optional) Optional storage server name on an exadata system. :param list[str] exadata_type: (optional) Filter by one or more Exadata types. Possible value are DBMACHINE, EXACS, and EXACC. :param str statistic: (optional) Choose the type of statistic metric data to be used for forecasting. Allowed values are: "AVG", "MAX" :param int forecast_start_day: (optional) Number of days used for utilization forecast analysis. :param int forecast_days: (optional) Number of days used for utilization forecast analysis. :param str forecast_model: (optional) Choose algorithm model for the forecasting. Possible values: - LINEAR: Uses linear regression algorithm for forecasting. - ML_AUTO: Automatically detects best algorithm to use for forecasting. - ML_NO_AUTO: Automatically detects seasonality of the data for forecasting using linear or seasonal algorithm. Allowed values are: "LINEAR", "ML_AUTO", "ML_NO_AUTO" :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param list[str] host_name: (optional) Filter by hostname. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int confidence: (optional) This parameter is used to change data's confidence level, this data is ingested by the forecast algorithm. Confidence is the probability of an interval to contain the expected population parameter. Manipulation of this value will lead to different results. If not set, default confidence value is 95%. :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The order in which resource Forecast trend records are listed Allowed values are: "id", "name", "daysToReachCapacity" :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeExadataInsightResourceForecastTrendCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_exadata_insight_resource_forecast_trend API. rnz&/exadataInsights/resourceForecastTrendr1summarize_exadata_insight_resource_forecast_trendzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceForecastTrend)r r!rr^r_rdrrrqrrSforecast_start_dayrTrUrrrBrVrDrErCr/csg|]}|vr|qSr'r'r1r3r'r(r4 Ur5z^OperationsInsightsClient.summarize_exadata_insight_resource_forecast_trend..zFsummarize_exadata_insight_resource_forecast_trend got unknown kwargs: rSrWrXrYrUrZr[rDrKrLrMrE)r/rZdaysToReachCapacityrNrr^r_rdrrrrqrrvrTrrrBrVrC)ror@rrcrdr*rbrprrrrSforecastStartDayr\r]rrrBrVrPrQrCcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;BUr5z^OperationsInsightsClient.summarize_exadata_insight_resource_forecast_trend..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;IUr5r!rFNZ6SummarizeExadataInsightResourceForecastTrendCollectionr rWr)r%rsrPr`r&rOrHrIrMrNrar^r_rZr[rrKr!r'r3r(ru]Ts                     zJOperationsInsightsClient.summarize_exadata_insight_resource_forecast_trendc sddg}d}d}d}d}gdfdd t|D} | rJtd | d |vrtd d g} |d | vrttd| d|vrgd} |d| vrtd| |dt|||dt|dt|dt|j|dtd|j|dtd|d t|dt|dt|dt|j|dtd|j|dtd|dt|dt|j|dtd|j|d td|j|d!td|j|d"tdd#} d$d%t| D} d&d&|d'td(} d)d%t| D} |jj|d*|j d+}|d,urt j }|rdt |t j s<|j| ||j|j|jj||| | d-|d.|||d/ S|jj||| | d-|d.|||d/ Sd,S)0a Get aggregated historical usage and forecast predictions for resources. Either compartmentId or exadataInsightsId query parameter must be specified. Valid values for ResourceType DATABASE are CPU,MEMORY,IO and STORAGE. Valid values for ResourceType HOST are CPU and MEMORY. Valid values for ResourceType STORAGE_SERVER are STORAGE, IOPS and THROUGHPUT. :param str resource_type: (required) Filter by resource. Supported values are HOST , STORAGE_SERVER and DATABASE :param str resource_metric: (required) Filter by resource metric. Supported values are CPU , STORAGE, MEMORY, IO, IOPS, THROUGHPUT :param str compartment_id: (optional) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_type: (optional) Filter by one or more Exadata types. Possible value are DBMACHINE, EXACS, and EXACC. :param str statistic: (optional) Choose the type of statistic metric data to be used for forecasting. Allowed values are: "AVG", "MAX" :param int forecast_start_day: (optional) Number of days used for utilization forecast analysis. :param int forecast_days: (optional) Number of days used for utilization forecast analysis. :param str forecast_model: (optional) Choose algorithm model for the forecasting. Possible values: - LINEAR: Uses linear regression algorithm for forecasting. - ML_AUTO: Automatically detects best algorithm to use for forecasting. - ML_NO_AUTO: Automatically detects seasonality of the data for forecasting using linear or seasonal algorithm. Allowed values are: "LINEAR", "ML_AUTO", "ML_NO_AUTO" :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param list[str] host_name: (optional) Filter by hostname. :param int confidence: (optional) This parameter is used to change data's confidence level, this data is ingested by the forecast algorithm. Confidence is the probability of an interval to contain the expected population parameter. Manipulation of this value will lead to different results. If not set, default confidence value is 95%. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeExadataInsightResourceForecastTrendAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_exadata_insight_resource_forecast_trend_aggregated API. ror@z0/exadataInsights/resourceForecastTrendAggregatedr.zQsummarize_exadata_insight_resource_forecast_trend_aggregated got unknown kwargs: rSrWrXrYrUrZr[r'rr^r_r`rrrvrTrrrVrCrFrGrHrI)r%ror@rrcrdr*rrSrwr\r]rrrVrCrRrSrTrUcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;=Vr5ziOperationsInsightsClient.summarize_exadata_insight_resource_forecast_trend_aggregated..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;DVr5r!rFNZ7SummarizeExadataInsightResourceForecastTrendAggregationr rWr)r%rsrPr&rOrHrIrMrNrar^r_rrKr!r'r3r(rxmUs                  zUOperationsInsightsClient.summarize_exadata_insight_resource_forecast_trend_aggregatedc sgd}d}d}d}d} gdfddt|D} | rJtd | d |vrtd d g} |d | vrttd | d|vrgd} |d| vrtd| ||||dt|dt|dt|j|dtd|j|dtd|j|dtd|dt|d t|dt|dt|dtd} ddt| D} dd|dtd }d!dt|D}|jj|d"|j d#}|d$urt j }|rt |t j s|j|||j|j|jj||| |d%|d&|| |d' S|jj||| |d%|d&|| |d' Sd$S)(a# Lists the Resource statistics (usage, capacity, usage change percent, utilization percent) for each resource based on resourceMetric filtered by utilization level. Valid values for ResourceType DATABASE are CPU,MEMORY,IO and STORAGE. Valid values for ResourceType HOST are CPU and MEMORY. Valid values for ResourceType STORAGE_SERVER are STORAGE, IOPS, THROUGHPUT. Valid value for ResourceType DISKGROUP is STORAGE. :param str exadata_insight_id: (required) `OCID`__ of exadata insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_type: (required) Filter by resource. Supported values are HOST , STORAGE_SERVER and DATABASE :param str resource_metric: (required) Filter by resource metric. Supported values are CPU , STORAGE, MEMORY, IO, IOPS, THROUGHPUT :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] exadata_type: (optional) Filter by one or more Exadata types. Possible value are DBMACHINE, EXACS, and EXACC. :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param list[str] host_name: (optional) Filter by hostname. :param int percentile: (optional) Percentile values of daily usage to be used for computing the aggregate resource usage. :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The order in which resource statistics records are listed Allowed values are: "utilizationPercent", "usage", "usageChangePercent" :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeExadataInsightResourceStatisticsAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_exadata_insight_resource_statistics API. )r*ror@z#/exadataInsights/resourceStatisticsr-summarize_exadata_insight_resource_statisticsz|https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceStatistics)r r!rr^r_rrrrarDrErBrCr/csg|]}|vr|qSr'r'r1r3r'r(r4Vr5zZOperationsInsightsClient.summarize_exadata_insight_resource_statistics..zBsummarize_exadata_insight_resource_statistics got unknown kwargs: rDrKrLrMrE)rcrdrerNrr^r_rrrrrarBrC)r*ror@rrcrdrrrrarPrQrBrCcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r; Wr5zZOperationsInsightsClient.summarize_exadata_insight_resource_statistics..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Wr5r!rFNZ>SummarizeExadataInsightResourceStatisticsAggregationCollectionr rWr)r%r`rsrPr&rOrHrIrMrNrarZr[rrKr!r'r3r(ryhVsg               zFOperationsInsightsClient.summarize_exadata_insight_resource_statisticsc szgd}d}d}d}d} gdfddt|D} | rJtd | d |vrtd d g} |d | vrttd | d|vrgd} |d| vrtd| ||||dt|dt|dt|j|dtd|j|dtd|j|dtd|j|dtd|d t|dt|dt|dt|dt|j|dtd|j|dtd|j|dtd|j|dtdd } d!d"t| D} d#d#|d$td%}d&d"t|D}|jj|d'|j d(}|d)urt j }|rRt |t j s*|j|||j|j|jj||| |d*|d+|| |d, S|jj||| |d*|d+|| |d, Sd)S)-a A cumulative distribution function is used to rank the usage data points per resource within the specified time period. For each resource, the minimum data point with a ranking > the percentile value is included in the summation. Linear regression functions are used to calculate the usage change percentage. Valid values for ResourceType DATABASE are CPU,MEMORY,IO and STORAGE. Valid values for ResourceType HOST are CPU and MEMORY. Valid values for ResourceType STORAGE_SERVER are STORAGE, IOPS and THROUGHPUT. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_type: (required) Filter by resource. Supported values are HOST , STORAGE_SERVER and DATABASE :param str resource_metric: (required) Filter by resource metric. Supported values are CPU , STORAGE, MEMORY, IO, IOPS, THROUGHPUT :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_type: (optional) Filter by one or more Exadata types. Possible value are DBMACHINE, EXACS, and EXACC. :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param list[str] host_name: (optional) Filter by hostname. :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The order in which resource usage summary records are listed Allowed values are: "utilizationPercent", "usage", "capacity", "usageChangePercent" :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int percentile: (optional) Percentile values of daily usage to be used for computing the aggregate resource usage. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeExadataInsightResourceUsageCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_exadata_insight_resource_usage API. r%ror@z%/exadataInsights/resourceUsageSummaryr(summarize_exadata_insight_resource_usagezwhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceUsage)r r!rr^r_r`rrrrDrErCrBrarFrGrHrIr/csg|]}|vr|qSr'r'r1r3r'r(r4Wr5zUOperationsInsightsClient.summarize_exadata_insight_resource_usage..z=summarize_exadata_insight_resource_usage got unknown kwargs: rDrKrLrMrE)rcrdrJrerNrr^r_r`rrrrrCrBrarFrGrHrI)r%ror@rrcrdr*rrrrPrQrCrBrarRrSrTrUcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Wr5zUOperationsInsightsClient.summarize_exadata_insight_resource_usage..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Xr5r!rFNZ.SummarizeExadataInsightResourceUsageCollectionr rWr)r%r'rsrPr&rOrHrIrMrNrarZr[rrKr!r'r3r(r{4Ws               zAOperationsInsightsClient.summarize_exadata_insight_resource_usagec sgd}d}d}d}d} gdfddt|D} | rJtd | ||||d t|d t|d t|j|d td|j|dtd|j|dtd|j|dtd|dt|dt|j|dtd|j|dtd|j|dtd|j|dtdd} ddt| D} dd|dtd} ddt| D} |jj|d|j d } | d!urt j } | rt | t j s|j| | |j| j|jj||| | d"|d#|| |d$ S|jj||| | d"|d#|| |d$ Sd!S)%a A cumulative distribution function is used to rank the usage data points per database within the specified time period. For each database, the minimum data point with a ranking > the percentile value is included in the summation. Linear regression functions are used to calculate the usage change percentage. Valid values for ResourceType DATABASE are CPU,MEMORY,IO and STORAGE. Valid values for ResourceType HOST are CPU and MEMORY. Valid values for ResourceType STORAGE_SERVER are STORAGE, IOPS and THROUGHPUT. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_type: (required) Filter by resource. Supported values are HOST , STORAGE_SERVER and DATABASE :param str resource_metric: (required) Filter by resource metric. Supported values are CPU , STORAGE, MEMORY, IO, IOPS, THROUGHPUT :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_type: (optional) Filter by one or more Exadata types. Possible value are DBMACHINE, EXACS, and EXACC. :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param list[str] host_name: (optional) Filter by hostname. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int percentile: (optional) Percentile values of daily usage to be used for computing the aggregate resource usage. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeExadataInsightResourceUsageAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_exadata_insight_resource_usage_aggregated API. rzz//exadataInsights/resourceUsageSummaryAggregatedr3summarize_exadata_insight_resource_usage_aggregatedzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceUsageAggregated)r r!rr^r_r`rrrrCrarFrGrHrIr/csg|]}|vr|qSr'r'r1r3r'r(r4Xr5z`OperationsInsightsClient.summarize_exadata_insight_resource_usage_aggregated..zHsummarize_exadata_insight_resource_usage_aggregated got unknown kwargs: rr^r_r`rrrrrCrarFrGrHrI)r%ror@rrcrdr*rrrrCrarRrSrTrUcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Xr5z`OperationsInsightsClient.summarize_exadata_insight_resource_usage_aggregated..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Xr5r!rFNZ/SummarizeExadataInsightResourceUsageAggregationr rWrr%r'rsrPr&rOrHrIrMrNrarrKr!r'r3r(r|)Xss          zLOperationsInsightsClient.summarize_exadata_insight_resource_usage_aggregatedc sgd}d}d}d}d} gdfddt|D} | rJtd | ||||d t|d t|d t|j|d td|j|dtd|dt|dt|j|dtd|j|dtd|dt|dt|j|dtd|j|dtd|j|dtd|j|dtdd} ddt| D} dd|dtd} d dt| D} |jj|d!|j d"} | d#urt j } | rt | t j s|j| | |j| j|jj||| | d$|d%|| |d& S|jj||| | d$|d%|| |d& Sd#S)'a Gets current utilization, projected utilization and days to reach projectedUtilization for an exadata system over specified time period. Valid values for ResourceType DATABASE are CPU,MEMORY,IO and STORAGE. Valid values for ResourceType HOST are CPU and MEMORY. Valid values for ResourceType STORAGE_SERVER are STORAGE, IOPS and THROUGHPUT. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_type: (required) Filter by resource. Supported values are HOST , STORAGE_SERVER and DATABASE :param str resource_metric: (required) Filter by resource metric. Supported values are CPU , STORAGE, MEMORY, IO, IOPS, THROUGHPUT :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_type: (optional) Filter by one or more Exadata types. Possible value are DBMACHINE, EXACS, and EXACC. :param int forecast_start_day: (optional) Number of days used for utilization forecast analysis. :param int forecast_days: (optional) Number of days used for utilization forecast analysis. :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param list[str] host_name: (optional) Filter by hostname. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeExadataInsightResourceUtilizationInsightAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_exadata_insight_resource_utilization_insight API. rzz+/exadataInsights/resourceUtilizationInsightr6summarize_exadata_insight_resource_utilization_insightzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceUtilizationInsight)r r!rr^r_r`rrvrTrrrBrCrFrGrHrIr/csg|]}|vr|qSr'r'r1r3r'r(r4Yr5zcOperationsInsightsClient.summarize_exadata_insight_resource_utilization_insight..zKsummarize_exadata_insight_resource_utilization_insight got unknown kwargs: rr^r_r`rrrvrTrrrBrCrFrGrHrI)r%ror@rrcrdr*rrwr\rrrBrCrRrSrTrUcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Yr5zcOperationsInsightsClient.summarize_exadata_insight_resource_utilization_insight..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Yr5r!rFNZ`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.ExadataMemberCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_exadata_members API. r*z/exadataInsights/exadataMembersrsummarize_exadata_memberszjhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataMembers)r r!rrDrErBrCr/csg|]}|vr|qSr'r'r1r3r'r(r4 Zr5zFOperationsInsightsClient.summarize_exadata_members..z.summarize_exadata_members got unknown kwargs: rDrKrLrMrE)rrrrNrrrBrC)r*rrPrQrBrCcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;;Zr5zFOperationsInsightsClient.summarize_exadata_members..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;BZr5r!rFNZExadataMemberCollectionr rWrX)r%r`r&rOrHrIrMrNrarZr[rrKr!r'r3r(rYs?            z2OperationsInsightsClient.summarize_exadata_membersc sddg}d}d}d}d}gdfdd t|D} | rJtd | d |vrtd d g} |d | vrttd| d|vrgd} |dD]} | | vrtd| q|||dt|dt|dt|dt|d t|j|dtdd} ddt| D} dd|dtd}ddt|D}|jj|d|j d}|d ur\t j }|rt |t j s|j|||j|j|jj||| |d!|d"|||d# S|jj||| |d!|d"|||d# Sd S)$a Returns response with disk(s) statistics for a host. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (required) Required `OCID`__ of the host insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str statistic: (optional) Choose the type of statistic metric data to be used for forecasting. Allowed values are: "AVG", "MAX" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeHostInsightsDiskStatisticsCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_host_insight_disk_statistics API. r%r/z/hostInsights/diskStatisticsr&summarize_host_insight_disk_statisticszrhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightDiskStatistics) r r!rr^r_rrSr/rcsg|]}|vr|qSr'r'r1r3r'r(r4Zr5zSOperationsInsightsClient.summarize_host_insight_disk_statistics..z;summarize_host_insight_disk_statistics got unknown kwargs: rSrWrXrYrrrrr^r_rr)r%r/rrcrdrrSrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Zr5zSOperationsInsightsClient.summarize_host_insight_disk_statistics..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Zr5r!rFNZ-SummarizeHostInsightsDiskStatisticsCollectionr rWrr%r'r/r&rOrHrIrMrNrar^rrrrKr!r'r3r(rfZsH              z?OperationsInsightsClient.summarize_host_insight_disk_statisticsc sgd}d}d}d}d} gdfddt|D} | rJtd | d |vrtd d g} |d | vrttd | ||||dt|dt|dt|dt|dt|d td } ddt| D} dd|dtd} ddt| D} |jj|d|jd}|dur t j }|rtt |t j sL|j | ||j|j|jj||| | d|d|| |d S|jj||| | d|d|| |d SdS) a Returns response with some recommendations if apply for a host. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (required) Required `OCID`__ of the host insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Filter by host resource metric. Supported values are CPU, MEMORY, LOGICAL_MEMORY, STORAGE and NETWORK. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str statistic: (optional) Choose the type of statistic metric data to be used for forecasting. Allowed values are: "AVG", "MAX" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeHostInsightHostRecommendationAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_host_insight_host_recommendation API. r%r/r@z /hostInsights/hostRecommendationr*summarize_host_insight_host_recommendationzvhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightHostRecommendation) r r!rr^r_rrBrSr/csg|]}|vr|qSr'r'r1r3r'r(r4k[r5zWOperationsInsightsClient.summarize_host_insight_host_recommendation..z?summarize_host_insight_host_recommendation got unknown kwargs: rSrWrXrYrr^r_rrB) r%r/r@rrcrdrrBrScSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;[r5zWOperationsInsightsClient.summarize_host_insight_host_recommendation..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;[r5r!rFNZ1SummarizeHostInsightHostRecommendationAggregationr rWr)r%r'r/rPr&rOrHrIrMrNrar^rrKr!r'r3r(r [sP              zCOperationsInsightsClient.summarize_host_insight_host_recommendationc sddg}d}d}d}d}gdfdd t|D} | rJtd | d |vrtd d g} |d | vrttd| d|vrgd} |dD]} | | vrtd| q|||dt|dt|dt|dt|dt|dt|d t|j|dtdd } ddt| D} dd|dtd}ddt|D}|jj|d |j d!}|d"urpt j }|rt |t j s|j|||j|j|jj||| |d#|d$|||d% S|jj||| |d#|d$|||d% Sd"S)&a Returns response with usage time series data with breakdown by network interface for the time period specified. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (required) Required `OCID`__ of the host insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str statistic: (optional) Choose the type of statistic metric data to be used for forecasting. Allowed values are: "AVG", "MAX" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeHostInsightNetworkUsageTrendAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_host_insight_network_usage_trend API. r%r/z/hostInsights/networkUsageTrendr*summarize_host_insight_network_usage_trendzuhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightNetworkUsageTrend r r!rr^r_rrCrBrSr/rcsg|]}|vr|qSr'r'r1r3r'r(r4\r5zWOperationsInsightsClient.summarize_host_insight_network_usage_trend..z?summarize_host_insight_network_usage_trend got unknown kwargs: rSrWrXrYrrrrr^r_rrCrBr r%r/rrcrdrrCrBrSrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;9\r5zWOperationsInsightsClient.summarize_host_insight_network_usage_trend..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;@\r5r!rFNZ:SummarizeHostInsightNetworkUsageTrendAggregationCollectionr rWrrr'r3r(r[sX                zCOperationsInsightsClient.summarize_host_insight_network_usage_trendc sVddg}d}d}d}d}gdfdd t|D} | rJtd | d |vr~gd } |d D]} | | vrbtd | qbd|vrgd} |d| vrtd| d|vrddg} |d| vrtd| d|vrddg}|d|vrtd|d|vr6gd}|dD]}||vrtd|q|||dt|dt|dt|j|d td|j|d td|j|d!td|dt|d"t|dt|dt|j|d#td|j|d$td|j|d%td|j|d&td|d't|j|d(td|d)t|j|d*td|d+t|d,t|j|dtdd-}d.d/t|D}d0d0|d1td2}d3d/t|D}|jj|d4|j d5}|d6urt j }|r.t |t j s|j|||j|j|jj||||d7|d8|||d9 S|jj||||d7|d8|||d9 Sd6S):a# Returns response with time series data (endTimestamp, capacity) for the time period specified. The maximum time range for analysis is 2 years, hence this is intentionally not paginated. If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Filter by host resource metric. Supported values are CPU, MEMORY, LOGICAL_MEMORY, STORAGE and NETWORK. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] platform_type: (optional) Filter by one or more platform types. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. Allowed values are: "LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX" :param list[str] id: (optional) Optional list of host insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str utilization_level: (optional) Filter by utilization level by the following buckets: - HIGH_UTILIZATION: DBs with utilization greater or equal than 75. - LOW_UTILIZATION: DBs with utilization lower than 25. - MEDIUM_HIGH_UTILIZATION: DBs with utilization greater or equal than 50 but lower than 75. - MEDIUM_LOW_UTILIZATION: DBs with utilization greater or equal than 25 but lower than 50. Allowed values are: "HIGH_UTILIZATION", "LOW_UTILIZATION", "MEDIUM_HIGH_UTILIZATION", "MEDIUM_LOW_UTILIZATION" :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Sorts using end timestamp or capacity Allowed values are: "endTimestamp", "capacity" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] host_type: (optional) Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param int high_utilization_threshold: (optional) Percent value in which a resource metric is considered highly utilized. :param int low_utilization_threshold: (optional) Percent value in which a resource metric is considered low utilized. :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeHostInsightResourceCapacityTrendAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_host_insight_resource_capacity_trend API. r%r@z#/hostInsights/resourceCapacityTrendr.summarize_host_insight_resource_capacity_trendzyhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceCapacityTrend)r r!rr^r_rr/r`rBrCrDrEr/rFrGrHrIrJrrrrErFrcsg|]}|vr|qSr'r'r1r3r'r(r4]r5z[OperationsInsightsClient.summarize_host_insight_resource_capacity_trend..zCsummarize_host_insight_resource_capacity_trend got unknown kwargs: rrrrBrGrHrDrKrLrMrErIrJrNrrrrr^r_rr/r`rCrFrGrHrIrJrrrrErF)r%r@rrcrdrr/r*rKrCrPrQrRrSrTrUrVrrrrNrOrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;a]r5z[OperationsInsightsClient.summarize_host_insight_resource_capacity_trend..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;h]r5r!rFNZ>SummarizeHostInsightResourceCapacityTrendAggregationCollectionr rWr)r%r'rPr&rOrHrIrMrNrarrrQrZr[rrrrKr!r'r3r(rd\s                       zGOperationsInsightsClient.summarize_host_insight_resource_capacity_trendc! sddg}d}d}d}d}gdfdd t|D} | rJtd | d |vr~gd } |d D]} | | vrbtd | qbd|vrddg} |d| vrtd| d|vrgd} |d| vrtd| d|vrgd}|d|vrtd|d|vr6gd}|dD]}||vrtd|q|||dt|dt|dt|j|d td|j|dtd|j|d td|dt|d!t|dt|dt|d"t|d#t|j|d$td|j|d%td|j|d&td|j|d'td|d(t|j|d)td|d*t|j|d+td|d,t|d-t|d.t|d/t|d0t|j|dtdd1}d2d3t|D}d4d4|d5td6}d7d3t|D}|jj|d8|j d9}|d:ur t j }|r`t |t j s8|j|||j|j|jj||||d;|d<|||d= S|jj||||d;|d<|||d= Sd:S)>a& Get Forecast predictions for CPU or memory resources since a time in the past. If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Filter by host resource metric. Supported values are CPU, MEMORY, LOGICAL_MEMORY, STORAGE and NETWORK. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] platform_type: (optional) Filter by one or more platform types. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. Allowed values are: "LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX" :param list[str] id: (optional) Optional list of host insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str statistic: (optional) Choose the type of statistic metric data to be used for forecasting. Allowed values are: "AVG", "MAX" :param int forecast_days: (optional) Number of days used for utilization forecast analysis. :param str forecast_model: (optional) Choose algorithm model for the forecasting. Possible values: - LINEAR: Uses linear regression algorithm for forecasting. - ML_AUTO: Automatically detects best algorithm to use for forecasting. - ML_NO_AUTO: Automatically detects seasonality of the data for forecasting using linear or seasonal algorithm. Allowed values are: "LINEAR", "ML_AUTO", "ML_NO_AUTO" :param str utilization_level: (optional) Filter by utilization level by the following buckets: - HIGH_UTILIZATION: DBs with utilization greater or equal than 75. - LOW_UTILIZATION: DBs with utilization lower than 25. - MEDIUM_HIGH_UTILIZATION: DBs with utilization greater or equal than 50 but lower than 75. - MEDIUM_LOW_UTILIZATION: DBs with utilization greater or equal than 25 but lower than 50. Allowed values are: "HIGH_UTILIZATION", "LOW_UTILIZATION", "MEDIUM_HIGH_UTILIZATION", "MEDIUM_LOW_UTILIZATION" :param int confidence: (optional) This parameter is used to change data's confidence level, this data is ingested by the forecast algorithm. Confidence is the probability of an interval to contain the expected population parameter. Manipulation of this value will lead to different results. If not set, default confidence value is 95%. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] host_type: (optional) Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param int high_utilization_threshold: (optional) Percent value in which a resource metric is considered highly utilized. :param int low_utilization_threshold: (optional) Percent value in which a resource metric is considered low utilized. :param str mount_point: (optional) Mount points are specialized NTFS filesystem objects. :param str interface_name: (optional) Name of the network interface. :param int gpu_id: (optional) GPU identifier. :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeHostInsightResourceForecastTrendAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_host_insight_resource_forecast_trend API. r%r@z#/hostInsights/resourceForecastTrendr.summarize_host_insight_resource_forecast_trendzyhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceForecastTrend)r r!rr^r_rr/r`rSrTrUrBrVrCr/rFrGrHrIrJrrrrErF mount_pointinterface_namegpu_idrcsg|]}|vr|qSr'r'r1r3r'r(r4a^r5z[OperationsInsightsClient.summarize_host_insight_resource_forecast_trend..zCsummarize_host_insight_resource_forecast_trend got unknown kwargs: rrrrSrWrXrYrUrZr[rBrGrHrrrrr^r_rr/r`rTrVrCrFrGrHrIrJrrrrErFrrr)r%r@rrcrdrr/r*rSr\r]rKrVrCrRrSrTrUrVrrrrNrOZ mountPointZ interfaceNameZgpuIdrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;^r5z[OperationsInsightsClient.summarize_host_insight_resource_forecast_trend..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;^r5r!rFNZ4SummarizeHostInsightResourceForecastTrendAggregationr rWr)r%r'rPr&rOrHrIrMrNrarrr^r_rQrrrrKr!r'r3r(r]s0                            zGOperationsInsightsClient.summarize_host_insight_resource_forecast_trendc sFddg}d}d}d}d}gdfdd t|D} | rJtd | d |vr~gd } |d D]} | | vrbtd | qbd|vrddg} |d| vrtd| d|vrgd} |d| vrtd| d|vrgd}|dD]}||vrtd|q|||dt|dt|dt|j|d td|j|dtd|j|dtd|dt|dt|d t|d!t|d"t|dt|dt|j|d#td|j|d$td|j|d%td|j|d&td|d't|j|d(td|d)t|j|d*td|d+t|d,t|j|dtdd-}d.d/t|D}d0d0|d1td2}d3d/t|D}|jj|d4|j d5}|d6urt j }|rt |t j s|j|||j|j|jj||||d7|d8|||d9 S|jj||||d7|d8|||d9 Sd6S):a# Lists the resource statistics (usage, capacity, usage change percent, utilization percent, load) for each host filtered by utilization level in a compartment and in all sub-compartments if specified. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Filter by host resource metric. Supported values are CPU, MEMORY, LOGICAL_MEMORY, STORAGE and NETWORK. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] platform_type: (optional) Filter by one or more platform types. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. Allowed values are: "LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX" :param list[str] id: (optional) Optional list of host insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param int percentile: (optional) Percentile values of daily usage to be used for computing the aggregate resource usage. :param str insight_by: (optional) Return data of a specific insight Possible values are High Utilization, Low Utilization, Any ,High Utilization Forecast, Low Utilization Forecast :param int forecast_days: (optional) Number of days used for utilization forecast analysis. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The order in which resource statistics records are listed. Allowed values are: "utilizationPercent", "usage", "usageChangePercent", "hostName", "platformType" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] host_type: (optional) Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param int high_utilization_threshold: (optional) Percent value in which a resource metric is considered highly utilized. :param int low_utilization_threshold: (optional) Percent value in which a resource metric is considered low utilized. :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeHostInsightResourceStatisticsAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_host_insight_resource_statistics API. r%r@z /hostInsights/resourceStatisticsr*summarize_host_insight_resource_statisticszvhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceStatistics)r r!rr^r_rr/r`rarbrTrBrCrDrEr/rFrGrHrIrJrrrrErFrcsg|]}|vr|qSr'r'r1r3r'r(r4_r5zWOperationsInsightsClient.summarize_host_insight_resource_statistics..z?summarize_host_insight_resource_statistics got unknown kwargs: rrrrDrKrLrMrE)rcrdrerrrNrrrrr^r_rr/r`rarbrTrBrCrFrGrHrIrJrrrrErF)r%r@rrcrdrr/r*rarfr\rBrCrPrQrRrSrTrUrVrrrrNrOrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;_r5zWOperationsInsightsClient.summarize_host_insight_resource_statistics..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;_r5r!rFNZ;SummarizeHostInsightResourceStatisticsAggregationCollectionr rWrr%r'rPr&rOrHrIrMrNrarrrZr[rrrrKr!r'r3r(r^s$                        zCOperationsInsightsClient.summarize_host_insight_resource_statisticsc sddg}d}d}d}d}gdfdd t|D} | rJtd | d |vr~gd } |d D]} | | vrbtd | qbd|vrgd} |dD]} | | vrtd| q|||dt|dt|dt|j|d td|j|dtd|j|dtd|dt|dt|j|dtd|j|dtd|j|dtd|j|dtd|dt|j|dtd|dt|j|d td|j|dtdd!}d"d#t|D}d$d$|d%td&}d'd#t|D}|jj|d(|j d)}|d*ur.t j }|rt |t j sZ|j|||j|j|jj||||d+|d,|||d- S|jj||||d+|d,|||d- Sd*S).a? A cumulative distribution function is used to rank the usage data points per host within the specified time period. For each host, the minimum data point with a ranking > the percentile value is included in the summation. Linear regression functions are used to calculate the usage change percentage. If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Filter by host resource metric. Supported values are CPU, MEMORY, LOGICAL_MEMORY, STORAGE and NETWORK. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] platform_type: (optional) Filter by one or more platform types. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. Allowed values are: "LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX" :param list[str] id: (optional) Optional list of host insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int percentile: (optional) Percentile values of daily usage to be used for computing the aggregate resource usage. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] host_type: (optional) Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeHostInsightResourceUsageAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_host_insight_resource_usage API. r%r@z"/hostInsights/resourceUsageSummaryr%summarize_host_insight_resource_usagezqhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceUsage)r r!rr^r_rr/r`rCrar/rFrGrHrIrJrrrrcsg|]}|vr|qSr'r'r1r3r'r(r4`r5zROperationsInsightsClient.summarize_host_insight_resource_usage..z:summarize_host_insight_resource_usage got unknown kwargs: rrrrrrrr^r_rr/r`rCrarFrGrHrIrJrrr)r%r@rrcrdrr/r*rCrarRrSrTrUrVrrrrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;`r5zROperationsInsightsClient.summarize_host_insight_resource_usage..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;`r5r!rFNZ,SummarizeHostInsightResourceUsageAggregationr rWrr%r'rPr&rOrHrIrMrNrarrrrrrKr!r'r3r(r`s              z>OperationsInsightsClient.summarize_host_insight_resource_usagec s ddg}d}d}d}d}gdfdd t|D} | rJtd | d |vr~gd } |d D]} | | vrbtd | qbd|vrddg} |d| vrtd| d|vrgd} |d| vrtd| d|vrgd}|dD]}||vrtd|q|||dt|dt|dt|j|d td|j|dtd|j|dtd|dt|dt|dt|j|dtd|j|d td|j|d!td|j|d"td|d#t|j|d$td|d%t|j|d&td|j|dtdd'}d(d)t|D}d*d*|d+td,}d-d)t|D}|jj|d.|j d/}|d0urt j }|rt |t j s|j|||j|j|jj||||d1|d2|||d3 S|jj||||d1|d2|||d3 Sd0S)4a Returns response with time series data (endTimestamp, usage, capacity) for the time period specified. The maximum time range for analysis is 2 years, hence this is intentionally not paginated. If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Filter by host resource metric. Supported values are CPU, MEMORY, LOGICAL_MEMORY, STORAGE and NETWORK. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] platform_type: (optional) Filter by one or more platform types. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. Allowed values are: "LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX" :param list[str] id: (optional) Optional list of host insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) Sorts using end timestamp, usage or capacity Allowed values are: "endTimestamp", "usage", "capacity" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] host_type: (optional) Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeHostInsightResourceUsageTrendAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_host_insight_resource_usage_trend API. r%r@z /hostInsights/resourceUsageTrendr+summarize_host_insight_resource_usage_trendzvhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceUsageTrend)r r!rr^r_rr/r`rCrDrEr/rFrGrHrIrJrrrrcsg|]}|vr|qSr'r'r1r3r'r(r4ar5zXOperationsInsightsClient.summarize_host_insight_resource_usage_trend..z@summarize_host_insight_resource_usage_trend got unknown kwargs: rrrrDrKrLrMrErkrNrrrrr^r_rr/r`rCrFrGrHrIrJrrr)r%r@rrcrdrr/r*rCrPrQrRrSrTrUrVrrrrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;ar5zXOperationsInsightsClient.summarize_host_insight_resource_usage_trend..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;ar5r!rFNZ;SummarizeHostInsightResourceUsageTrendAggregationCollectionr rWrrr'r3r(r`s                   zDOperationsInsightsClient.summarize_host_insight_resource_usage_trendc sddg}d}d}d}d}gdfdd t|D} | rJtd | d |vr~gd } |d D]} | | vrbtd | qbd|vrgd} |dD]} | | vrtd| q|||dt|dt|dt|j|d td|j|dtd|j|dtd|dt|dt|j|dtd|j|dtd|j|dtd|j|dtd|dt|j|dtd|dt|j|d td|d!t|d"t|j|dtdd#}d$d%t|D}d&d&|d'td(}d)d%t|D}|jj|d*|j d+}|d,urBt j }|rt |t j sn|j|||j|j|jj||||d-|d.|||d/ S|jj||||d-|d.|||d/ Sd,S)0a Gets resources with current utilization (high and low) and projected utilization (high and low) for a resource type over specified time period. If compartmentIdInSubtree is specified, aggregates resources in a compartment and in all sub-compartments. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Filter by host resource metric. Supported values are CPU, MEMORY, LOGICAL_MEMORY, STORAGE and NETWORK. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param list[str] platform_type: (optional) Filter by one or more platform types. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. Allowed values are: "LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX" :param list[str] id: (optional) Optional list of host insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param int forecast_days: (optional) Number of days used for utilization forecast analysis. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] host_type: (optional) Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param int high_utilization_threshold: (optional) Percent value in which a resource metric is considered highly utilized. :param int low_utilization_threshold: (optional) Percent value in which a resource metric is considered low utilized. :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeHostInsightResourceUtilizationInsightAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_host_insight_resource_utilization_insight API. r%r@z(/hostInsights/resourceUtilizationInsightr3summarize_host_insight_resource_utilization_insightz~https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceUtilizationInsight)r r!rr^r_rr/r`rTrCr/rFrGrHrIrJrrrrErFrcsg|]}|vr|qSr'r'r1r3r'r(r4br5z`OperationsInsightsClient.summarize_host_insight_resource_utilization_insight..zHsummarize_host_insight_resource_utilization_insight got unknown kwargs: rrrrrrrr^r_rr/r`rTrCrFrGrHrIrJrrrrErF)r%r@rrcrdrr/r*r\rCrRrSrTrUrVrrrrNrOrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;br5z`OperationsInsightsClient.summarize_host_insight_resource_utilization_insight..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;br5r!rFNZ9SummarizeHostInsightResourceUtilizationInsightAggregationr rWrrr'r3r(rbs                 zLOperationsInsightsClient.summarize_host_insight_resource_utilization_insightc sddg}d}d}d}d}gdfdd t|D} | rJtd | d |vrtd d g} |d | vrttd| d|vrgd} |dD]} | | vrtd| q|||dt|dt|dt|dt|dt|dt|d t|j|dtdd } ddt| D} dd|dtd}ddt|D}|jj|d |j d!}|d"urpt j }|rt |t j s|j|||j|j|jj||| |d#|d$|||d% S|jj||| |d#|d$|||d% Sd"S)&a Returns response with usage time series data with breakdown by filesystem for the time period specified. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (required) Required `OCID`__ of the host insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str statistic: (optional) Choose the type of statistic metric data to be used for forecasting. Allowed values are: "AVG", "MAX" :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeHostInsightStorageUsageTrendAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_host_insight_storage_usage_trend API. r%r/z/hostInsights/storageUsageTrendr*summarize_host_insight_storage_usage_trendzuhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightStorageUsageTrendrcsg|]}|vr|qSr'r'r1r3r'r(r4qcr5zWOperationsInsightsClient.summarize_host_insight_storage_usage_trend..z?summarize_host_insight_storage_usage_trend got unknown kwargs: rSrWrXrYrrrrr^r_rrCrBrrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;cr5zWOperationsInsightsClient.summarize_host_insight_storage_usage_trend..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;cr5r!rFNZ:SummarizeHostInsightStorageUsageTrendAggregationCollectionr rWrrr'r3r(rcsX                zCOperationsInsightsClient.summarize_host_insight_storage_usage_trendc sgd}d}d}d} d} gdfddt|D} | rJtd | d |vrtd d g} |d | vrttd | d|vrgd} |dD]}|| vrtd| q||||dt|dt|dt|dt|dt|j|dtd|dt||d t|j|dtdd }ddt|D}dd|dtd}ddt|D}|jj|d |j d!}|d"urt j }|rt |t j s|j|||j|j|jj||||d#|d$| | |d% S|jj||||d#|d$| | |d% Sd"S)&a Returns response with aggregated data (timestamp, usageData) for top processes on a specific date. Data is aggregated for the time specified and processes are sorted descendent by the process metric specified (CPU, MEMORY, VIRTUAL_MEMORY). hostInsightId, processMetric must be specified. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (required) Required `OCID`__ of the host insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Host top processes resource metric sort options. Supported values are CPU, MEMORY, VIIRTUAL_MEMORY. :param datetime timestamp: (required) Timestamp at which to gather the top processes. This will be top processes over the hour or over the day pending the time range passed into the query. :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param list[str] host_type: (optional) Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str statistic: (optional) Choose the type of statistic metric data to be used for forecasting. Allowed values are: "AVG", "MAX" :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeHostInsightsTopProcessesUsageCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_host_insight_top_processes_usage API. )r%r/r@raz/hostInsights/topProcessesUsager*summarize_host_insight_top_processes_usagezuhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightTopProcessesUsage) r r!r^r_rCrBr/rrrrSrcsg|]}|vr|qSr'r'r1r3r'r(r47dr5zWOperationsInsightsClient.summarize_host_insight_top_processes_usage..z?summarize_host_insight_top_processes_usage got unknown kwargs: rSrWrXrYrrrr^r_rCrBrrrr) r%r/r@rcrdrCrBrrrrarSrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Zdr5zWOperationsInsightsClient.summarize_host_insight_top_processes_usage..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;adr5r!rFNZ0SummarizeHostInsightsTopProcessesUsageCollectionr rWr)r%r'r/rPrar&rOrHrIrMrNrar^rrrrKr!r'r3r(rcsf              zCOperationsInsightsClient.summarize_host_insight_top_processes_usagec s gd}d}d}d}d} gdfddt|D} | rJtd | d |vrtd d g} |d | vrttd | d|vrgd} |dD]} | | vrtd| q||||dt|dt|dt|dt|dt|j|dtd|dt|dt|d t|j|dtdd }ddt|D}dd|dtd}d dt|D}|jj|d!|j d"}|d#urt j }|rt |t j s|j|||j|j|jj||||d$|d%|| |d& S|jj||||d$|d%|| |d& Sd#S)'a Returns response with aggregated time series data (timeIntervalstart, timeIntervalEnd, commandArgs, usageData) for top processes. Data is aggregated for the time period specified and proceses are sorted descendent by the proces metric specified (CPU, MEMORY, VIRTUAL_MEMORY). HostInsight Id and Process metric must be specified :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (required) Required `OCID`__ of the host insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str resource_metric: (required) Host top processes resource metric sort options. Supported values are CPU, MEMORY, VIIRTUAL_MEMORY. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] host_type: (optional) Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str process_hash: (optional) Unique identifier for a process. :param str statistic: (optional) Choose the type of statistic metric data to be used for forecasting. Allowed values are: "AVG", "MAX" :param list[str] status: (optional) Resource Status Allowed values are: "DISABLED", "ENABLED", "TERMINATED" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeHostInsightsTopProcessesUsageTrendCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_host_insight_top_processes_usage_trend API. rz$/hostInsights/topProcessesUsageTrendr0summarize_host_insight_top_processes_usage_trendzzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightTopProcessesUsageTrend) r r!rr^r_rCrBr/rr process_hashrSrcsg|]}|vr|qSr'r'r1r3r'r(r4er5z]OperationsInsightsClient.summarize_host_insight_top_processes_usage_trend..zEsummarize_host_insight_top_processes_usage_trend got unknown kwargs: rSrWrXrYrrrrr^r_rCrBrrrr) r%r/r@rrcrdrCrBrrZ processHashrSrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;#er5z]OperationsInsightsClient.summarize_host_insight_top_processes_usage_trend..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;*er5r!rFNZ5SummarizeHostInsightsTopProcessesUsageTrendCollectionr rWr)r%r'r/rPr&rOrHrIrMrNrar^rrrrKr!r'r3r(rdse               zIOperationsInsightsClient.summarize_host_insight_top_processes_usage_trendc svdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | d urt j} | rNt| t js&|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Gets the details of resources used by an Operations Insights Warehouse. There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment. :param str operations_insights_warehouse_id: (required) Unique Ops Insights Warehouse identifier :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SummarizeOperationsInsightsWarehouseResourceUsageAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_operations_insights_warehouse_resource_usage API. ryzR/operationsInsightsWarehouses/{operationsInsightsWarehouseId}/resourceUsageSummaryr6summarize_operations_insights_warehouse_resource_usagezhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/SummarizeOperationsInsightsWarehouseResourceUsagercsg|]}|vr|qSr'r'r1r3r'r(r4zer5zcOperationsInsightsClient.summarize_operations_insights_warehouse_resource_usage..zKsummarize_operations_insights_warehouse_resource_usage got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;er5zcOperationsInsightsClient.summarize_operations_insights_warehouse_resource_usage..Nrr<r=r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;er5r!rFZ`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SqlInsightAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_sql_insights API. r%z/databaseInsights/sqlInsightsrsummarize_sql_insightszhhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlInsights)r r!rr.r/r`rrdatabase_time_pct_greater_thanrr^r_rCr/rFrGrHrIrJrcsg|]}|vr|qSr'r'r1r3r'r(r4Hfr5zCOperationsInsightsClient.summarize_sql_insights..z+summarize_sql_insights got unknown kwargs: rrrrr.r/r`rrrrr^r_rCrFrGrHrIrJr)r%rr1r/r*rrdatabaseTimePctGreaterThanrrcrdrCrRrSrTrUrVrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;ifr5zCOperationsInsightsClient.summarize_sql_insights..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;pfr5r!rFNZSqlInsightAggregationCollectionr rWrX)r%r'r&rOrHrIrMrNrarrrrKr!r'r3r(resy            z/OperationsInsightsClient.summarize_sql_insightsc snddg}d}d}d}d}gdfdd t|D} | rJtd | ||d t|d t||d t|dt|dt|dtd} ddt| D} dd|dtd} ddt| D} |jj|d|jd} | durt j } | rFt | t j s|j | | |j| j|jj||| | d|d|||d S|jj||| | d|d|||d SdS)a Query SQL Warehouse to get the performance insights on the execution plans for a given SQL for a given time period. Either databaseId or id must be specified. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str sql_identifier: (required) Unique SQL_ID for a SQL Statement. Example: `6rgjh9bjmy2s7` :param str database_id: (optional) Optional `OCID`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (optional) `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SqlPlanInsightAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_sql_plan_insights API. r%rlz!/databaseInsights/sqlPlanInsightsrsummarize_sql_plan_insightszlhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlPlanInsights r r!r.r/rr^r_rCr/csg|]}|vr|qSr'r'r1r3r'r(r4fr5zHOperationsInsightsClient.summarize_sql_plan_insights..z0summarize_sql_plan_insights got unknown kwargs: r.r/rr^r_rCr%r1r/rlrrcrdrCcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;fr5zHOperationsInsightsClient.summarize_sql_plan_insights..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;gr5r!rFNZ#SqlPlanInsightAggregationCollectionr rWrrr'r3r(rfsvJ            z4OperationsInsightsClient.summarize_sql_plan_insightsc snddg}d}d}d}d}gdfdd t|D} | rJtd | ||d t|d t||d t|dt|dt|dtd} ddt| D} dd|dtd} ddt| D} |jj|d|jd} | durt j } | rFt | t j s|j | | |j| j|jj||| | d|d|||d S|jj||| | d|d|||d SdS)a Query SQL Warehouse to summarize the response time distribution of query executions for a given SQL for a given time period. Either databaseId or id must be specified. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str sql_identifier: (required) Unique SQL_ID for a SQL Statement. Example: `6rgjh9bjmy2s7` :param str database_id: (optional) Optional `OCID`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (optional) `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SqlResponseTimeDistributionAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_sql_response_time_distributions API. r%rlz./databaseInsights/sqlResponseTimeDistributionsr)summarize_sql_response_time_distributionszyhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlResponseTimeDistributionsrcsg|]}|vr|qSr'r'r1r3r'r(r4gr5zVOperationsInsightsClient.summarize_sql_response_time_distributions..z>summarize_sql_response_time_distributions got unknown kwargs: r.r/rr^r_rCrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;gr5zVOperationsInsightsClient.summarize_sql_response_time_distributions..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;gr5r!rFNZ0SqlResponseTimeDistributionAggregationCollectionr rWrrr'r3r(r*gsvJ            zBOperationsInsightsClient.summarize_sql_response_time_distributionsc sLdg}d}d}d}d}gdfddt|D}|rHtd |d |vr|gd } |d D]} | | vr`td | q`d |vrddg} |d | vrtd| d|vrgd} |d| vrtd| d|vrgd} |dD]}|| vrtd| q||j|d td|j|dtd|j|dtd|j|dtd|j|dtd|j|dtd|dt|j|dtd|dt|d t|d!t|d"t|d#t|d t|dt|j|dtd|j|d$td|j|d%td|j|d&td|j|d'td|d(t|j|d)tdd*}d+d,t|D}d-d-|d.td/}d0d,t|D}|jj|d1|j d2}|d3urt j }|r$t |t j s|j|||j|j|jj||||d4|d5|||d6 S|jj||||d4|d5|||d6 Sd3S)7a% Query SQL Warehouse to get the performance statistics for SQLs taking greater than X% database time for a given time period across the given databases or database types in a compartment and in all sub-compartments if specified. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] database_type: (optional) Filter by one or more database type. Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB. Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param list[str] host_name: (optional) Filter by one or more hostname. :param float database_time_pct_greater_than: (optional) Filter sqls by percentage of db time. :param list[str] sql_identifier: (optional) One or more unique SQL_IDs for a SQL Statement. Example: `6rgjh9bjmy2s7` :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. Example: `50` __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). Allowed values are: "ASC", "DESC" :param str sort_by: (optional) The field to use when sorting SQL statistics. Example: databaseTimeInSec Allowed values are: "databaseTimeInSec", "executionsPerHour", "executionsCount", "cpuTimeInSec", "ioTimeInSec", "inefficientWaitTimeInSec", "responseTimeInSec", "planCount", "variability", "averageActiveSessions", "databaseTimePct", "inefficiencyInPct", "changeInCpuTimeInPct", "changeInIoTimeInPct", "changeInInefficientWaitTimeInPct", "changeInResponseTimeInPct", "changeInAverageActiveSessionsInPct", "changeInExecutionsPerHourInPct", "changeInInefficiencyInPct" :param list[str] category: (optional) Filter sqls by one or more performance categories. Allowed values are: "DEGRADING", "VARIANT", "INEFFICIENT", "CHANGING_PLANS", "IMPROVING", "DEGRADING_VARIANT", "DEGRADING_INEFFICIENT", "DEGRADING_CHANGING_PLANS", "DEGRADING_INCREASING_IO", "DEGRADING_INCREASING_CPU", "DEGRADING_INCREASING_INEFFICIENT_WAIT", "DEGRADING_CHANGING_PLANS_AND_INCREASING_IO", "DEGRADING_CHANGING_PLANS_AND_INCREASING_CPU", "DEGRADING_CHANGING_PLANS_AND_INCREASING_INEFFICIENT_WAIT", "VARIANT_INEFFICIENT", "VARIANT_CHANGING_PLANS", "VARIANT_INCREASING_IO", "VARIANT_INCREASING_CPU", "VARIANT_INCREASING_INEFFICIENT_WAIT", "VARIANT_CHANGING_PLANS_AND_INCREASING_IO", "VARIANT_CHANGING_PLANS_AND_INCREASING_CPU", "VARIANT_CHANGING_PLANS_AND_INCREASING_INEFFICIENT_WAIT", "INEFFICIENT_CHANGING_PLANS", "INEFFICIENT_INCREASING_INEFFICIENT_WAIT", "INEFFICIENT_CHANGING_PLANS_AND_INCREASING_INEFFICIENT_WAIT" :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SqlStatisticAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_sql_statistics API. r%z/databaseInsights/sqlStatisticsrsummarize_sql_statisticszjhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlStatistics)r r!rr.r/r`rrrrirr^r_rBrCr/rDrEcategoryrFrGrHrIrJrcsg|]}|vr|qSr'r'r1r3r'r(r4xhr5zEOperationsInsightsClient.summarize_sql_statistics..z-summarize_sql_statistics got unknown kwargs: rrrrDrKrLrMrE)ZdatabaseTimeInSecZexecutionsPerHourZexecutionsCountZ cpuTimeInSecZ ioTimeInSecZinefficientWaitTimeInSecZresponseTimeInSecZ planCountZ variabilityZaverageActiveSessionsZdatabaseTimePctZinefficiencyInPctZchangeInCpuTimeInPctZchangeInIoTimeInPctZ changeInInefficientWaitTimeInPctZchangeInResponseTimeInPctZ"changeInAverageActiveSessionsInPctZchangeInExecutionsPerHourInPctZchangeInInefficiencyInPctrNr)Z DEGRADINGZVARIANTZ INEFFICIENTZCHANGING_PLANSZ IMPROVINGZDEGRADING_VARIANTZDEGRADING_INEFFICIENTZDEGRADING_CHANGING_PLANSZDEGRADING_INCREASING_IOZDEGRADING_INCREASING_CPUZ%DEGRADING_INCREASING_INEFFICIENT_WAITZ*DEGRADING_CHANGING_PLANS_AND_INCREASING_IOZ+DEGRADING_CHANGING_PLANS_AND_INCREASING_CPUZ8DEGRADING_CHANGING_PLANS_AND_INCREASING_INEFFICIENT_WAITZVARIANT_INEFFICIENTZVARIANT_CHANGING_PLANSZVARIANT_INCREASING_IOZVARIANT_INCREASING_CPUZ#VARIANT_INCREASING_INEFFICIENT_WAITZ(VARIANT_CHANGING_PLANS_AND_INCREASING_IOZ)VARIANT_CHANGING_PLANS_AND_INCREASING_CPUZ6VARIANT_CHANGING_PLANS_AND_INCREASING_INEFFICIENT_WAITZINEFFICIENT_CHANGING_PLANSZ'INEFFICIENT_INCREASING_INEFFICIENT_WAITZ:INEFFICIENT_CHANGING_PLANS_AND_INCREASING_INEFFICIENT_WAITz-Invalid value for `category`, must be one of rr.r/r`rrrrirr^r_rBrCrFrGrHrIrJr)r%rr1r/r*rrrrlrrcrdrBrCrPrQrrRrSrTrUrVrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;hr5zEOperationsInsightsClient.summarize_sql_statistics..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;hr5r!rFNZ!SqlStatisticAggregationCollectionr rWrX)r%r'r&rOrHrIrMrNrarrrZr[Zcategory_allowed_valuesZ category_itemrrKr!r'r3r(rgs                   z1OperationsInsightsClient.summarize_sql_statisticsc  s.ddg}d}d}d}d}gdfdd t|D} | rJtd | ||j|d td |j|d td |j|dtd |j|dtd |j|dtd ||dt|dt|dt|dt|j|dtd |j|dtd |j|dtd |j|dtd |dt|j|dtd d} ddt| D} dd|dtd } d!dt| D} |jj|d"|j d#} | d$urt j } | rt | t j s|j| | |j| j|jj||| | d%|d&|||d' S|jj||| | d%|d&|||d' Sd$S)(a Query SQL Warehouse to get the performance statistics time series for a given SQL across given databases for a given time period in a compartment and in all sub-compartments if specified. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str sql_identifier: (required) Unique SQL_ID for a SQL Statement. Example: `6rgjh9bjmy2s7` :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] id: (optional) Optional list of database `OCIDs`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] exadata_insight_id: (optional) Optional list of exadata insight resource `OCIDs`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param list[str] cdb_name: (optional) Filter by one or more cdb name. :param list[str] host_name: (optional) Filter by one or more hostname. :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param list[str] defined_tag_equals: (optional) A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_equals: (optional) A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". :param list[str] defined_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be returned. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". :param list[str] freeform_tag_exists: (optional) A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". :param bool compartment_id_in_subtree: (optional) A flag to search all resources within a given compartment and all sub-compartments. :param list[str] vmcluster_name: (optional) Optional list of Exadata Insight VM cluster name. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SqlStatisticsTimeSeriesAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_sql_statistics_time_series API. r%rlz)/databaseInsights/sqlStatisticsTimeSeriesr$summarize_sql_statistics_time_serieszthttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlStatisticsTimeSeries)r r!r.r/r`rrrr^r_rCr/rFrGrHrIrJrcsg|]}|vr|qSr'r'r1r3r'r(r4nir5zQOperationsInsightsClient.summarize_sql_statistics_time_series..z9summarize_sql_statistics_time_series got unknown kwargs: r.rr/r`rrrr^r_rCrFrGrHrIrJr)r%r1r/r*rrrlrrcrdrCrRrSrTrUrVrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;ir5zQOperationsInsightsClient.summarize_sql_statistics_time_series..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;ir5r!rFNZ,SqlStatisticsTimeSeriesAggregationCollectionr rWrXrr'r3r(rhst          z=OperationsInsightsClient.summarize_sql_statistics_time_seriesc snddg}d}d}d}d}gdfdd t|D} | rJtd | ||d t|d t||d t|dt|dt|dtd} ddt| D} dd|dtd} ddt| D} |jj|d|jd} | durt j } | rFt | t j s|j | | |j| j|jj||| | d|d|||d S|jj||| | d|d|||d SdS)a Query SQL Warehouse to get the performance statistics time series for a given SQL by execution plans for a given time period. Either databaseId or id must be specified. :param str compartment_id: (required) The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str sql_identifier: (required) Unique SQL_ID for a SQL Statement. Example: `6rgjh9bjmy2s7` :param str database_id: (optional) Optional `OCID`__ of the associated DBaaS entity. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str id: (optional) `OCID`__ of the database insight resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param str analysis_time_interval: (optional) Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). :param datetime time_interval_start: (optional) Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored. :param datetime time_interval_end: (optional) Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.SqlStatisticsTimeSeriesByPlanAggregationCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use summarize_sql_statistics_time_series_by_plan API. r%rlz//databaseInsights/sqlStatisticsTimeSeriesByPlanr,summarize_sql_statistics_time_series_by_planzzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlStatisticsTimeSeriesByPlanrcsg|]}|vr|qSr'r'r1r3r'r(r4 jr5zYOperationsInsightsClient.summarize_sql_statistics_time_series_by_plan..zAsummarize_sql_statistics_time_series_by_plan got unknown kwargs: r.r/rr^r_rCrcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;jr5zYOperationsInsightsClient.summarize_sql_statistics_time_series_by_plan..r>r/rcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;#jr5r!rFNZ2SqlStatisticsTimeSeriesByPlanAggregationCollectionr rWrrr'r3r(risvJ            zEOperationsInsightsClient.summarize_sql_statistics_time_series_by_planc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rZt|t js2|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)au Updates the configuration of a hub . :param str awr_hub_id: (required) Unique Awr Hub identifier :param oci.opsi.models.UpdateAwrHubDetails update_awr_hub_details: (required) The configuration to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_awr_hub API. rrrupdate_awr_hubzWhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/UpdateAwrHubrkcsg|]}|vr|qSr'r'r1r3r'r(r4{jr5z;OperationsInsightsClient.update_awr_hub..z#update_awr_hub got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;jr5z;OperationsInsightsClient.update_awr_hub..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;jr5r!rFr rGrm)r%rZupdate_awr_hub_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rGjsp'$      z'OperationsInsightsClient.update_awr_hubc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rZt|t js2|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Update Awr Hub Source object. :param oci.opsi.models.UpdateAwrHubSourceDetails update_awr_hub_source_details: (required) The configuration to be updated. :param str awr_hub_source_id: (required) Unique Awr Hub Source identifier :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_awr_hub_source API. rerrupdate_awr_hub_sourcezchttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/UpdateAwrHubSourcerkcsg|]}|vr|qSr'r'r1r3r'r(r4jr5zBOperationsInsightsClient.update_awr_hub_source..z*update_awr_hub_source got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;jr5zBOperationsInsightsClient.update_awr_hub_source..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;jr5r!rFr rGrm)r%Zupdate_awr_hub_source_detailsrgr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rjsp'$      z.OperationsInsightsClient.update_awr_hub_sourcec sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rZt|t js2|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Updates configuration of a database insight. :param str database_insight_id: (required) Unique database insight identifier :param oci.opsi.models.UpdateDatabaseInsightDetails update_database_insight_details: (required) The configuration to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_database_insight API. rbrrupdate_database_insightzihttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/UpdateDatabaseInsightrkcsg|]}|vr|qSr'r'r1r3r'r(r4Ukr5zDOperationsInsightsClient.update_database_insight..z,update_database_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;^kr5zDOperationsInsightsClient.update_database_insight..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;jkr5r!rFr rGrm)r%rdZupdate_database_insight_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(r!ksp'$      z0OperationsInsightsClient.update_database_insightc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rZt|t js2|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Updates configuration of an Operations Insights Enterprise Manager bridge. :param str enterprise_manager_bridge_id: (required) Unique Enterprise Manager bridge identifier :param oci.opsi.models.UpdateEnterpriseManagerBridgeDetails update_enterprise_manager_bridge_details: (required) The configuration to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_enterprise_manager_bridge API. rirr update_enterprise_manager_bridgezyhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/UpdateEnterpriseManagerBridgerkcsg|]}|vr|qSr'r'r1r3r'r(r4kr5zMOperationsInsightsClient.update_enterprise_manager_bridge..z5update_enterprise_manager_bridge got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;kr5zMOperationsInsightsClient.update_enterprise_manager_bridge..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;kr5r!rFr rGrm)r%rnZ(update_enterprise_manager_bridge_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rksp'$      z9OperationsInsightsClient.update_enterprise_manager_bridgec sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rZt|t js2|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Updates configuration of an Exadata insight. :param str exadata_insight_id: (required) Unique Exadata insight identifier :param oci.opsi.models.UpdateExadataInsightDetails update_exadata_insight_details: (required) The configuration to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_exadata_insight API. r*rrupdate_exadata_insightzghttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/UpdateExadataInsightrkcsg|]}|vr|qSr'r'r1r3r'r(r4/lr5zCOperationsInsightsClient.update_exadata_insight..z+update_exadata_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;8lr5zCOperationsInsightsClient.update_exadata_insight..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;Dlr5r!rFr rGrm)r%r`Zupdate_exadata_insight_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rksp'$      z/OperationsInsightsClient.update_exadata_insightc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rZt|t js2|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Updates configuration of a host insight. :param str host_insight_id: (required) Unique host insight identifier :param oci.opsi.models.UpdateHostInsightDetails update_host_insight_details: (required) The configuration to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_host_insight API. rprrupdate_host_insightzahttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/UpdateHostInsightrkcsg|]}|vr|qSr'r'r1r3r'r(r4lr5z@OperationsInsightsClient.update_host_insight..z(update_host_insight got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;lr5z@OperationsInsightsClient.update_host_insight..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;lr5r!rFr rGrm)r%rrZupdate_host_insight_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rhlsp'$      z,OperationsInsightsClient.update_host_insightc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rZt|t js2|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Updates the configuration of a news report. :param str news_report_id: (required) Unique news report identifier. :param oci.opsi.models.UpdateNewsReportDetails update_news_report_details: (required) The configuration to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_news_report API. rsrrupdate_news_reportz_https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/UpdateNewsReportrkcsg|]}|vr|qSr'r'r1r3r'r(r4 mr5z?OperationsInsightsClient.update_news_report..z'update_news_report got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;mr5z?OperationsInsightsClient.update_news_report..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;mr5r!rFr rGrm)r%ruZupdate_news_report_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rlsp'$      z+OperationsInsightsClient.update_news_reportc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rZt|t js2|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a Updates one or more attributes of the specified private endpoint. :param str operations_insights_private_endpoint_id: (required) The `OCID`__ of the Operation Insights private endpoint. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param oci.opsi.models.UpdateOperationsInsightsPrivateEndpointDetails update_operations_insights_private_endpoint_details: (required) The details used to update a private endpoint. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_operations_insights_private_endpoint API. rvrr+update_operations_insights_private_endpointzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/UpdateOperationsInsightsPrivateEndpointrkcsg|]}|vr|qSr'r'r1r3r'r(r4xmr5zXOperationsInsightsClient.update_operations_insights_private_endpoint..z@update_operations_insights_private_endpoint got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;mr5zXOperationsInsightsClient.update_operations_insights_private_endpoint..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;mr5r!rFr rGrm)r%rxZ3update_operations_insights_private_endpoint_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rBmsp)$      zDOperationsInsightsClient.update_operations_insights_private_endpointc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rZt|t js2|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)az Updates the configuration of an Ops Insights Warehouse. There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment. :param str operations_insights_warehouse_id: (required) Unique Ops Insights Warehouse identifier :param oci.opsi.models.UpdateOperationsInsightsWarehouseDetails update_operations_insights_warehouse_details: (required) The configuration to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_operations_insights_warehouse API. ryrr$update_operations_insights_warehousezhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/UpdateOperationsInsightsWarehouserkcsg|]}|vr|qSr'r'r1r3r'r(r4mr5zQOperationsInsightsClient.update_operations_insights_warehouse..z9update_operations_insights_warehouse got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;mr5zQOperationsInsightsClient.update_operations_insights_warehouse..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;mr5r!rFr rGrm)r%r{Z,update_operations_insights_warehouse_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rmsp($      z=OperationsInsightsClient.update_operations_insights_warehousec sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rZt|t js2|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)a4 Updates the configuration of an Operations Insights Warehouse User. :param str operations_insights_warehouse_user_id: (required) Unique Operations Insights Warehouse User identifier :param oci.opsi.models.UpdateOperationsInsightsWarehouseUserDetails update_operations_insights_warehouse_user_details: (required) The configuration to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_operations_insights_warehouse_user API. rrr)update_operations_insights_warehouse_userzhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/UpdateOperationsInsightsWarehouseUserrkcsg|]}|vr|qSr'r'r1r3r'r(r4Snr5zVOperationsInsightsClient.update_operations_insights_warehouse_user..z>update_operations_insights_warehouse_user got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;\nr5zVOperationsInsightsClient.update_operations_insights_warehouse_user..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;hnr5r!rFr rGrm)r%rZ1update_operations_insights_warehouse_user_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rnsp'$      zBOperationsInsightsClient.update_operations_insights_warehouse_userc sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|d urt j}|rZt|t js2|j | ||j|j|j j||| | ||d|||d S|j j||| | ||d|||d Sd S)aB Updates an OPSI configuration resource with the given ID. :param str opsi_configuration_id: (required) `OCID`__ of OPSI configuration resource. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param oci.opsi.models.UpdateOpsiConfigurationDetails update_opsi_configuration_details: (required) The OPSI configuration resource details to be updated. :param str if_match: (optional) Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_opsi_configuration API. r|rrupdate_opsi_configurationzmhttps://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/UpdateOpsiConfigurationrkcsg|]}|vr|qSr'r'r1r3r'r(r4nr5zFOperationsInsightsClient.update_opsi_configuration..z.update_opsi_configuration got unknown kwargs: cSsi|]\}}|tur||qSr'r6r8r'r'r(r;nr5zFOperationsInsightsClient.update_opsi_configuration..Nrr<r=r>r.r/rlcSs&i|]\}}|tur|dur||qSrEr6r8r'r'r(r;nr5r!rFr rGrm)r%r~Z!update_opsi_configuration_detailsr&rOrHrIrMrNrarJr9r:rKr!r'r3r(rnsp)$      z2OperationsInsightsClient.update_opsi_configurationN)__name__ __module__ __qualname____doc__r)r,rcrfrhrjrorqrtrwrzr}rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr r!r"r#r&r)r+r,r3r4r7r8r9r<r=r>r?r@r\rfrgrhrorqrtrzrrrrrrrrrrrrrrrrrrrrrrrrrrrrr r rrrrrrr r!r(r,r.r4r5r6r8r=r>r?rArRr`rhrjrlrmrprtrurxryr{r|r~rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr'r'r'r(rsJ[xxxxmxxxzxzxeddddddefehlhhhhhhjkhjssssssxsxxx'cgccccccedc!oceww  E`EExV;),N/)rt1@Hae :</,4//#J/z h`h}>?M?Cy)? : N N &  ) : - q  y  e f  | M v O Z  $ % 8 * J 3 w   8 J J d c   ! S  m m m m m m m o n mrN)Z __future__rZ oci._vendorrrZocirrZoci.base_clientrZ oci.configrr Z oci.signerr Zoci.utilr r r rrZoci.exceptionsrZ oci.alloyrZmodelsrr7objectrr'r'r'r(s