/AWS1/IF_XRA=>GETTRACEGRAPH()¶
About GetTraceGraph¶
Retrieves a service graph for one or more specific trace IDs.
Method Signature¶
METHODS /AWS1/IF_XRA~GETTRACEGRAPH
IMPORTING
!IT_TRACEIDS TYPE /AWS1/CL_XRATRACEIDLIST_W=>TT_TRACEIDLIST OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/XRASTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_xragettracegraphrslt
RAISING
/AWS1/CX_XRAINVALIDREQUESTEX
/AWS1/CX_XRATHROTTLEDEXCEPTION
/AWS1/CX_XRACLIENTEXC
/AWS1/CX_XRASERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_traceids TYPE /AWS1/CL_XRATRACEIDLIST_W=>TT_TRACEIDLIST TT_TRACEIDLIST¶
Trace IDs of requests for which to generate a service graph.
Optional arguments:¶
iv_nexttoken TYPE /AWS1/XRASTRING /AWS1/XRASTRING¶
Pagination token.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_xragettracegraphrslt /AWS1/CL_XRAGETTRACEGRAPHRSLT¶
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->gettracegraph(
it_traceids = VALUE /aws1/cl_xratraceidlist_w=>tt_traceidlist(
( new /aws1/cl_xratraceidlist_w( |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_services( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_nullableinteger = lo_row_1->get_referenceid( ).
lv_string = lo_row_1->get_name( ).
LOOP AT lo_row_1->get_names( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_nullableboolean = lo_row_1->get_root( ).
lv_string = lo_row_1->get_accountid( ).
lv_string = lo_row_1->get_type( ).
lv_string = lo_row_1->get_state( ).
lv_timestamp = lo_row_1->get_starttime( ).
lv_timestamp = lo_row_1->get_endtime( ).
LOOP AT lo_row_1->get_edges( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_nullableinteger = lo_row_5->get_referenceid( ).
lv_timestamp = lo_row_5->get_starttime( ).
lv_timestamp = lo_row_5->get_endtime( ).
lo_edgestatistics = lo_row_5->get_summarystatistics( ).
IF lo_edgestatistics IS NOT INITIAL.
lv_nullablelong = lo_edgestatistics->get_okcount( ).
lo_errorstatistics = lo_edgestatistics->get_errorstatistics( ).
IF lo_errorstatistics IS NOT INITIAL.
lv_nullablelong = lo_errorstatistics->get_throttlecount( ).
lv_nullablelong = lo_errorstatistics->get_othercount( ).
lv_nullablelong = lo_errorstatistics->get_totalcount( ).
ENDIF.
lo_faultstatistics = lo_edgestatistics->get_faultstatistics( ).
IF lo_faultstatistics IS NOT INITIAL.
lv_nullablelong = lo_faultstatistics->get_othercount( ).
lv_nullablelong = lo_faultstatistics->get_totalcount( ).
ENDIF.
lv_nullablelong = lo_edgestatistics->get_totalcount( ).
lv_nullabledouble = lo_edgestatistics->get_totalresponsetime( ).
ENDIF.
LOOP AT lo_row_5->get_responsetimehistogram( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_double = lo_row_7->get_value( ).
lv_integer = lo_row_7->get_count( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_5->get_aliases( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_string = lo_row_9->get_name( ).
LOOP AT lo_row_9->get_names( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_string = lo_row_11->get_value( ).
ENDIF.
ENDLOOP.
lv_string = lo_row_9->get_type( ).
ENDIF.
ENDLOOP.
lv_string = lo_row_5->get_edgetype( ).
LOOP AT lo_row_5->get_receivedevtagehistogram( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_double = lo_row_7->get_value( ).
lv_integer = lo_row_7->get_count( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lo_servicestatistics = lo_row_1->get_summarystatistics( ).
IF lo_servicestatistics IS NOT INITIAL.
lv_nullablelong = lo_servicestatistics->get_okcount( ).
lo_errorstatistics = lo_servicestatistics->get_errorstatistics( ).
IF lo_errorstatistics IS NOT INITIAL.
lv_nullablelong = lo_errorstatistics->get_throttlecount( ).
lv_nullablelong = lo_errorstatistics->get_othercount( ).
lv_nullablelong = lo_errorstatistics->get_totalcount( ).
ENDIF.
lo_faultstatistics = lo_servicestatistics->get_faultstatistics( ).
IF lo_faultstatistics IS NOT INITIAL.
lv_nullablelong = lo_faultstatistics->get_othercount( ).
lv_nullablelong = lo_faultstatistics->get_totalcount( ).
ENDIF.
lv_nullablelong = lo_servicestatistics->get_totalcount( ).
lv_nullabledouble = lo_servicestatistics->get_totalresponsetime( ).
ENDIF.
LOOP AT lo_row_1->get_durationhistogram( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_double = lo_row_7->get_value( ).
lv_integer = lo_row_7->get_count( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_responsetimehistogram( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_double = lo_row_7->get_value( ).
lv_integer = lo_row_7->get_count( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.