/AWS1/IF_PIE=>LISTPERFANALYSISREPORTRECS()¶
About ListPerformanceAnalysisReportRecommendations¶
Retrieves recommendations for a performance analysis report.
Method Signature¶
METHODS /AWS1/IF_PIE~LISTPERFANALYSISREPORTRECS
IMPORTING
!IV_SERVICETYPE TYPE /AWS1/PIESERVICETYPE OPTIONAL
!IV_IDENTIFIER TYPE /AWS1/PIEIDENTIFIERSTRING OPTIONAL
!IV_ANALYSISREPORTID TYPE /AWS1/PIEANALYSISREPORTID OPTIONAL
!IT_RECOMMENDATIONIDS TYPE /AWS1/CL_PIERECIDLIST_W=>TT_RECOMMENDATIONIDLIST OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/PIEMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/PIENEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pielstprfalyrptrecs01
RAISING
/AWS1/CX_PIEINTERNALSVCERROR
/AWS1/CX_PIEINVALIDARGUMENTEX
/AWS1/CX_PIENOTAUTHORIZEDEX
/AWS1/CX_PIECLIENTEXC
/AWS1/CX_PIESERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_servicetype TYPE /AWS1/PIESERVICETYPE /AWS1/PIESERVICETYPE¶
The Amazon Web Services service for which Performance Insights returns metrics. Valid value is
RDS.
iv_identifier TYPE /AWS1/PIEIDENTIFIERSTRING /AWS1/PIEIDENTIFIERSTRING¶
An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call
DescribeDBInstances, the identifier is returned asDbiResourceId.To use a DB instance as a data source, specify its
DbiResourceIdvalue. For example, specifydb-ABCDEFGHIJKLMNOPQRSTU1VW2X.
iv_analysisreportid TYPE /AWS1/PIEANALYSISREPORTID /AWS1/PIEANALYSISREPORTID¶
A unique identifier of the created analysis report. For example,
report-12345678901234567
Optional arguments:¶
it_recommendationids TYPE /AWS1/CL_PIERECIDLIST_W=>TT_RECOMMENDATIONIDLIST TT_RECOMMENDATIONIDLIST¶
A list of recommendation identifiers to filter the results.
iv_maxresults TYPE /AWS1/PIEMAXRESULTS /AWS1/PIEMAXRESULTS¶
The maximum number of items to return in the response. If more items exist than the specified
MaxResultsvalue, a pagination token is included in the response so that the remaining results can be retrieved.
iv_nexttoken TYPE /AWS1/PIENEXTTOKEN /AWS1/PIENEXTTOKEN¶
An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by
MaxResults.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_pielstprfalyrptrecs01 /AWS1/CL_PIELSTPRFALYRPTRECS01¶
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->listperfanalysisreportrecs(
it_recommendationids = VALUE /aws1/cl_pierecidlist_w=>tt_recommendationidlist(
( new /aws1/cl_pierecidlist_w( |string| ) )
)
iv_analysisreportid = |string|
iv_identifier = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_servicetype = |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_recommendations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_recommendationid( ).
lv_markdownstring = lo_row_1->get_recommendationdesc( ).
lv_markdownstring = lo_row_1->get_recommendationdetails( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.