Skip to content

/AWS1/CL_CRL=>GETCOLLABORATIONTRAINEDMODEL()

About GetCollaborationTrainedModel

Returns information about a trained model in a collaboration.

Method Signature

IMPORTING

Required arguments:

iv_trainedmodelarn TYPE /AWS1/CRLTRAINEDMODELARN /AWS1/CRLTRAINEDMODELARN

The Amazon Resource Name (ARN) of the trained model that you want to return information about.

iv_collaborationidentifier TYPE /AWS1/CRLUUID /AWS1/CRLUUID

The collaboration ID that contains the trained model that you want to return information about.

RETURNING

oo_output TYPE REF TO /aws1/cl_crlgetcollaboration05 /AWS1/CL_CRLGETCOLLABORATION05

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_crl~getcollaborationtrainedmodel(
  iv_collaborationidentifier = |string|
  iv_trainedmodelarn = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_uuid = lo_result->get_membershipidentifier( ).
  lv_uuid = lo_result->get_collaborationidentifier( ).
  lv_trainedmodelarn = lo_result->get_trainedmodelarn( ).
  lv_namestring = lo_result->get_name( ).
  lv_resourcedescription = lo_result->get_description( ).
  lv_trainedmodelstatus = lo_result->get_status( ).
  lo_statusdetails = lo_result->get_statusdetails( ).
  IF lo_statusdetails IS NOT INITIAL.
    lv_string = lo_statusdetails->get_statuscode( ).
    lv_string = lo_statusdetails->get_message( ).
  ENDIF.
  lv_configuredmodelalgorith = lo_result->get_cfguredmdelalgassociat01( ).
  lo_resourceconfig = lo_result->get_resourceconfig( ).
  IF lo_resourceconfig IS NOT INITIAL.
    lv_integer = lo_resourceconfig->get_instancecount( ).
    lv_instancetype = lo_resourceconfig->get_instancetype( ).
    lv_integer = lo_resourceconfig->get_volumesizeingb( ).
  ENDIF.
  lo_stoppingcondition = lo_result->get_stoppingcondition( ).
  IF lo_stoppingcondition IS NOT INITIAL.
    lv_integer = lo_stoppingcondition->get_maxruntimeinseconds( ).
  ENDIF.
  lv_metricsstatus = lo_result->get_metricsstatus( ).
  lv_string = lo_result->get_metricsstatusdetails( ).
  lv_logsstatus = lo_result->get_logsstatus( ).
  lv_string = lo_result->get_logsstatusdetails( ).
  lv_string = lo_result->get_trncontainerimagedigest( ).
  lv_timestamp = lo_result->get_createtime( ).
  lv_timestamp = lo_result->get_updatetime( ).
  lv_accountid = lo_result->get_creatoraccountid( ).
ENDIF.