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
impl StructuralPartialEq for ScraperDescription
Auto Trait Implementations§
impl Freeze for ScraperDescription
impl RefUnwindSafe for ScraperDescription
impl Send for ScraperDescription
impl Sync for ScraperDescription
impl Unpin for ScraperDescription
impl UnwindSafe for ScraperDescription
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more