/AWS1/IF_FCS=>CREATEMONITOR()¶
About CreateMonitor¶
Creates a predictor monitor resource for an existing auto predictor. Predictor monitoring allows you to see how your predictor's performance changes over time. For more information, see Predictor Monitoring.
Method Signature¶
METHODS /AWS1/IF_FCS~CREATEMONITOR
IMPORTING
!IV_MONITORNAME TYPE /AWS1/FCSNAME OPTIONAL
!IV_RESOURCEARN TYPE /AWS1/FCSARN OPTIONAL
!IT_TAGS TYPE /AWS1/CL_FCSTAG=>TT_TAGS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fcscreatemonitorrsp
RAISING
/AWS1/CX_FCSINVALIDINPUTEX
/AWS1/CX_FCSLIMITEXCEEDEDEX
/AWS1/CX_FCSRESRCALRDYEXISTSEX
/AWS1/CX_FCSRESOURCEINUSEEX
/AWS1/CX_FCSRESOURCENOTFOUNDEX
/AWS1/CX_FCSCLIENTEXC
/AWS1/CX_FCSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_monitorname TYPE /AWS1/FCSNAME /AWS1/FCSNAME¶
The name of the monitor resource.
iv_resourcearn TYPE /AWS1/FCSARN /AWS1/FCSARN¶
The Amazon Resource Name (ARN) of the predictor to monitor.
Optional arguments:¶
it_tags TYPE /AWS1/CL_FCSTAG=>TT_TAGS TT_TAGS¶
A list of tags to apply to the monitor resource.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_fcscreatemonitorrsp /AWS1/CL_FCSCREATEMONITORRSP¶
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->createmonitor(
it_tags = VALUE /aws1/cl_fcstag=>tt_tags(
(
new /aws1/cl_fcstag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_monitorname = |string|
iv_resourcearn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_arn = lo_result->get_monitorarn( ).
ENDIF.