/AWS1/IF_ML=>DESCRIBEMLMODELS()¶
About DescribeMLModels¶
Returns a list of MLModel that match the search criteria in the request.
Method Signature¶
METHODS /AWS1/IF_ML~DESCRIBEMLMODELS
IMPORTING
!IV_FILTERVARIABLE TYPE /AWS1/ML_MLMODELFILTERVARIABLE OPTIONAL
!IV_EQ TYPE /AWS1/ML_COMPARATORVALUE OPTIONAL
!IV_GT TYPE /AWS1/ML_COMPARATORVALUE OPTIONAL
!IV_LT TYPE /AWS1/ML_COMPARATORVALUE OPTIONAL
!IV_GE TYPE /AWS1/ML_COMPARATORVALUE OPTIONAL
!IV_LE TYPE /AWS1/ML_COMPARATORVALUE OPTIONAL
!IV_NE TYPE /AWS1/ML_COMPARATORVALUE OPTIONAL
!IV_PREFIX TYPE /AWS1/ML_COMPARATORVALUE OPTIONAL
!IV_SORTORDER TYPE /AWS1/ML_SORTORDER OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/ML_STRINGTYPE OPTIONAL
!IV_LIMIT TYPE /AWS1/ML_PAGELIMIT OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ml_descrmlmodelsout
RAISING
/AWS1/CX_ML_INTERNALSERVEREX
/AWS1/CX_ML_INVALIDINPUTEX
/AWS1/CX_ML_CLIENTEXC
/AWS1/CX_ML_SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_filtervariable TYPE /AWS1/ML_MLMODELFILTERVARIABLE /AWS1/ML_MLMODELFILTERVARIABLE¶
Use one of the following variables to filter a list of
MLModel:
CreatedAt- Sets the search criteria toMLModelcreation date.
Status- Sets the search criteria toMLModelstatus.
Name- Sets the search criteria to the contents ofMLModelName.
IAMUser- Sets the search criteria to the user account that invoked theMLModelcreation.
TrainingDataSourceId- Sets the search criteria to theDataSourceused to train one or moreMLModel.
RealtimeEndpointStatus- Sets the search criteria to theMLModelreal-time endpoint status.
MLModelType- Sets the search criteria toMLModeltype: binary, regression, or multi-class.
Algorithm- Sets the search criteria to the algorithm that theMLModeluses.
TrainingDataURI- Sets the search criteria to the data file(s) used in training aMLModel. The URL can identify either a file or an Amazon Simple Storage Service (Amazon S3) bucket or directory.
iv_eq TYPE /AWS1/ML_COMPARATORVALUE /AWS1/ML_COMPARATORVALUE¶
The equal to operator. The
MLModelresults will haveFilterVariablevalues that exactly match the value specified withEQ.
iv_gt TYPE /AWS1/ML_COMPARATORVALUE /AWS1/ML_COMPARATORVALUE¶
The greater than operator. The
MLModelresults will haveFilterVariablevalues that are greater than the value specified withGT.
iv_lt TYPE /AWS1/ML_COMPARATORVALUE /AWS1/ML_COMPARATORVALUE¶
The less than operator. The
MLModelresults will haveFilterVariablevalues that are less than the value specified withLT.
iv_ge TYPE /AWS1/ML_COMPARATORVALUE /AWS1/ML_COMPARATORVALUE¶
The greater than or equal to operator. The
MLModelresults will haveFilterVariablevalues that are greater than or equal to the value specified withGE.
iv_le TYPE /AWS1/ML_COMPARATORVALUE /AWS1/ML_COMPARATORVALUE¶
The less than or equal to operator. The
MLModelresults will haveFilterVariablevalues that are less than or equal to the value specified withLE.
iv_ne TYPE /AWS1/ML_COMPARATORVALUE /AWS1/ML_COMPARATORVALUE¶
The not equal to operator. The
MLModelresults will haveFilterVariablevalues not equal to the value specified withNE.
iv_prefix TYPE /AWS1/ML_COMPARATORVALUE /AWS1/ML_COMPARATORVALUE¶
A string that is found at the beginning of a variable, such as
NameorId.For example, an
MLModelcould have theName2014-09-09-HolidayGiftMailer. To search for thisMLModel, selectNamefor theFilterVariableand any of the following strings for thePrefix:
2014-09
2014-09-09
2014-09-09-Holiday
iv_sortorder TYPE /AWS1/ML_SORTORDER /AWS1/ML_SORTORDER¶
A two-value parameter that determines the sequence of the resulting list of
MLModel.
asc- Arranges the list in ascending order (A-Z, 0-9).
dsc- Arranges the list in descending order (Z-A, 9-0).Results are sorted by
FilterVariable.
iv_nexttoken TYPE /AWS1/ML_STRINGTYPE /AWS1/ML_STRINGTYPE¶
The ID of the page in the paginated results.
iv_limit TYPE /AWS1/ML_PAGELIMIT /AWS1/ML_PAGELIMIT¶
The number of pages of information to include in the result. The range of acceptable values is
1through100. The default value is100.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ml_descrmlmodelsout /AWS1/CL_ML_DESCRMLMODELSOUT¶
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->describemlmodels(
iv_eq = |string|
iv_filtervariable = |string|
iv_ge = |string|
iv_gt = |string|
iv_le = |string|
iv_limit = 123
iv_lt = |string|
iv_ne = |string|
iv_nexttoken = |string|
iv_prefix = |string|
iv_sortorder = |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_results( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_entityid = lo_row_1->get_mlmodelid( ).
lv_entityid = lo_row_1->get_trainingdatasourceid( ).
lv_awsuserarn = lo_row_1->get_createdbyiamuser( ).
lv_epochtime = lo_row_1->get_createdat( ).
lv_epochtime = lo_row_1->get_lastupdatedat( ).
lv_mlmodelname = lo_row_1->get_name( ).
lv_entitystatus = lo_row_1->get_status( ).
lv_longtype = lo_row_1->get_sizeinbytes( ).
lo_realtimeendpointinfo = lo_row_1->get_endpointinfo( ).
IF lo_realtimeendpointinfo IS NOT INITIAL.
lv_integertype = lo_realtimeendpointinfo->get_peakrequestspersecond( ).
lv_epochtime = lo_realtimeendpointinfo->get_createdat( ).
lv_vipurl = lo_realtimeendpointinfo->get_endpointurl( ).
lv_realtimeendpointstatus = lo_realtimeendpointinfo->get_endpointstatus( ).
ENDIF.
LOOP AT lo_row_1->get_trainingparameters( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_stringtype = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_s3url = lo_row_1->get_inputdatalocations3( ).
lv_algorithm = lo_row_1->get_algorithm( ).
lv_mlmodeltype = lo_row_1->get_mlmodeltype( ).
lv_scorethreshold = lo_row_1->get_scorethreshold( ).
lv_epochtime = lo_row_1->get_scorethreshlastupdatedat( ).
lv_message = lo_row_1->get_message( ).
lv_longtype = lo_row_1->get_computetime( ).
lv_epochtime = lo_row_1->get_finishedat( ).
lv_epochtime = lo_row_1->get_startedat( ).
ENDIF.
ENDLOOP.
lv_stringtype = lo_result->get_nexttoken( ).
ENDIF.