/AWS1/IF_CWS=>PUTGROUPINGCONFIGURATION()¶
About PutGroupingConfiguration¶
Creates or updates the grouping configuration for this account. This operation allows you to define custom grouping attributes that determine how services are logically grouped based on telemetry attributes, Amazon Web Services tags, or predefined mappings. These grouping attributes can then be used to organize and filter services in the Application Signals console and APIs.
Method Signature¶
METHODS /AWS1/IF_CWS~PUTGROUPINGCONFIGURATION
IMPORTING
!IT_GROUPINGATTRIBUTEDEFNS TYPE /AWS1/CL_CWSGROUPINGATTRDEFN=>TT_GROUPINGATTRIBUTEDEFNS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwsputgroupingconfout
RAISING
/AWS1/CX_CWSACCESSDENIEDEX
/AWS1/CX_CWSTHROTTLINGEX
/AWS1/CX_CWSVALIDATIONEX
/AWS1/CX_CWSCLIENTEXC
/AWS1/CX_CWSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_groupingattributedefns TYPE /AWS1/CL_CWSGROUPINGATTRDEFN=>TT_GROUPINGATTRIBUTEDEFNS TT_GROUPINGATTRIBUTEDEFNS¶
An array of grouping attribute definitions that specify how services should be grouped. Each definition includes a friendly name, source keys to derive the grouping value from, and an optional default value.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cwsputgroupingconfout /AWS1/CL_CWSPUTGROUPINGCONFOUT¶
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->putgroupingconfiguration(
it_groupingattributedefns = VALUE /aws1/cl_cwsgroupingattrdefn=>tt_groupingattributedefns(
(
new /aws1/cl_cwsgroupingattrdefn(
it_groupingsourcekeys = VALUE /aws1/cl_cwsgringsrckeystrls00=>tt_groupingsourcekeystringlist(
( new /aws1/cl_cwsgringsrckeystrls00( |string| ) )
)
iv_defaultgroupingvalue = |string|
iv_groupingname = |string|
)
)
)
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_groupingconfiguration = lo_result->get_groupingconfiguration( ).
IF lo_groupingconfiguration IS NOT INITIAL.
LOOP AT lo_groupingconfiguration->get_groupingattributedefns( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_groupingstring = lo_row_1->get_groupingname( ).
LOOP AT lo_row_1->get_groupingsourcekeys( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_groupingstring = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_groupingstring = lo_row_1->get_defaultgroupingvalue( ).
ENDIF.
ENDLOOP.
lv_timestamp = lo_groupingconfiguration->get_updatedat( ).
ENDIF.
ENDIF.