/AWS1/IF_CWS=>REPORTINSTRCONFSTATUS()¶
About ReportInstrumentationConfigurationStatus¶
Reports the status of one or more instrumentation configurations from SDK instances. Use this to record when configurations become ready, hit errors, become active, or are disabled by limits.
Report READY, ERROR, and DISABLED when the status changes. Report ACTIVE periodically (for example, every minute) while instrumentation is running.
Method Signature¶
METHODS /AWS1/IF_CWS~REPORTINSTRCONFSTATUS
IMPORTING
!IV_SERVICE TYPE /AWS1/CWSSTRING OPTIONAL
!IV_ENVIRONMENT TYPE /AWS1/CWSSTRING OPTIONAL
!IT_CONFIGURATIONS TYPE /AWS1/CL_CWSINSTRCONFSTATRPT=>TT_INSTRCONFSTATUSLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwsrptinstcfgstatrsp
RAISING
/AWS1/CX_CWSTHROTTLINGEX
/AWS1/CX_CWSVALIDATIONEX
/AWS1/CX_CWSCLIENTEXC
/AWS1/CX_CWSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_service TYPE /AWS1/CWSSTRING /AWS1/CWSSTRING¶
The service that the reported configurations belong to.
iv_environment TYPE /AWS1/CWSSTRING /AWS1/CWSSTRING¶
The environment that the service is running in.
it_configurations TYPE /AWS1/CL_CWSINSTRCONFSTATRPT=>TT_INSTRCONFSTATUSLIST TT_INSTRCONFSTATUSLIST¶
An array of configuration status reports (up to 100) that include the instrumentation type, signal type, location hash, status, timestamp, and optional error cause.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cwsrptinstcfgstatrsp /AWS1/CL_CWSRPTINSTCFGSTATRSP¶
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->reportinstrconfstatus(
it_configurations = VALUE /aws1/cl_cwsinstrconfstatrpt=>tt_instrconfstatuslist(
(
new /aws1/cl_cwsinstrconfstatrpt(
iv_errorcause = |string|
iv_instrumentationtype = |string|
iv_locationhash = |string|
iv_signaltype = |string|
iv_status = |string|
iv_time = '20150101000000.0000000'
)
)
)
iv_environment = |string|
iv_service = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_string = lo_result->get_service( ).
lv_string = lo_result->get_environment( ).
LOOP AT lo_result->get_unprocessedstatusevents( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_instrumentationtype = lo_row_1->get_instrumentationtype( ).
lv_dynamicinstrumentations = lo_row_1->get_signaltype( ).
lv_string = lo_row_1->get_locationhash( ).
lv_instrumentationconfigur = lo_row_1->get_status( ).
lv_timestamp = lo_row_1->get_time( ).
lv_unprocessedstatuseventf = lo_row_1->get_failedreason( ).
ENDIF.
ENDLOOP.
ENDIF.