/AWS1/CL_AMP=>UPDATESCRAPER()
¶
About UpdateScraper¶
Updates an existing scraper.
You can't use this function to update the source from which the scraper is collecting metrics. To change the source, delete the scraper and create a new one.
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_SCRAPERID
TYPE /AWS1/AMPSCRAPERID
/AWS1/AMPSCRAPERID
¶
The ID of the scraper to update.
Optional arguments:¶
IV_ALIAS
TYPE /AWS1/AMPSCRAPERALIAS
/AWS1/AMPSCRAPERALIAS
¶
The new alias of the scraper.
IO_SCRAPECONFIGURATION
TYPE REF TO /AWS1/CL_AMPSCRAPECONF
/AWS1/CL_AMPSCRAPECONF
¶
Contains the base-64 encoded YAML configuration for the scraper.
For more information about configuring a scraper, see Using an Amazon Web Services managed collector in the Amazon Managed Service for Prometheus User Guide.
IO_DESTINATION
TYPE REF TO /AWS1/CL_AMPDESTINATION
/AWS1/CL_AMPDESTINATION
¶
The new Amazon Managed Service for Prometheus workspace to send metrics to.
IO_ROLECONFIGURATION
TYPE REF TO /AWS1/CL_AMPROLECONFIGURATION
/AWS1/CL_AMPROLECONFIGURATION
¶
The scraper role configuration for the workspace.
IV_CLIENTTOKEN
TYPE /AWS1/AMPIDEMPOTENCYTOKEN
/AWS1/AMPIDEMPOTENCYTOKEN
¶
A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
RETURNING¶
OO_OUTPUT
TYPE REF TO /AWS1/CL_AMPUPDATESCRAPERRSP
/AWS1/CL_AMPUPDATESCRAPERRSP
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC