/AWS1/IF_PIE=>GETDIMENSIONKEYDETAILS()¶
About GetDimensionKeyDetails¶
Get the attributes of the specified dimension group for a DB instance or data source. For example, if you specify a SQL ID,
GetDimensionKeyDetails retrieves the full text of the dimension db.sql.statement associated with this ID.
This operation is useful because GetResourceMetrics and DescribeDimensionKeys don't support retrieval of large
SQL statement text, lock snapshots, and execution plans.
Method Signature¶
METHODS /AWS1/IF_PIE~GETDIMENSIONKEYDETAILS
  IMPORTING
    !IV_SERVICETYPE TYPE /AWS1/PIESERVICETYPE OPTIONAL
    !IV_IDENTIFIER TYPE /AWS1/PIEIDENTIFIERSTRING OPTIONAL
    !IV_GROUP TYPE /AWS1/PIEREQUESTSTRING OPTIONAL
    !IV_GROUPIDENTIFIER TYPE /AWS1/PIEREQUESTSTRING OPTIONAL
    !IT_REQUESTEDDIMENSIONS TYPE /AWS1/CL_PIEREQEDDIMENSIONLS00=>TT_REQUESTEDDIMENSIONLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_piegetdimensionkeyd01
  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 data. The only valid value is
RDS.
iv_identifier TYPE /AWS1/PIEIDENTIFIERSTRING /AWS1/PIEIDENTIFIERSTRING¶
The ID for a data source from which to gather dimension data. This ID must be immutable and unique within an Amazon Web Services Region. When a DB instance is the data source, specify its
DbiResourceIdvalue. For example, specifydb-ABCDEFGHIJKLMNOPQRSTU1VW2X.
iv_group TYPE /AWS1/PIEREQUESTSTRING /AWS1/PIEREQUESTSTRING¶
The name of the dimension group. Performance Insights searches the specified group for the dimension group ID. The following group name values are valid:
db.execution_plan(Amazon RDS and Aurora only)
db.lock_snapshot(Aurora only)
db.query(Amazon DocumentDB only)
db.sql(Amazon RDS and Aurora only)
iv_groupidentifier TYPE /AWS1/PIEREQUESTSTRING /AWS1/PIEREQUESTSTRING¶
The ID of the dimension group from which to retrieve dimension details. For dimension group
db.sql, the group ID isdb.sql.id. The following group ID values are valid:
db.execution_plan.idfor dimension groupdb.execution_plan(Aurora and RDS only)
db.sql.idfor dimension groupdb.sql(Aurora and RDS only)
db.query.idfor dimension groupdb.query(DocumentDB only)
For the dimension group
db.lock_snapshot, theGroupIdentifieris the epoch timestamp when Performance Insights captured the snapshot, in seconds. You can retrieve this value with theGetResourceMetricsoperation for a 1 second period.
Optional arguments:¶
it_requesteddimensions TYPE /AWS1/CL_PIEREQEDDIMENSIONLS00=>TT_REQUESTEDDIMENSIONLIST TT_REQUESTEDDIMENSIONLIST¶
A list of dimensions to retrieve the detail data for within the given dimension group. If you don't specify this parameter, Performance Insights returns all dimension data within the specified dimension group. Specify dimension names for the following dimension groups:
db.execution_plan- Specify the dimension namedb.execution_plan.raw_planor the short dimension nameraw_plan(Amazon RDS and Aurora only)
db.lock_snapshot- Specify the dimension namedb.lock_snapshot.lock_treesor the short dimension namelock_trees. (Aurora only)
db.sql- Specify either the full dimension namedb.sql.statementor the short dimension namestatement(Aurora and RDS only).
db.query- Specify either the full dimension namedb.query.statementor the short dimension namestatement(DocumentDB only).
RETURNING¶
oo_output TYPE REF TO /aws1/cl_piegetdimensionkeyd01 /AWS1/CL_PIEGETDIMENSIONKEYD01¶
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->getdimensionkeydetails(
  it_requesteddimensions = VALUE /aws1/cl_piereqeddimensionls00=>tt_requesteddimensionlist(
    ( new /aws1/cl_piereqeddimensionls00( |string| ) )
  )
  iv_group = |string|
  iv_groupidentifier = |string|
  iv_identifier = |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_dimensions( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_string = lo_row_1->get_value( ).
      lv_string = lo_row_1->get_dimension( ).
      lv_detailstatus = lo_row_1->get_status( ).
    ENDIF.
  ENDLOOP.
ENDIF.