Interface ScraperDescription.Builder

    • Method Detail

      • alias

        ScraperDescription.Builder alias​(String alias)

        (Optional) A name associated with the scraper.

        Parameters:
        alias - (Optional) A name associated with the scraper.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • arn

        ScraperDescription.Builder arn​(String arn)

        The Amazon Resource Name (ARN) of the scraper. For example, arn:aws:aps:<region>:123456798012:scraper/s-example1-1234-abcd-5678-ef9012abcd34.

        Parameters:
        arn - The Amazon Resource Name (ARN) of the scraper. For example, arn:aws:aps:<region>:123456798012:scraper/s-example1-1234-abcd-5678-ef9012abcd34.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • createdAt

        ScraperDescription.Builder createdAt​(Instant createdAt)

        The date and time that the scraper was created.

        Parameters:
        createdAt - The date and time that the scraper was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • destination

        ScraperDescription.Builder destination​(Destination destination)

        The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.

        Parameters:
        destination - The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastModifiedAt

        ScraperDescription.Builder lastModifiedAt​(Instant lastModifiedAt)

        The date and time that the scraper was last modified.

        Parameters:
        lastModifiedAt - The date and time that the scraper was last modified.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • roleArn

        ScraperDescription.Builder roleArn​(String roleArn)

        The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover and collect metrics on your behalf.

        For example, arn:aws:iam::123456789012:role/service-role/AmazonGrafanaServiceRole-12example.

        Parameters:
        roleArn - The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover and collect metrics on your behalf.

        For example, arn:aws:iam::123456789012:role/service-role/AmazonGrafanaServiceRole-12example.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • roleConfiguration

        ScraperDescription.Builder roleConfiguration​(RoleConfiguration roleConfiguration)
        Sets the value of the RoleConfiguration property for this object.
        Parameters:
        roleConfiguration - The new value for the RoleConfiguration property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • scrapeConfiguration

        ScraperDescription.Builder scrapeConfiguration​(ScrapeConfiguration scrapeConfiguration)

        The configuration in use by the scraper.

        Parameters:
        scrapeConfiguration - The configuration in use by the scraper.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • scraperId

        ScraperDescription.Builder scraperId​(String scraperId)

        The ID of the scraper. For example, s-example1-1234-abcd-5678-ef9012abcd34.

        Parameters:
        scraperId - The ID of the scraper. For example, s-example1-1234-abcd-5678-ef9012abcd34.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • source

        ScraperDescription.Builder source​(Source source)

        The Amazon EKS cluster from which the scraper collects metrics.

        Parameters:
        source - The Amazon EKS cluster from which the scraper collects metrics.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        ScraperDescription.Builder status​(ScraperStatus status)

        A structure that contains the current status of the scraper.

        Parameters:
        status - A structure that contains the current status of the scraper.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statusReason

        ScraperDescription.Builder statusReason​(String statusReason)

        If there is a failure, the reason for the failure.

        Parameters:
        statusReason - If there is a failure, the reason for the failure.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        ScraperDescription.Builder tags​(Map<String,​String> tags)

        (Optional) The list of tag keys and values associated with the scraper.

        Parameters:
        tags - (Optional) The list of tag keys and values associated with the scraper.
        Returns:
        Returns a reference to this object so that method calls can be chained together.