PrometheusService / Client / delete_scraper
delete_scraper#
- PrometheusService.Client.delete_scraper(**kwargs)#
- The - DeleteScraperoperation deletes one scraper, and stops any metrics collection that the scraper performs.- See also: AWS API Documentation - Request Syntax- response = client.delete_scraper( clientToken='string', scraperId='string' ) - Parameters:
- clientToken (string) – - (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request. - This field is autopopulated if not provided. 
- scraperId (string) – - [REQUIRED] - The ID of the scraper to delete. 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'scraperId': 'string', 'status': { 'statusCode': 'CREATING'|'ACTIVE'|'DELETING'|'CREATION_FAILED'|'DELETION_FAILED' } } - Response Structure- (dict) – - Represents the output of a - DeleteScraperoperation.- scraperId (string) – - The ID of the scraper to delete. 
- status (dict) – - The current status of the scraper. - statusCode (string) – - The current status of the scraper. 
 
 
 
 - Exceptions- PrometheusService.Client.exceptions.ThrottlingException
- PrometheusService.Client.exceptions.ConflictException
- PrometheusService.Client.exceptions.ValidationException
- PrometheusService.Client.exceptions.ResourceNotFoundException
- PrometheusService.Client.exceptions.AccessDeniedException
- PrometheusService.Client.exceptions.InternalServerException