/AWS1/IF_CWM=>GETINTERNETEVENT()¶
About GetInternetEvent¶
Gets information that Amazon CloudWatch Internet Monitor has generated about an internet event. Internet Monitor displays information about recent global health events, called internet events, on a global outages map that is available to all Amazon Web Services customers.
The information returned here includes the impacted location,
when the event started and (if the event is over) ended, the type of event (PERFORMANCE or AVAILABILITY),
and the status (ACTIVE or RESOLVED).
Method Signature¶
METHODS /AWS1/IF_CWM~GETINTERNETEVENT
IMPORTING
!IV_EVENTID TYPE /AWS1/CWMINTERNETEVENTID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwmgetinternetevtout
RAISING
/AWS1/CX_CWMACCESSDENIEDEX
/AWS1/CX_CWMINTERNALSERVEREX
/AWS1/CX_CWMTHROTTLINGEX
/AWS1/CX_CWMVALIDATIONEX
/AWS1/CX_CWMCLIENTEXC
/AWS1/CX_CWMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_eventid TYPE /AWS1/CWMINTERNETEVENTID /AWS1/CWMINTERNETEVENTID¶
The
EventIdof the internet event to return information for.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cwmgetinternetevtout /AWS1/CL_CWMGETINTERNETEVTOUT¶
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->getinternetevent( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_interneteventid = lo_result->get_eventid( ).
lv_arn = lo_result->get_eventarn( ).
lv_timestamp = lo_result->get_startedat( ).
lv_timestamp = lo_result->get_endedat( ).
lo_clientlocation = lo_result->get_clientlocation( ).
IF lo_clientlocation IS NOT INITIAL.
lv_string = lo_clientlocation->get_asname( ).
lv_long = lo_clientlocation->get_asnumber( ).
lv_string = lo_clientlocation->get_country( ).
lv_string = lo_clientlocation->get_subdivision( ).
lv_string = lo_clientlocation->get_metro( ).
lv_string = lo_clientlocation->get_city( ).
lv_double = lo_clientlocation->get_latitude( ).
lv_double = lo_clientlocation->get_longitude( ).
ENDIF.
lv_interneteventtype = lo_result->get_eventtype( ).
lv_interneteventstatus = lo_result->get_eventstatus( ).
ENDIF.