/AWS1/IF_RUM=>GETAPPMONITORDATA()¶
About GetAppMonitorData¶
Retrieves the raw performance events that RUM has collected from your web application, so that you can do your own processing or analysis of this data.
Method Signature¶
METHODS /AWS1/IF_RUM~GETAPPMONITORDATA
IMPORTING
!IV_NAME TYPE /AWS1/RUMAPPMONITORNAME OPTIONAL
!IO_TIMERANGE TYPE REF TO /AWS1/CL_RUMTIMERANGE OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_RUMQUERYFILTER=>TT_QUERYFILTERS OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/RUMMAXQUERYRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/RUMTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rumgetappmonidatarsp
RAISING
/AWS1/CX_RUMACCESSDENIEDEX
/AWS1/CX_RUMINTERNALSERVEREX
/AWS1/CX_RUMRESOURCENOTFOUNDEX
/AWS1/CX_RUMTHROTTLINGEX
/AWS1/CX_RUMVALIDATIONEX
/AWS1/CX_RUMCLIENTEXC
/AWS1/CX_RUMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/RUMAPPMONITORNAME /AWS1/RUMAPPMONITORNAME¶
The name of the app monitor that collected the data that you want to retrieve.
io_timerange TYPE REF TO /AWS1/CL_RUMTIMERANGE /AWS1/CL_RUMTIMERANGE¶
A structure that defines the time range that you want to retrieve results from.
Optional arguments:¶
it_filters TYPE /AWS1/CL_RUMQUERYFILTER=>TT_QUERYFILTERS TT_QUERYFILTERS¶
An array of structures that you can use to filter the results to those that match one or more sets of key-value pairs that you specify.
iv_maxresults TYPE /AWS1/RUMMAXQUERYRESULTS /AWS1/RUMMAXQUERYRESULTS¶
The maximum number of results to return in one operation.
iv_nexttoken TYPE /AWS1/RUMTOKEN /AWS1/RUMTOKEN¶
Use the token returned by the previous operation to request the next page of results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_rumgetappmonidatarsp /AWS1/CL_RUMGETAPPMONIDATARSP¶
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->getappmonitordata(
io_timerange = new /aws1/cl_rumtimerange(
iv_after = 123
iv_before = 123
)
it_filters = VALUE /aws1/cl_rumqueryfilter=>tt_queryfilters(
(
new /aws1/cl_rumqueryfilter(
it_values = VALUE /aws1/cl_rumqueryfiltvallist_w=>tt_queryfiltervaluelist(
( new /aws1/cl_rumqueryfiltvallist_w( |string| ) )
)
iv_name = |string|
)
)
)
iv_maxresults = 123
iv_name = |string|
iv_nexttoken = |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_events( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_eventdata = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_token = lo_result->get_nexttoken( ).
ENDIF.