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
Represents the properties of a scraper.
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>
Alias of this scraper.
scraper_id: String
Unique string identifying this scraper.
arn: String
The Amazon Resource Name (ARN) of this scraper.
role_arn: String
The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to dsicover, collect, and produce metrics on your behalf.
status: Option<ScraperStatus>
The status of this scraper.
created_at: DateTime
The time when the scraper was created.
last_modified_at: DateTime
The time when the scraper was last modified.
The tags of this scraper.
status_reason: Option<String>
The reason for failure if any.
scrape_configuration: Option<ScrapeConfiguration>
The configuration used to create the scraper.
source: Option<Source>
The source that the scraper is discovering and collecting metrics from.
destination: Option<Destination>
The destination that the scraper is producing metrics to.
Implementations§
source§impl ScraperDescription
impl ScraperDescription
sourcepub fn scraper_id(&self) -> &str
pub fn scraper_id(&self) -> &str
Unique string identifying this 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 dsicover, collect, and produce metrics on your behalf.
sourcepub fn status(&self) -> Option<&ScraperStatus>
pub fn status(&self) -> Option<&ScraperStatus>
The status of this scraper.
sourcepub fn created_at(&self) -> &DateTime
pub fn created_at(&self) -> &DateTime
The time when the scraper was created.
sourcepub fn last_modified_at(&self) -> &DateTime
pub fn last_modified_at(&self) -> &DateTime
The time when the scraper was last modified.
The tags of this scraper.
sourcepub fn status_reason(&self) -> Option<&str>
pub fn status_reason(&self) -> Option<&str>
The reason for failure if any.
sourcepub fn scrape_configuration(&self) -> Option<&ScrapeConfiguration>
pub fn scrape_configuration(&self) -> Option<&ScrapeConfiguration>
The configuration used to create the scraper.
sourcepub fn source(&self) -> Option<&Source>
pub fn source(&self) -> Option<&Source>
The source that the scraper is discovering and collecting metrics from.
sourcepub fn destination(&self) -> Option<&Destination>
pub fn destination(&self) -> Option<&Destination>
The destination that the scraper is producing 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 ==
.