/AWS1/IF_XRA=>GETSERVICEGRAPH()¶
About GetServiceGraph¶
Retrieves a document that describes services that process incoming requests, and downstream services that they call as a result. Root services process incoming requests and make calls to downstream services. Root services are applications that use the Amazon Web Services X-Ray SDK. Downstream services can be other applications, Amazon Web Services resources, HTTP web APIs, or SQL databases.
Method Signature¶
METHODS /AWS1/IF_XRA~GETSERVICEGRAPH
IMPORTING
!IV_STARTTIME TYPE /AWS1/XRATIMESTAMP OPTIONAL
!IV_ENDTIME TYPE /AWS1/XRATIMESTAMP OPTIONAL
!IV_GROUPNAME TYPE /AWS1/XRAGROUPNAME OPTIONAL
!IV_GROUPARN TYPE /AWS1/XRAGROUPARN OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/XRASTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_xragetsvcgraphresult
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:¶
iv_starttime TYPE /AWS1/XRATIMESTAMP /AWS1/XRATIMESTAMP¶
The start of the time frame for which to generate a graph.
iv_endtime TYPE /AWS1/XRATIMESTAMP /AWS1/XRATIMESTAMP¶
The end of the timeframe for which to generate a graph.
Optional arguments:¶
iv_groupname TYPE /AWS1/XRAGROUPNAME /AWS1/XRAGROUPNAME¶
The name of a group based on which you want to generate a graph.
iv_grouparn TYPE /AWS1/XRAGROUPARN /AWS1/XRAGROUPARN¶
The Amazon Resource Name (ARN) of a group based on which you want to generate a graph.
iv_nexttoken TYPE /AWS1/XRASTRING /AWS1/XRASTRING¶
Pagination token.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_xragetsvcgraphresult /AWS1/CL_XRAGETSVCGRAPHRESULT¶
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->getservicegraph(
iv_endtime = '20150101000000.0000000'
iv_grouparn = |string|
iv_groupname = |string|
iv_nexttoken = |string|
iv_starttime = '20150101000000.0000000'
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_timestamp = lo_result->get_starttime( ).
lv_timestamp = lo_result->get_endtime( ).
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_boolean = lo_result->get_containsoldgroupversions( ).
lv_string = lo_result->get_nexttoken( ).
ENDIF.