/AWS1/IF_SMI=>LISTTIMELINEEVENTS()¶
About ListTimelineEvents¶
Lists timeline events for the specified incident record.
Method Signature¶
METHODS /AWS1/IF_SMI~LISTTIMELINEEVENTS
IMPORTING
!IV_INCIDENTRECORDARN TYPE /AWS1/SMIARN OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_SMIFILTER=>TT_FILTERLIST OPTIONAL
!IV_SORTBY TYPE /AWS1/SMITIMELINEEVENTSORT OPTIONAL
!IV_SORTORDER TYPE /AWS1/SMISORTORDER OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/SMIMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/SMINEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_smilsttimelineevtsout
RAISING
/AWS1/CX_SMIACCESSDENIEDEX
/AWS1/CX_SMIINTERNALSERVEREX
/AWS1/CX_SMITHROTTLINGEX
/AWS1/CX_SMIVALIDATIONEX
/AWS1/CX_SMICLIENTEXC
/AWS1/CX_SMISERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_incidentrecordarn TYPE /AWS1/SMIARN /AWS1/SMIARN¶
The Amazon Resource Name (ARN) of the incident that includes the timeline event.
Optional arguments:¶
it_filters TYPE /AWS1/CL_SMIFILTER=>TT_FILTERLIST TT_FILTERLIST¶
Filters the timeline events based on the provided conditional values. You can filter timeline events with the following keys:
eventReference
eventTime
eventTypeNote the following when deciding how to use Filters:
If you don't specify a Filter, the response includes all timeline events.
If you specify more than one filter in a single request, the response returns timeline events that match all filters.
If you specify a filter with more than one value, the response returns timeline events that match any of the values provided.
iv_sortby TYPE /AWS1/SMITIMELINEEVENTSORT /AWS1/SMITIMELINEEVENTSORT¶
Sort timeline events by the specified key value pair.
iv_sortorder TYPE /AWS1/SMISORTORDER /AWS1/SMISORTORDER¶
Sorts the order of timeline events by the value specified in the
sortByfield.
iv_maxresults TYPE /AWS1/SMIMAXRESULTS /AWS1/SMIMAXRESULTS¶
The maximum number of results per page.
iv_nexttoken TYPE /AWS1/SMINEXTTOKEN /AWS1/SMINEXTTOKEN¶
The pagination token for the next set of items to return. (You received this token from a previous call.)
RETURNING¶
oo_output TYPE REF TO /aws1/cl_smilsttimelineevtsout /AWS1/CL_SMILSTTIMELINEEVTSOUT¶
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->listtimelineevents(
it_filters = VALUE /aws1/cl_smifilter=>tt_filterlist(
(
new /aws1/cl_smifilter(
io_condition = new /aws1/cl_smicondition(
io_equals = new /aws1/cl_smiattributevaluelist(
it_integervalues = VALUE /aws1/cl_smiintegerlist_w=>tt_integerlist(
( new /aws1/cl_smiintegerlist_w( 123 ) )
)
it_stringvalues = VALUE /aws1/cl_smistringlist_w=>tt_stringlist(
( new /aws1/cl_smistringlist_w( |string| ) )
)
)
iv_after = '20150101000000.0000000'
iv_before = '20150101000000.0000000'
)
iv_key = |string|
)
)
)
iv_incidentrecordarn = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_sortby = |string|
iv_sortorder = |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_eventsummaries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_arn = lo_row_1->get_incidentrecordarn( ).
lv_uuid = lo_row_1->get_eventid( ).
lv_timestamp = lo_row_1->get_eventtime( ).
lv_timestamp = lo_row_1->get_eventupdatedtime( ).
lv_timelineeventtype = lo_row_1->get_eventtype( ).
LOOP AT lo_row_1->get_eventreferences( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_arn = lo_row_3->get_resource( ).
lv_generatedid = lo_row_3->get_relateditemid( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.