lib/oci/opsi/operations_insights_client.rb
def ingest_sql_plan_lines(compartment_id, database_id, ingest_sql_plan_lines_details, opts = {})
      logger.debug 'Calling operation OperationsInsightsClient#ingest_sql_plan_lines.' if logger

      raise "Missing the required parameter 'compartment_id' when calling ingest_sql_plan_lines." if compartment_id.nil?
      raise "Missing the required parameter 'database_id' when calling ingest_sql_plan_lines." if database_id.nil?
      raise "Missing the required parameter 'ingest_sql_plan_lines_details' when calling ingest_sql_plan_lines." if ingest_sql_plan_lines_details.nil?

      path = '/databaseInsights/actions/ingestSqlPlanLines'
      operation_signing_strategy = :standard

      # rubocop:disable Style/NegatedIf
      # Query Params
      query_params = {}
      query_params[:compartmentId] = compartment_id
      query_params[:databaseId] = database_id

      # Header Params
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
      header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
      # rubocop:enable Style/NegatedIf
      header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

      post_body = @api_client.object_to_http_body(ingest_sql_plan_lines_details)

      # rubocop:disable Metrics/BlockLength
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OperationsInsightsClient#ingest_sql_plan_lines') do
        @api_client.call_api(
          :POST,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'OCI::Opsi::Models::IngestSqlPlanLinesResponseDetails'
        )
      end
      # rubocop:enable Metrics/BlockLength
    end
# The SqlPlanLines endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline.
# @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
# @param [String] database_id Required [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database.
#
# @param [OCI::Opsi::Models::IngestSqlPlanLinesDetails] ingest_sql_plan_lines_details Collection of SQL plan line objects for a particular database.
# @param [Hash] opts the optional parameters
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
#   retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact
#   Oracle about a particular request, please provide the request ID.
#
# @option opts [String] :if_match 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.
#
# @option opts [String] :opc_retry_token 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.
#
# @return [Response] A Response object with data of type {OCI::Opsi::Models::IngestSqlPlanLinesResponseDetails IngestSqlPlanLinesResponseDetails}
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/opsi/ingest_sql_plan_lines.rb.html) to see an example of how to use ingest_sql_plan_lines API.
The SqlPlanLines endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline.
The SqlPlanLines endpoint takes in a JSON payload persists it in Operation Insights ingest pipeline .
def ingest_sql_plan_lines(compartment_id, database_id, ingest_sql_plan_lines_details, opts = {})
      logger.debug 'Calling operation OperationsInsightsClient#ingest_sql_plan_lines.' if logger
      raise "Missing the required parameter 'compartment_id' when calling ingest_sql_plan_lines." if compartment_id.nil?
      raise "Missing the required parameter 'database_id' when calling ingest_sql_plan_lines." if database_id.nil?
      raise "Missing the required parameter 'ingest_sql_plan_lines_details' when calling ingest_sql_plan_lines." if ingest_sql_plan_lines_details.nil?
      path = '/databaseInsights/actions/ingestSqlPlanLines'
      operation_signing_strategy = :standard
      query_params = {}
      query_params[:compartmentId] = compartment_id
      query_params[:databaseId] = database_id
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
      header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
      header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
      post_body = @api_client.object_to_http_body(ingest_sql_plan_lines_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OperationsInsightsClient#ingest_sql_plan_lines') do
        @api_client.call_api(
          :POST,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'OCI::Opsi::Models::IngestSqlPlanLinesResponseDetails'
        )
      end
    end
def ingest_sql_plan_lines ( compartment_id , database_id , ingest_sql_plan_lines_details , opts = { } ) logger . debug 'Calling operation OperationsInsightsClient#ingest_sql_plan_lines.' if logger raise "Missing the required parameter 'compartment_id' when calling ingest_sql_plan_lines." if compartment_id . nil? raise "Missing the required parameter 'database_id' when calling ingest_sql_plan_lines." if database_id . nil? raise "Missing the required parameter 'ingest_sql_plan_lines_details' when calling ingest_sql_plan_lines." if ingest_sql_plan_lines_details . nil? path = '/databaseInsights/actions/ingestSqlPlanLines' operation_signing_strategy = :standard query_params = { } query_params [ :compartmentId ] = compartment_id query_params [ :databaseId ] = database_id header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' header_params [ :' opc-request-id ' ] = opts [ :opc_request_id ] if opts [ :opc_request_id ] header_params [ :' if-match ' ] = opts [ :if_match ] if opts [ :if_match ] header_params [ :' opc-retry-token ' ] = opts [ :opc_retry_token ] if opts [ :opc_retry_token ] header_params [ :' opc-retry-token ' ] ||= OCI :: Retry . generate_opc_retry_token post_body = @api_client . object_to_http_body ( ingest_sql_plan_lines_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'OperationsInsightsClient#ingest_sql_plan_lines' ) do @api_client . call_api ( :POST , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body , return_type : 'OCI::Opsi::Models::IngestSqlPlanLinesResponseDetails' ) end end
The SqlPlanLines endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline.
The SqlPlanLines endpoint takes in a JSON payload persists it in Operation Insights ingest pipeline .
# rubocop:disable Style/NegatedIf # Query Params # Header Params # rubocop:enable Style/NegatedIf # rubocop:disable Metrics/BlockLength # rubocop:enable Metrics/BlockLength
A Response object with data of type {OCI::Opsi::Models::IngestSqlPlanLinesResponseDetails IngestSqlPlanLinesResponseDetails}
A Response object with data of type { OCI :: Opsi :: Models :: IngestSqlPlanLinesResponseDetails IngestSqlPlanLinesResponseDetails }
Response
compartment_id
database_id
ingest_sql_plan_lines_details
opts
:opc_retry_token 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.
: opc_retry_token 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 .
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use ingest_sql_plan_lines API.
Click [ here ] to see an example of how to use ingest_sql_plan_lines API .