/AWS1/IF_ML=>GETEVALUATION()¶
About GetEvaluation¶
Returns an Evaluation that includes metadata as well as the current status of the Evaluation.
Method Signature¶
METHODS /AWS1/IF_ML~GETEVALUATION
IMPORTING
!IV_EVALUATIONID TYPE /AWS1/ML_ENTITYID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ml_getevaloutput
RAISING
/AWS1/CX_ML_INTERNALSERVEREX
/AWS1/CX_ML_INVALIDINPUTEX
/AWS1/CX_ML_RESOURCENOTFOUNDEX
/AWS1/CX_ML_CLIENTEXC
/AWS1/CX_ML_SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_evaluationid TYPE /AWS1/ML_ENTITYID /AWS1/ML_ENTITYID¶
The ID of the
Evaluationto retrieve. The evaluation of eachMLModelis recorded and cataloged. The ID provides the means to access the information.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ml_getevaloutput /AWS1/CL_ML_GETEVALOUTPUT¶
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->getevaluation( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_entityid = lo_result->get_evaluationid( ).
lv_entityid = lo_result->get_mlmodelid( ).
lv_entityid = lo_result->get_evaluationdatasourceid( ).
lv_s3url = lo_result->get_inputdatalocations3( ).
lv_awsuserarn = lo_result->get_createdbyiamuser( ).
lv_epochtime = lo_result->get_createdat( ).
lv_epochtime = lo_result->get_lastupdatedat( ).
lv_entityname = lo_result->get_name( ).
lv_entitystatus = lo_result->get_status( ).
lo_performancemetrics = lo_result->get_performancemetrics( ).
IF lo_performancemetrics IS NOT INITIAL.
LOOP AT lo_performancemetrics->get_properties( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_performancemetricsprope = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_presigneds3url = lo_result->get_loguri( ).
lv_message = lo_result->get_message( ).
lv_longtype = lo_result->get_computetime( ).
lv_epochtime = lo_result->get_finishedat( ).
lv_epochtime = lo_result->get_startedat( ).
ENDIF.