Skip to content

/AWS1/CL_AIN=>LISTPROBLEMS()

About ListProblems

Lists the problems with your application.

Method Signature

IMPORTING

Optional arguments:

iv_accountid TYPE /AWS1/AINACCOUNTID /AWS1/AINACCOUNTID

The Amazon Web Services account ID for the resource group owner.

iv_resourcegroupname TYPE /AWS1/AINRESOURCEGROUPNAME /AWS1/AINRESOURCEGROUPNAME

The name of the resource group.

iv_starttime TYPE /AWS1/AINSTARTTIME /AWS1/AINSTARTTIME

The time when the problem was detected, in epoch seconds. If you don't specify a time frame for the request, problems within the past seven days are returned.

iv_endtime TYPE /AWS1/AINENDTIME /AWS1/AINENDTIME

The time when the problem ended, in epoch seconds. If not specified, problems within the past seven days are returned.

iv_maxresults TYPE /AWS1/AINMAXENTITIES /AWS1/AINMAXENTITIES

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

iv_nexttoken TYPE /AWS1/AINPAGINATIONTOKEN /AWS1/AINPAGINATIONTOKEN

The token to request the next page of results.

iv_componentname TYPE /AWS1/AINCOMPONENTNAME /AWS1/AINCOMPONENTNAME

The name of the component.

iv_visibility TYPE /AWS1/AINVISIBILITY /AWS1/AINVISIBILITY

Specifies whether or not you can view the problem. If not specified, visible and ignored problems are returned.

RETURNING

oo_output TYPE REF TO /aws1/cl_ainlistproblemsrsp /AWS1/CL_AINLISTPROBLEMSRSP

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

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->/aws1/if_ain~listproblems(
  iv_accountid = |string|
  iv_componentname = |string|
  iv_endtime = '20150101000000.0000000'
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_resourcegroupname = |string|
  iv_starttime = '20150101000000.0000000'
  iv_visibility = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_problemlist( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_problemid = lo_row_1->get_id( ).
      lv_title = lo_row_1->get_title( ).
      lv_shortname = lo_row_1->get_shortname( ).
      lv_insights = lo_row_1->get_insights( ).
      lv_status = lo_row_1->get_status( ).
      lv_affectedresource = lo_row_1->get_affectedresource( ).
      lv_starttime = lo_row_1->get_starttime( ).
      lv_endtime = lo_row_1->get_endtime( ).
      lv_severitylevel = lo_row_1->get_severitylevel( ).
      lv_accountid = lo_row_1->get_accountid( ).
      lv_resourcegroupname = lo_row_1->get_resourcegroupname( ).
      LOOP AT lo_row_1->get_feedback( ) into ls_row_2.
        lv_key = ls_row_2-key.
        lo_value = ls_row_2-value.
        IF lo_value IS NOT INITIAL.
          lv_feedbackvalue = lo_value->get_value( ).
        ENDIF.
      ENDLOOP.
      lv_recurringcount = lo_row_1->get_recurringcount( ).
      lv_lastrecurrencetime = lo_row_1->get_lastrecurrencetime( ).
      lv_visibility = lo_row_1->get_visibility( ).
      lv_resolutionmethod = lo_row_1->get_resolutionmethod( ).
    ENDIF.
  ENDLOOP.
  lv_paginationtoken = lo_result->get_nexttoken( ).
  lv_resourcegroupname = lo_result->get_resourcegroupname( ).
  lv_accountid = lo_result->get_accountid( ).
ENDIF.