Struct aws_sdk_ec2::types::DataQuery
source · #[non_exhaustive]pub struct DataQuery {
pub id: Option<String>,
pub source: Option<String>,
pub destination: Option<String>,
pub metric: Option<MetricType>,
pub statistic: Option<StatisticType>,
pub period: Option<PeriodType>,
}
Expand description
A query used for retrieving network health data.
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.id: Option<String>
A user-defined ID associated with a data query that's returned in the dataResponse
identifying the query. For example, if you set the Id to MyQuery01
in the query, the dataResponse
identifies the query as MyQuery01
.
source: Option<String>
The Region or Availability Zone that's the source for the data query. For example, us-east-1
.
destination: Option<String>
The Region or Availability Zone that's the target for the data query. For example, eu-north-1
.
metric: Option<MetricType>
The metric, aggregation-latency
, indicating that network latency is aggregated for the query. This is the only supported metric.
statistic: Option<StatisticType>
The metric data aggregation period, p50
, between the specified startDate
and endDate
. For example, a metric of five_minutes
is the median of all the data points gathered within those five minutes. p50
is the only supported metric.
period: Option<PeriodType>
The aggregation period used for the data query.
Implementations§
source§impl DataQuery
impl DataQuery
sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
A user-defined ID associated with a data query that's returned in the dataResponse
identifying the query. For example, if you set the Id to MyQuery01
in the query, the dataResponse
identifies the query as MyQuery01
.
sourcepub fn source(&self) -> Option<&str>
pub fn source(&self) -> Option<&str>
The Region or Availability Zone that's the source for the data query. For example, us-east-1
.
sourcepub fn destination(&self) -> Option<&str>
pub fn destination(&self) -> Option<&str>
The Region or Availability Zone that's the target for the data query. For example, eu-north-1
.
sourcepub fn metric(&self) -> Option<&MetricType>
pub fn metric(&self) -> Option<&MetricType>
The metric, aggregation-latency
, indicating that network latency is aggregated for the query. This is the only supported metric.
sourcepub fn statistic(&self) -> Option<&StatisticType>
pub fn statistic(&self) -> Option<&StatisticType>
The metric data aggregation period, p50
, between the specified startDate
and endDate
. For example, a metric of five_minutes
is the median of all the data points gathered within those five minutes. p50
is the only supported metric.
sourcepub fn period(&self) -> Option<&PeriodType>
pub fn period(&self) -> Option<&PeriodType>
The aggregation period used for the data query.
Trait Implementations§
source§impl PartialEq for DataQuery
impl PartialEq for DataQuery
impl StructuralPartialEq for DataQuery
Auto Trait Implementations§
impl Freeze for DataQuery
impl RefUnwindSafe for DataQuery
impl Send for DataQuery
impl Sync for DataQuery
impl Unpin for DataQuery
impl UnwindSafe for DataQuery
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> 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