/AWS1/CL_GLU=>GETMLTASKRUNS()
¶
About GetMLTaskRuns¶
Gets a list of runs for a machine learning transform. Machine learning task runs are
asynchronous tasks that Glue runs on your behalf as part of various machine learning
workflows. You can get a sortable, filterable list of machine learning task runs by calling
GetMLTaskRuns
with their parent transform's TransformID
and other
optional parameters as documented in this section.
This operation returns a list of historic runs and must be paginated.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_transformid
TYPE /AWS1/GLUHASHSTRING
/AWS1/GLUHASHSTRING
¶
The unique identifier of the machine learning transform.
Optional arguments:¶
iv_nexttoken
TYPE /AWS1/GLUPAGINATIONTOKEN
/AWS1/GLUPAGINATIONTOKEN
¶
A token for pagination of the results. The default is empty.
iv_maxresults
TYPE /AWS1/GLUPAGESIZE
/AWS1/GLUPAGESIZE
¶
The maximum number of results to return.
io_filter
TYPE REF TO /AWS1/CL_GLUTASKRUNFILTERCRIT
/AWS1/CL_GLUTASKRUNFILTERCRIT
¶
The filter criteria, in the
TaskRunFilterCriteria
structure, for the task run.
io_sort
TYPE REF TO /AWS1/CL_GLUTASKRUNSORTCRIT
/AWS1/CL_GLUTASKRUNSORTCRIT
¶
The sorting criteria, in the
TaskRunSortCriteria
structure, for the task run.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_glugetmltaskrunsrsp
/AWS1/CL_GLUGETMLTASKRUNSRSP
¶
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_glu~getmltaskruns(
io_filter = new /aws1/cl_glutaskrunfiltercrit(
iv_startedafter = '20150101000000.0000000'
iv_startedbefore = '20150101000000.0000000'
iv_status = |string|
iv_taskruntype = |string|
)
io_sort = new /aws1/cl_glutaskrunsortcrit(
iv_column = |string|
iv_sortdirection = |string|
)
iv_maxresults = 123
iv_nexttoken = |string|
iv_transformid = |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_taskruns( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_hashstring = lo_row_1->get_transformid( ).
lv_hashstring = lo_row_1->get_taskrunid( ).
lv_taskstatustype = lo_row_1->get_status( ).
lv_genericstring = lo_row_1->get_loggroupname( ).
lo_taskrunproperties = lo_row_1->get_properties( ).
IF lo_taskrunproperties IS NOT INITIAL.
lv_tasktype = lo_taskrunproperties->get_tasktype( ).
lo_importlabelstaskrunprop = lo_taskrunproperties->get_importlabelstaskrunprps( ).
IF lo_importlabelstaskrunprop IS NOT INITIAL.
lv_uristring = lo_importlabelstaskrunprop->get_inputs3path( ).
lv_replaceboolean = lo_importlabelstaskrunprop->get_replace( ).
ENDIF.
lo_exportlabelstaskrunprop = lo_taskrunproperties->get_exportlabelstaskrunprps( ).
IF lo_exportlabelstaskrunprop IS NOT INITIAL.
lv_uristring = lo_exportlabelstaskrunprop->get_outputs3path( ).
ENDIF.
lo_labelingsetgenerationta = lo_taskrunproperties->get_labelingsetgenerationt00( ).
IF lo_labelingsetgenerationta IS NOT INITIAL.
lv_uristring = lo_labelingsetgenerationta->get_outputs3path( ).
ENDIF.
lo_findmatchestaskrunprope = lo_taskrunproperties->get_findmatchestaskrunprps( ).
IF lo_findmatchestaskrunprope IS NOT INITIAL.
lv_hashstring = lo_findmatchestaskrunprope->get_jobid( ).
lv_namestring = lo_findmatchestaskrunprope->get_jobname( ).
lv_hashstring = lo_findmatchestaskrunprope->get_jobrunid( ).
ENDIF.
ENDIF.
lv_genericstring = lo_row_1->get_errorstring( ).
lv_timestamp = lo_row_1->get_startedon( ).
lv_timestamp = lo_row_1->get_lastmodifiedon( ).
lv_timestamp = lo_row_1->get_completedon( ).
lv_executiontime = lo_row_1->get_executiontime( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.