/AWS1/IF_FDT=>SENDEVENT()¶
About SendEvent¶
Stores events in Amazon Fraud Detector without generating fraud predictions for those events. For example, you can use SendEvent to upload a historical dataset, which you can then later use to train a model.
Method Signature¶
METHODS /AWS1/IF_FDT~SENDEVENT
IMPORTING
!IV_EVENTID TYPE /AWS1/FDTIDENTIFIER OPTIONAL
!IV_EVENTTYPENAME TYPE /AWS1/FDTIDENTIFIER OPTIONAL
!IV_EVENTTIMESTAMP TYPE /AWS1/FDTUTCTIMESTAMPISO8601 OPTIONAL
!IT_EVENTVARIABLES TYPE /AWS1/CL_FDTEVENTVARIABLEMAP_W=>TT_EVENTVARIABLEMAP OPTIONAL
!IV_ASSIGNEDLABEL TYPE /AWS1/FDTIDENTIFIER OPTIONAL
!IV_LABELTIMESTAMP TYPE /AWS1/FDTUTCTIMESTAMPISO8601 OPTIONAL
!IT_ENTITIES TYPE /AWS1/CL_FDTENTITY=>TT_LISTOFENTITIES OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fdtsendeventresult
RAISING
/AWS1/CX_FDTACCESSDENIEDEX
/AWS1/CX_FDTCONFLICTEXCEPTION
/AWS1/CX_FDTINTERNALSERVEREX
/AWS1/CX_FDTRESOURCENOTFOUNDEX
/AWS1/CX_FDTTHROTTLINGEX
/AWS1/CX_FDTVALIDATIONEX
/AWS1/CX_FDTCLIENTEXC
/AWS1/CX_FDTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_eventid TYPE /AWS1/FDTIDENTIFIER /AWS1/FDTIDENTIFIER¶
The event ID to upload.
iv_eventtypename TYPE /AWS1/FDTIDENTIFIER /AWS1/FDTIDENTIFIER¶
The event type name of the event.
iv_eventtimestamp TYPE /AWS1/FDTUTCTIMESTAMPISO8601 /AWS1/FDTUTCTIMESTAMPISO8601¶
The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
it_eventvariables TYPE /AWS1/CL_FDTEVENTVARIABLEMAP_W=>TT_EVENTVARIABLEMAP TT_EVENTVARIABLEMAP¶
Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.
it_entities TYPE /AWS1/CL_FDTENTITY=>TT_LISTOFENTITIES TT_LISTOFENTITIES¶
An array of entities.
Optional arguments:¶
iv_assignedlabel TYPE /AWS1/FDTIDENTIFIER /AWS1/FDTIDENTIFIER¶
The label to associate with the event. Required if specifying
labelTimestamp.
iv_labeltimestamp TYPE /AWS1/FDTUTCTIMESTAMPISO8601 /AWS1/FDTUTCTIMESTAMPISO8601¶
The timestamp associated with the label. Required if specifying
assignedLabel.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_fdtsendeventresult /AWS1/CL_FDTSENDEVENTRESULT¶
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->sendevent(
it_entities = VALUE /aws1/cl_fdtentity=>tt_listofentities(
(
new /aws1/cl_fdtentity(
iv_entityid = |string|
iv_entitytype = |string|
)
)
)
it_eventvariables = VALUE /aws1/cl_fdteventvariablemap_w=>tt_eventvariablemap(
(
VALUE /aws1/cl_fdteventvariablemap_w=>ts_eventvariablemap_maprow(
key = |string|
value = new /aws1/cl_fdteventvariablemap_w( |string| )
)
)
)
iv_assignedlabel = |string|
iv_eventid = |string|
iv_eventtimestamp = |string|
iv_eventtypename = |string|
iv_labeltimestamp = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.