Struct aws_sdk_amp::operation::create_scraper::CreateScraperInput
source · #[non_exhaustive]pub struct CreateScraperInput {
pub alias: Option<String>,
pub scrape_configuration: Option<ScrapeConfiguration>,
pub source: Option<Source>,
pub destination: Option<Destination>,
pub client_token: Option<String>,
pub tags: Option<HashMap<String, String>>,
}
Expand description
Represents the input of a CreateScraper
operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.alias: Option<String>
(optional) a name to associate with the scraper. This is for your use, and does not need to be unique.
scrape_configuration: Option<ScrapeConfiguration>
The configuration file to use in the new scraper. For more information, see Scraper configuration in the Amazon Managed Service for Prometheus User Guide.
source: Option<Source>
The Amazon EKS cluster from which the scraper will collect metrics.
destination: Option<Destination>
The Amazon Managed Service for Prometheus workspace to send metrics to.
client_token: Option<String>
(Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.
(Optional) The list of tag keys and values to associate with the scraper.
Implementations§
source§impl CreateScraperInput
impl CreateScraperInput
sourcepub fn alias(&self) -> Option<&str>
pub fn alias(&self) -> Option<&str>
(optional) a name to associate with the scraper. This is for your use, and does not need to be unique.
sourcepub fn scrape_configuration(&self) -> Option<&ScrapeConfiguration>
pub fn scrape_configuration(&self) -> Option<&ScrapeConfiguration>
The configuration file to use in the new scraper. For more information, see Scraper configuration in the Amazon Managed Service for Prometheus User Guide.
sourcepub fn source(&self) -> Option<&Source>
pub fn source(&self) -> Option<&Source>
The Amazon EKS cluster from which the scraper will collect metrics.
sourcepub fn destination(&self) -> Option<&Destination>
pub fn destination(&self) -> Option<&Destination>
The Amazon Managed Service for Prometheus workspace to send metrics to.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
(Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.
(Optional) The list of tag keys and values to associate with the scraper.
source§impl CreateScraperInput
impl CreateScraperInput
sourcepub fn builder() -> CreateScraperInputBuilder
pub fn builder() -> CreateScraperInputBuilder
Creates a new builder-style object to manufacture CreateScraperInput
.
Trait Implementations§
source§impl Clone for CreateScraperInput
impl Clone for CreateScraperInput
source§fn clone(&self) -> CreateScraperInput
fn clone(&self) -> CreateScraperInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateScraperInput
impl Debug for CreateScraperInput
source§impl PartialEq for CreateScraperInput
impl PartialEq for CreateScraperInput
source§fn eq(&self, other: &CreateScraperInput) -> bool
fn eq(&self, other: &CreateScraperInput) -> bool
self
and other
values to be equal, and is used
by ==
.