/AWS1/IF_LOM=>GETANOMALYGROUP()¶
About GetAnomalyGroup¶
Returns details about a group of anomalous metrics.
Method Signature¶
METHODS /AWS1/IF_LOM~GETANOMALYGROUP
IMPORTING
!IV_ANOMALYGROUPID TYPE /AWS1/LOMUUID OPTIONAL
!IV_ANOMALYDETECTORARN TYPE /AWS1/LOMARN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lomgetanomalygrouprsp
RAISING
/AWS1/CX_LOMACCESSDENIEDEX
/AWS1/CX_LOMINTERNALSERVEREX
/AWS1/CX_LOMRESOURCENOTFOUNDEX
/AWS1/CX_LOMTOOMANYREQUESTSEX
/AWS1/CX_LOMVALIDATIONEX
/AWS1/CX_LOMCLIENTEXC
/AWS1/CX_LOMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_anomalygroupid TYPE /AWS1/LOMUUID /AWS1/LOMUUID¶
The ID of the anomaly group.
iv_anomalydetectorarn TYPE /AWS1/LOMARN /AWS1/LOMARN¶
The Amazon Resource Name (ARN) of the anomaly detector.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lomgetanomalygrouprsp /AWS1/CL_LOMGETANOMALYGROUPRSP¶
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->getanomalygroup(
iv_anomalydetectorarn = |string|
iv_anomalygroupid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_anomalygroup = lo_result->get_anomalygroup( ).
IF lo_anomalygroup IS NOT INITIAL.
lv_timestampstring = lo_anomalygroup->get_starttime( ).
lv_timestampstring = lo_anomalygroup->get_endtime( ).
lv_uuid = lo_anomalygroup->get_anomalygroupid( ).
lv_score = lo_anomalygroup->get_anomalygroupscore( ).
lv_metricname = lo_anomalygroup->get_primarymetricname( ).
LOOP AT lo_anomalygroup->get_metriclevelimpactlist( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_metricname = lo_row_1->get_metricname( ).
lv_integer = lo_row_1->get_numtimeseries( ).
lo_contributionmatrix = lo_row_1->get_contributionmatrix( ).
IF lo_contributionmatrix IS NOT INITIAL.
LOOP AT lo_contributionmatrix->get_dimensioncontributionlst( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_columnname = lo_row_3->get_dimensionname( ).
LOOP AT lo_row_3->get_dimensionvalcontributi00( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_dimensionvalue = lo_row_5->get_dimensionvalue( ).
lv_score = lo_row_5->get_contributionscore( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.