Struct aws_sdk_amp::types::ScraperDescription
source · #[non_exhaustive]pub struct ScraperDescription {
pub alias: Option<String>,
pub scraper_id: String,
pub arn: String,
pub role_arn: String,
pub status: Option<ScraperStatus>,
pub created_at: DateTime,
pub last_modified_at: DateTime,
pub tags: Option<HashMap<String, String>>,
pub status_reason: Option<String>,
pub scrape_configuration: Option<ScrapeConfiguration>,
pub source: Option<Source>,
pub destination: Option<Destination>,
}
Expand description
The ScraperDescription
structure contains the full details about one scraper in your account.
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 associated with the scraper.
scraper_id: String
The ID of the scraper.
arn: String
The Amazon Resource Name (ARN) of the scraper.
role_arn: String
The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover and collect metrics on your behalf.
status: Option<ScraperStatus>
A structure that contains the current status of the scraper.
created_at: DateTime
The date and time that the scraper was created.
last_modified_at: DateTime
The date and time that the scraper was last modified.
(Optional) The list of tag keys and values associated with the scraper.
status_reason: Option<String>
If there is a failure, the reason for the failure.
scrape_configuration: Option<ScrapeConfiguration>
The configuration file in use by the scraper.
source: Option<Source>
The Amazon EKS cluster from which the scraper collects metrics.
destination: Option<Destination>
The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
Implementations§
source§impl ScraperDescription
impl ScraperDescription
sourcepub fn scraper_id(&self) -> &str
pub fn scraper_id(&self) -> &str
The ID of the scraper.
sourcepub fn role_arn(&self) -> &str
pub fn role_arn(&self) -> &str
The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover and collect metrics on your behalf.
sourcepub fn status(&self) -> Option<&ScraperStatus>
pub fn status(&self) -> Option<&ScraperStatus>
A structure that contains the current status of the scraper.
sourcepub fn created_at(&self) -> &DateTime
pub fn created_at(&self) -> &DateTime
The date and time that the scraper was created.
sourcepub fn last_modified_at(&self) -> &DateTime
pub fn last_modified_at(&self) -> &DateTime
The date and time that the scraper was last modified.
(Optional) The list of tag keys and values associated with the scraper.
sourcepub fn status_reason(&self) -> Option<&str>
pub fn status_reason(&self) -> Option<&str>
If there is a failure, the reason for the failure.
sourcepub fn scrape_configuration(&self) -> Option<&ScrapeConfiguration>
pub fn scrape_configuration(&self) -> Option<&ScrapeConfiguration>
The configuration file in use by the scraper.
sourcepub fn source(&self) -> Option<&Source>
pub fn source(&self) -> Option<&Source>
The Amazon EKS cluster from which the scraper collects metrics.
sourcepub fn destination(&self) -> Option<&Destination>
pub fn destination(&self) -> Option<&Destination>
The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
source§impl ScraperDescription
impl ScraperDescription
sourcepub fn builder() -> ScraperDescriptionBuilder
pub fn builder() -> ScraperDescriptionBuilder
Creates a new builder-style object to manufacture ScraperDescription
.
Trait Implementations§
source§impl Clone for ScraperDescription
impl Clone for ScraperDescription
source§fn clone(&self) -> ScraperDescription
fn clone(&self) -> ScraperDescription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScraperDescription
impl Debug for ScraperDescription
source§impl PartialEq for ScraperDescription
impl PartialEq for ScraperDescription
source§fn eq(&self, other: &ScraperDescription) -> bool
fn eq(&self, other: &ScraperDescription) -> bool
self
and other
values to be equal, and is used
by ==
.