Module Values.UpdateScraperRequestSource

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.

Sourcetype nonrec t = {
  1. scraperId : ScraperId.t;
    (*

    The ID of the scraper to update.

    *)
  2. alias : ScraperAlias.t option;
    (*

    The new alias of the scraper.

    *)
  3. scrapeConfiguration : ScrapeConfiguration.t option;
    (*

    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.

    *)
  4. destination : Destination.t option;
    (*

    The new Amazon Managed Service for Prometheus workspace to send metrics to.

    *)
  5. roleConfiguration : RoleConfiguration.t option;
    (*

    Use this structure to enable cross-account access, so that you can use a target account to access Prometheus metrics from source accounts.

    *)
  6. clientToken : IdempotencyToken.t option;
    (*

    A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.

    *)
}
Sourceval context_ : string
Sourceval make : ?alias:??? -> ?scrapeConfiguration:??? -> ?destination:??? -> ?roleConfiguration:??? -> ?clientToken:??? -> scraperId:ScraperId.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ScraperId.t | `Structure of (string * [> `Blob of Blob.t | `String of IamRoleArn.t | `Structure of (string * [> `String of WorkspaceArn.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t