/AWS1/CL_GUP=>GETRECOMMENDATIONS()
¶
About GetRecommendations¶
Returns a list of
Recommendation
objects that contain recommendations for a profiling group for a given time period. A list of
Anomaly
objects that contains details about anomalies detected in the profiling group for the same time period is also
returned.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_profilinggroupname
TYPE /AWS1/GUPPROFILINGGROUPNAME
/AWS1/GUPPROFILINGGROUPNAME
¶
The name of the profiling group to get analysis data about.
iv_starttime
TYPE /AWS1/GUPTIMESTAMP
/AWS1/GUPTIMESTAMP
¶
The end time of the profile to get analysis data about. You must specify
startTime
andendTime
. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
iv_endtime
TYPE /AWS1/GUPTIMESTAMP
/AWS1/GUPTIMESTAMP
¶
The start time of the profile to get analysis data about. You must specify
startTime
andendTime
. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
Optional arguments:¶
iv_locale
TYPE /AWS1/GUPLOCALE
/AWS1/GUPLOCALE
¶
The language used to provide analysis. Specify using a string that is one of the following
BCP 47
language codes.
de-DE
- German, Germany
en-GB
- English, United Kingdom
en-US
- English, United States
es-ES
- Spanish, Spain
fr-FR
- French, France
it-IT
- Italian, Italy
ja-JP
- Japanese, Japan
ko-KR
- Korean, Republic of Korea
pt-BR
- Portugese, Brazil
zh-CN
- Chinese, China
zh-TW
- Chinese, Taiwan
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_gupgetrecommendatio01
/AWS1/CL_GUPGETRECOMMENDATIO01
¶
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_gup~getrecommendations(
iv_endtime = '20150101000000.0000000'
iv_locale = |string|
iv_profilinggroupname = |string|
iv_starttime = '20150101000000.0000000'
).
This is an example of reading all possible response values
lv_profilinggroupname = lo_result->get_profilinggroupname( ).
lv_timestamp = lo_result->get_profilestarttime( ).
lv_timestamp = lo_result->get_profileendtime( ).
LOOP AT lo_result->get_recommendations( ) into lo_row.
lv_integer = lo_row_1->get_allmatchescount( ).
lv_double = lo_row_1->get_allmatchessum( ).
lv_string = lo_pattern->get_id( ).
lv_string = lo_pattern->get_name( ).
lv_string = lo_pattern->get_description( ).
lv_string = lo_pattern->get_resolutionsteps( ).
LOOP AT lo_pattern->get_targetframes( ) into lt_row_2.
LOOP AT lt_row_2 into lo_row_3.
lv_string = lo_row_4->get_value( ).
ENDLOOP.
ENDLOOP.
lv_percentage = lo_pattern->get_thresholdpercent( ).
LOOP AT lo_pattern->get_counterstoaggregate( ) into lo_row_5.
lv_string = lo_row_6->get_value( ).
ENDLOOP.
LOOP AT lo_row_1->get_topmatches( ) into lo_row_7.
lv_integer = lo_row_8->get_targetframesindex( ).
lv_string = lo_row_8->get_frameaddress( ).
lv_double = lo_row_8->get_thresholdbreachvalue( ).
ENDLOOP.
lv_timestamp = lo_row_1->get_starttime( ).
lv_timestamp = lo_row_1->get_endtime( ).
ENDLOOP.
LOOP AT lo_result->get_anomalies( ) into lo_row_9.
lv_string = lo_metric->get_framename( ).
lv_metrictype = lo_metric->get_type( ).
LOOP AT lo_metric->get_threadstates( ) into lo_row_5.
lv_string = lo_row_6->get_value( ).
ENDLOOP.
lv_string = lo_row_10->get_reason( ).
LOOP AT lo_row_10->get_instances( ) into lo_row_11.
lv_string = lo_row_12->get_id( ).
lv_timestamp = lo_row_12->get_starttime( ).
lv_timestamp = lo_row_12->get_endtime( ).
lv_feedbacktype = lo_userfeedback->get_type( ).
ENDLOOP.
ENDLOOP.