/AWS1/IF_XRA=>GETINSIGHTSUMMARIES()¶
About GetInsightSummaries¶
Retrieves the summaries of all insights in the specified group matching the provided filter values.
Method Signature¶
METHODS /AWS1/IF_XRA~GETINSIGHTSUMMARIES
IMPORTING
!IT_STATES TYPE /AWS1/CL_XRAINSIGHTSTATELIST_W=>TT_INSIGHTSTATELIST OPTIONAL
!IV_GROUPARN TYPE /AWS1/XRAGROUPARN OPTIONAL
!IV_GROUPNAME TYPE /AWS1/XRAGROUPNAME OPTIONAL
!IV_STARTTIME TYPE /AWS1/XRATIMESTAMP OPTIONAL
!IV_ENDTIME TYPE /AWS1/XRATIMESTAMP OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/XRAGETINSIGHTSUMMAXRSS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/XRATOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_xragetinsightsumsrslt
RAISING
/AWS1/CX_XRAINVALIDREQUESTEX
/AWS1/CX_XRATHROTTLEDEXCEPTION
/AWS1/CX_XRACLIENTEXC
/AWS1/CX_XRASERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_starttime TYPE /AWS1/XRATIMESTAMP /AWS1/XRATIMESTAMP¶
The beginning of the time frame in which the insights started. The start time can't be more than 30 days old.
iv_endtime TYPE /AWS1/XRATIMESTAMP /AWS1/XRATIMESTAMP¶
The end of the time frame in which the insights ended. The end time can't be more than 30 days old.
Optional arguments:¶
it_states TYPE /AWS1/CL_XRAINSIGHTSTATELIST_W=>TT_INSIGHTSTATELIST TT_INSIGHTSTATELIST¶
The list of insight states.
iv_grouparn TYPE /AWS1/XRAGROUPARN /AWS1/XRAGROUPARN¶
The Amazon Resource Name (ARN) of the group. Required if the GroupName isn't provided.
iv_groupname TYPE /AWS1/XRAGROUPNAME /AWS1/XRAGROUPNAME¶
The name of the group. Required if the GroupARN isn't provided.
iv_maxresults TYPE /AWS1/XRAGETINSIGHTSUMMAXRSS /AWS1/XRAGETINSIGHTSUMMAXRSS¶
The maximum number of results to display.
iv_nexttoken TYPE /AWS1/XRATOKEN /AWS1/XRATOKEN¶
Pagination token.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_xragetinsightsumsrslt /AWS1/CL_XRAGETINSIGHTSUMSRSLT¶
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->getinsightsummaries(
it_states = VALUE /aws1/cl_xrainsightstatelist_w=>tt_insightstatelist(
( new /aws1/cl_xrainsightstatelist_w( |string| ) )
)
iv_endtime = '20150101000000.0000000'
iv_grouparn = |string|
iv_groupname = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_starttime = '20150101000000.0000000'
).
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_insightsummaries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_insightid = lo_row_1->get_insightid( ).
lv_grouparn = lo_row_1->get_grouparn( ).
lv_groupname = lo_row_1->get_groupname( ).
lo_serviceid = lo_row_1->get_rootcauseserviceid( ).
IF lo_serviceid IS NOT INITIAL.
lv_string = lo_serviceid->get_name( ).
LOOP AT lo_serviceid->get_names( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_string = lo_serviceid->get_accountid( ).
lv_string = lo_serviceid->get_type( ).
ENDIF.
LOOP AT lo_row_1->get_categories( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_insightcategory = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lv_insightstate = lo_row_1->get_state( ).
lv_timestamp = lo_row_1->get_starttime( ).
lv_timestamp = lo_row_1->get_endtime( ).
lv_insightsummarytext = lo_row_1->get_summary( ).
lo_requestimpactstatistics = lo_row_1->get_clientrequestimpactstats( ).
IF lo_requestimpactstatistics IS NOT INITIAL.
lv_nullablelong = lo_requestimpactstatistics->get_faultcount( ).
lv_nullablelong = lo_requestimpactstatistics->get_okcount( ).
lv_nullablelong = lo_requestimpactstatistics->get_totalcount( ).
ENDIF.
lo_requestimpactstatistics = lo_row_1->get_rootcausesvcreqimpacts00( ).
IF lo_requestimpactstatistics IS NOT INITIAL.
lv_nullablelong = lo_requestimpactstatistics->get_faultcount( ).
lv_nullablelong = lo_requestimpactstatistics->get_okcount( ).
lv_nullablelong = lo_requestimpactstatistics->get_totalcount( ).
ENDIF.
LOOP AT lo_row_1->get_topanomalousservices( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lo_serviceid = lo_row_7->get_serviceid( ).
IF lo_serviceid IS NOT INITIAL.
lv_string = lo_serviceid->get_name( ).
LOOP AT lo_serviceid->get_names( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_string = lo_serviceid->get_accountid( ).
lv_string = lo_serviceid->get_type( ).
ENDIF.
ENDIF.
ENDLOOP.
lv_timestamp = lo_row_1->get_lastupdatetime( ).
ENDIF.
ENDLOOP.
lv_token = lo_result->get_nexttoken( ).
ENDIF.