/AWS1/IF_PZZ=>UPDATEMETRICATTRIBUTION()¶
About UpdateMetricAttribution¶
Updates a metric attribution.
Method Signature¶
METHODS /AWS1/IF_PZZ~UPDATEMETRICATTRIBUTION
IMPORTING
!IT_ADDMETRICS TYPE /AWS1/CL_PZZMETRICATTRIBUTE=>TT_METRICATTRIBUTES OPTIONAL
!IT_REMOVEMETRICS TYPE /AWS1/CL_PZZMETRICATTRSNAMES00=>TT_METRICATTRIBUTESNAMESLIST OPTIONAL
!IO_METRICSOUTPUTCONFIG TYPE REF TO /AWS1/CL_PZZMETRICATTRIBUTIO00 OPTIONAL
!IV_METRICATTRIBUTIONARN TYPE /AWS1/PZZARN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pzzupmetricattribut01
RAISING
/AWS1/CX_PZZINVALIDINPUTEX
/AWS1/CX_PZZRESRCALRDYEXISTSEX
/AWS1/CX_PZZRESOURCEINUSEEX
/AWS1/CX_PZZRESOURCENOTFOUNDEX
/AWS1/CX_PZZCLIENTEXC
/AWS1/CX_PZZSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
it_addmetrics TYPE /AWS1/CL_PZZMETRICATTRIBUTE=>TT_METRICATTRIBUTES TT_METRICATTRIBUTES¶
Add new metric attributes to the metric attribution.
it_removemetrics TYPE /AWS1/CL_PZZMETRICATTRSNAMES00=>TT_METRICATTRIBUTESNAMESLIST TT_METRICATTRIBUTESNAMESLIST¶
Remove metric attributes from the metric attribution.
io_metricsoutputconfig TYPE REF TO /AWS1/CL_PZZMETRICATTRIBUTIO00 /AWS1/CL_PZZMETRICATTRIBUTIO00¶
An output config for the metric attribution.
iv_metricattributionarn TYPE /AWS1/PZZARN /AWS1/PZZARN¶
The Amazon Resource Name (ARN) for the metric attribution to update.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_pzzupmetricattribut01 /AWS1/CL_PZZUPMETRICATTRIBUT01¶
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->updatemetricattribution(
io_metricsoutputconfig = new /aws1/cl_pzzmetricattributio00(
io_s3datadestination = new /aws1/cl_pzzs3dataconfig(
iv_kmskeyarn = |string|
iv_path = |string|
)
iv_rolearn = |string|
)
it_addmetrics = VALUE /aws1/cl_pzzmetricattribute=>tt_metricattributes(
(
new /aws1/cl_pzzmetricattribute(
iv_eventtype = |string|
iv_expression = |string|
iv_metricname = |string|
)
)
)
it_removemetrics = VALUE /aws1/cl_pzzmetricattrsnames00=>tt_metricattributesnameslist(
( new /aws1/cl_pzzmetricattrsnames00( |string| ) )
)
iv_metricattributionarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_arn = lo_result->get_metricattributionarn( ).
ENDIF.