Skip to content

The DeleteScraper operation deletes one scraper, and stops any metrics collection that the scraper performs

Description

The delete_scraper operation deletes one scraper, and stops any metrics collection that the scraper performs.

Usage

prometheusservice_delete_scraper(scraperId, clientToken)

Arguments

  • scraperId

    [required] The ID of the scraper to delete.

  • clientToken

    (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.

Value

A list with the following syntax:

list(
  scraperId = "string",
  status = list(
    statusCode = "CREATING"|"UPDATING"|"ACTIVE"|"DELETING"|"CREATION_FAILED"|"UPDATE_FAILED"|"DELETION_FAILED"
  )
)

Request syntax

svc$delete_scraper(
  scraperId = "string",
  clientToken = "string"
)