Skip to content

/AWS1/IF_OSR=>INSIGHTFEEDBACK()

About InsightFeedback

Submits feedback for an existing insight in an Amazon OpenSearch Service domain. Allows users to provide a thumbs up or thumbs down rating and optional text feedback for a specific insight.

Method Signature

METHODS /AWS1/IF_OSR~INSIGHTFEEDBACK
  IMPORTING
    !IO_ENTITY TYPE REF TO /AWS1/CL_OSRINSIGHTFDBCKENTITY OPTIONAL
    !IV_INSIGHTID TYPE /AWS1/OSRGUID OPTIONAL
    !IV_THUMBS TYPE /AWS1/OSRINSIGHTFEEDBACKTHUMBS OPTIONAL
    !IV_FEEDBACKTEXT TYPE /AWS1/OSRINSIGHTFEEDBACKTEXT OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_osrinsightfdbckrsp
  RAISING
    /AWS1/CX_OSRBASEEXCEPTION
    /AWS1/CX_OSRDISABLEDOPEX
    /AWS1/CX_OSRINTERNALEXCEPTION
    /AWS1/CX_OSRLIMITEXCEEDEDEX
    /AWS1/CX_OSRRESOURCENOTFOUNDEX
    /AWS1/CX_OSRVALIDATIONEX
    /AWS1/CX_OSRCLIENTEXC
    /AWS1/CX_OSRSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

io_entity TYPE REF TO /AWS1/CL_OSRINSIGHTFDBCKENTITY /AWS1/CL_OSRINSIGHTFDBCKENTITY

The entity for which to submit insight feedback. Specifies the type and value of the entity, such as a domain name.

iv_insightid TYPE /AWS1/OSRGUID /AWS1/OSRGUID

The unique identifier of the insight for which to submit feedback.

iv_thumbs TYPE /AWS1/OSRINSIGHTFEEDBACKTHUMBS /AWS1/OSRINSIGHTFEEDBACKTHUMBS

The thumbs up or thumbs down feedback for the insight. Possible values are Up and Down.

Optional arguments:

iv_feedbacktext TYPE /AWS1/OSRINSIGHTFEEDBACKTEXT /AWS1/OSRINSIGHTFEEDBACKTEXT

Optional text feedback providing additional details about the insight. Maximum length is 1000 characters.

RETURNING

oo_output TYPE REF TO /aws1/cl_osrinsightfdbckrsp /AWS1/CL_OSRINSIGHTFDBCKRSP

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->insightfeedback(
  io_entity = new /aws1/cl_osrinsightfdbckentity(
    iv_type = |string|
    iv_value = |string|
  )
  iv_feedbacktext = |string|
  iv_insightid = |string|
  iv_thumbs = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_insightresponsestatus = lo_result->get_status( ).
ENDIF.