Struct aws_sdk_amp::types::ScraperSummary
source · #[non_exhaustive]pub struct ScraperSummary {
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 source: Option<Source>,
pub destination: Option<Destination>,
}Expand description
The ScraperSummary structure contains a summary of the 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: StringThe ID of the scraper.
arn: StringThe Amazon Resource Name (ARN) of the scraper.
role_arn: StringThe 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: DateTimeThe date and time that the scraper was created.
last_modified_at: DateTimeThe 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.
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 ScraperSummary
impl ScraperSummary
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 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 ScraperSummary
impl ScraperSummary
sourcepub fn builder() -> ScraperSummaryBuilder
pub fn builder() -> ScraperSummaryBuilder
Creates a new builder-style object to manufacture ScraperSummary.
Trait Implementations§
source§impl Clone for ScraperSummary
impl Clone for ScraperSummary
source§fn clone(&self) -> ScraperSummary
fn clone(&self) -> ScraperSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ScraperSummary
impl Debug for ScraperSummary
source§impl PartialEq for ScraperSummary
impl PartialEq for ScraperSummary
impl StructuralPartialEq for ScraperSummary
Auto Trait Implementations§
impl Freeze for ScraperSummary
impl RefUnwindSafe for ScraperSummary
impl Send for ScraperSummary
impl Sync for ScraperSummary
impl Unpin for ScraperSummary
impl UnwindSafe for ScraperSummary
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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