/AWS1/IF_AMP=>UPDATESCRAPERLOGGINGCONF()¶
About UpdateScraperLoggingConfiguration¶
Updates the logging configuration for a Amazon Managed Service for Prometheus scraper.
Method Signature¶
METHODS /AWS1/IF_AMP~UPDATESCRAPERLOGGINGCONF
IMPORTING
!IV_SCRAPERID TYPE /AWS1/AMPSCRAPERID OPTIONAL
!IO_LOGGINGDESTINATION TYPE REF TO /AWS1/CL_AMPSCRAPERLOGGINGDST OPTIONAL
!IT_SCRAPERCOMPONENTS TYPE /AWS1/CL_AMPSCRAPERCOMPONENT=>TT_SCRAPERCOMPONENTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ampupscraperlogconf01
RAISING
/AWS1/CX_AMPACCESSDENIEDEX
/AWS1/CX_AMPCONFLICTEXCEPTION
/AWS1/CX_AMPINTERNALSERVEREX
/AWS1/CX_AMPRESOURCENOTFOUNDEX
/AWS1/CX_AMPVALIDATIONEX
/AWS1/CX_AMPCLIENTEXC
/AWS1/CX_AMPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_scraperid TYPE /AWS1/AMPSCRAPERID /AWS1/AMPSCRAPERID¶
The ID of the scraper whose logging configuration will be updated.
io_loggingdestination TYPE REF TO /AWS1/CL_AMPSCRAPERLOGGINGDST /AWS1/CL_AMPSCRAPERLOGGINGDST¶
The destination where scraper logs will be sent.
Optional arguments:¶
it_scrapercomponents TYPE /AWS1/CL_AMPSCRAPERCOMPONENT=>TT_SCRAPERCOMPONENTS TT_SCRAPERCOMPONENTS¶
The list of scraper components to configure for logging.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ampupscraperlogconf01 /AWS1/CL_AMPUPSCRAPERLOGCONF01¶
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->updatescraperloggingconf(
io_loggingdestination = new /aws1/cl_ampscraperloggingdst( new /aws1/cl_ampcloudwatchlogdst( |string| ) )
it_scrapercomponents = VALUE /aws1/cl_ampscrapercomponent=>tt_scrapercomponents(
(
new /aws1/cl_ampscrapercomponent(
io_config = new /aws1/cl_ampcomponentconfig(
it_options = VALUE /aws1/cl_ampstringmap_w=>tt_stringmap(
(
VALUE /aws1/cl_ampstringmap_w=>ts_stringmap_maprow(
value = new /aws1/cl_ampstringmap_w( |string| )
key = |string|
)
)
)
)
iv_type = |string|
)
)
)
iv_scraperid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_scraperloggingconfigura = lo_result->get_status( ).
IF lo_scraperloggingconfigura IS NOT INITIAL.
lv_scraperloggingconfigura_1 = lo_scraperloggingconfigura->get_statuscode( ).
lv_string = lo_scraperloggingconfigura->get_statusreason( ).
ENDIF.
ENDIF.