/AWS1/IF_SMI=>UPDATETIMELINEEVENT()¶
About UpdateTimelineEvent¶
Updates a timeline event. You can update events of type Custom Event.
Method Signature¶
METHODS /AWS1/IF_SMI~UPDATETIMELINEEVENT
IMPORTING
!IV_CLIENTTOKEN TYPE /AWS1/SMICLIENTTOKEN OPTIONAL
!IV_INCIDENTRECORDARN TYPE /AWS1/SMIARN OPTIONAL
!IV_EVENTID TYPE /AWS1/SMIUUID OPTIONAL
!IV_EVENTTIME TYPE /AWS1/SMITIMESTAMP OPTIONAL
!IV_EVENTTYPE TYPE /AWS1/SMITIMELINEEVENTTYPE OPTIONAL
!IV_EVENTDATA TYPE /AWS1/SMIEVENTDATA OPTIONAL
!IT_EVENTREFERENCES TYPE /AWS1/CL_SMIEVENTREFERENCE=>TT_EVENTREFERENCELIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_smiupdtimelineevtout
RAISING
/AWS1/CX_SMIACCESSDENIEDEX
/AWS1/CX_SMICONFLICTEXCEPTION
/AWS1/CX_SMIINTERNALSERVEREX
/AWS1/CX_SMIRESOURCENOTFOUNDEX
/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.
iv_eventid TYPE /AWS1/SMIUUID /AWS1/SMIUUID¶
The ID of the event to update. You can use
ListTimelineEventsto find an event's ID.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/SMICLIENTTOKEN /AWS1/SMICLIENTTOKEN¶
A token that ensures that a client calls the operation only once with the specified details.
iv_eventtime TYPE /AWS1/SMITIMESTAMP /AWS1/SMITIMESTAMP¶
The timestamp for when the event occurred.
iv_eventtype TYPE /AWS1/SMITIMELINEEVENTTYPE /AWS1/SMITIMELINEEVENTTYPE¶
The type of event. You can update events of type
Custom EventandNote.
iv_eventdata TYPE /AWS1/SMIEVENTDATA /AWS1/SMIEVENTDATA¶
A short description of the event.
it_eventreferences TYPE /AWS1/CL_SMIEVENTREFERENCE=>TT_EVENTREFERENCELIST TT_EVENTREFERENCELIST¶
Updates all existing references in a
TimelineEvent. A reference is an Amazon Web Services resource involved or associated with the incident. To specify a reference, enter its Amazon Resource Name (ARN). You can also specify a related item associated with that resource. For example, to specify an Amazon DynamoDB (DynamoDB) table as a resource, use its ARN. You can also specify an Amazon CloudWatch metric associated with the DynamoDB table as a related item.This update action overrides all existing references. If you want to keep existing references, you must specify them in the call. If you don't, this action removes any existing references and enters only new references.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_smiupdtimelineevtout /AWS1/CL_SMIUPDTIMELINEEVTOUT¶
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->updatetimelineevent(
it_eventreferences = VALUE /aws1/cl_smieventreference=>tt_eventreferencelist(
(
new /aws1/cl_smieventreference(
iv_relateditemid = |string|
iv_resource = |string|
)
)
)
iv_clienttoken = |string|
iv_eventdata = |string|
iv_eventid = |string|
iv_eventtime = '20150101000000.0000000'
iv_eventtype = |string|
iv_incidentrecordarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.