/AWS1/IF_EVY=>LISTEXPERIMENTS()
¶
About ListExperiments¶
Returns configuration details about all the experiments in the specified project.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_project
TYPE /AWS1/EVYPROJECTREF
/AWS1/EVYPROJECTREF
¶
The name or ARN of the project to return the experiment list from.
Optional arguments:¶
iv_maxresults
TYPE /AWS1/EVYMAXEXPERIMENTS
/AWS1/EVYMAXEXPERIMENTS
¶
The maximum number of results to include in the response.
iv_nexttoken
TYPE /AWS1/EVYNEXTTOKEN
/AWS1/EVYNEXTTOKEN
¶
The token to use when requesting the next set of results. You received this token from a previous
ListExperiments
operation.
iv_status
TYPE /AWS1/EVYEXPERIMENTSTATUS
/AWS1/EVYEXPERIMENTSTATUS
¶
Use this optional parameter to limit the returned results to only the experiments with the status that you specify here.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_evylistexperimentsrsp
/AWS1/CL_EVYLISTEXPERIMENTSRSP
¶
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->/aws1/if_evy~listexperiments(
iv_maxresults = 123
iv_nexttoken = |string|
iv_project = |string|
iv_status = |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_experiments( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_experimentarn = lo_row_1->get_arn( ).
lv_experimentname = lo_row_1->get_name( ).
lv_projectarn = lo_row_1->get_project( ).
lv_experimentstatus = lo_row_1->get_status( ).
lv_description = lo_row_1->get_statusreason( ).
lv_description = lo_row_1->get_description( ).
lv_timestamp = lo_row_1->get_createdtime( ).
lv_timestamp = lo_row_1->get_lastupdatedtime( ).
lo_experimentschedule = lo_row_1->get_schedule( ).
IF lo_experimentschedule IS NOT INITIAL.
lv_timestamp = lo_experimentschedule->get_analysiscompletetime( ).
ENDIF.
lo_experimentexecution = lo_row_1->get_execution( ).
IF lo_experimentexecution IS NOT INITIAL.
lv_timestamp = lo_experimentexecution->get_startedtime( ).
lv_timestamp = lo_experimentexecution->get_endedtime( ).
ENDIF.
LOOP AT lo_row_1->get_treatments( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_treatmentname = lo_row_3->get_name( ).
lv_description = lo_row_3->get_description( ).
LOOP AT lo_row_3->get_featurevariations( ) into ls_row_4.
lv_key = ls_row_4-key.
lo_value = ls_row_4-value.
IF lo_value IS NOT INITIAL.
lv_variationname = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_metricgoals( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lo_metricdefinition = lo_row_6->get_metricdefinition( ).
IF lo_metricdefinition IS NOT INITIAL.
lv_cwdimensionsafename = lo_metricdefinition->get_name( ).
lv_jsonpath = lo_metricdefinition->get_entityidkey( ).
lv_jsonpath = lo_metricdefinition->get_valuekey( ).
lv_jsonvalue = lo_metricdefinition->get_eventpattern( ).
lv_metricunitlabel = lo_metricdefinition->get_unitlabel( ).
ENDIF.
lv_changedirectionenum = lo_row_6->get_desiredchange( ).
ENDIF.
ENDLOOP.
lv_randomizationsalt = lo_row_1->get_randomizationsalt( ).
lv_splitweight = lo_row_1->get_samplingrate( ).
lv_segmentarn = lo_row_1->get_segment( ).
lv_experimenttype = lo_row_1->get_type( ).
lo_onlineabdefinition = lo_row_1->get_onlineabdefinition( ).
IF lo_onlineabdefinition IS NOT INITIAL.
lv_treatmentname = lo_onlineabdefinition->get_controltreatmentname( ).
LOOP AT lo_onlineabdefinition->get_treatmentweights( ) into ls_row_7.
lv_key_1 = ls_row_7-key.
lo_value_1 = ls_row_7-value.
IF lo_value_1 IS NOT INITIAL.
lv_splitweight = lo_value_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_row_1->get_tags( ) into ls_row_8.
lv_key_2 = ls_row_8-key.
lo_value_2 = ls_row_8-value.
IF lo_value_2 IS NOT INITIAL.
lv_tagvalue = lo_value_2->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.