Struct aws_sdk_ec2::types::DataResponse
source · #[non_exhaustive]pub struct DataResponse {
pub id: Option<String>,
pub source: Option<String>,
pub destination: Option<String>,
pub metric: Option<MetricType>,
pub statistic: Option<StatisticType>,
pub period: Option<PeriodType>,
pub metric_points: Option<Vec<MetricPoint>>,
}
Expand description
The response to a DataQuery
.
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>
The ID passed in the DataQuery
.
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 destination for the data query. For example, eu-west-1
.
metric: Option<MetricType>
The metric used for the network performance request. Only aggregate-latency
is supported, which shows network latency during a specified period.
statistic: Option<StatisticType>
The statistic used for the network performance request.
period: Option<PeriodType>
The period used for the network performance request.
metric_points: Option<Vec<MetricPoint>>
A list of MetricPoint
objects.
Implementations§
source§impl DataResponse
impl DataResponse
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 destination for the data query. For example, eu-west-1
.
sourcepub fn metric(&self) -> Option<&MetricType>
pub fn metric(&self) -> Option<&MetricType>
The metric used for the network performance request. Only aggregate-latency
is supported, which shows network latency during a specified period.
sourcepub fn statistic(&self) -> Option<&StatisticType>
pub fn statistic(&self) -> Option<&StatisticType>
The statistic used for the network performance request.
sourcepub fn period(&self) -> Option<&PeriodType>
pub fn period(&self) -> Option<&PeriodType>
The period used for the network performance request.
sourcepub fn metric_points(&self) -> Option<&[MetricPoint]>
pub fn metric_points(&self) -> Option<&[MetricPoint]>
A list of MetricPoint
objects.
source§impl DataResponse
impl DataResponse
sourcepub fn builder() -> DataResponseBuilder
pub fn builder() -> DataResponseBuilder
Creates a new builder-style object to manufacture DataResponse
.
Trait Implementations§
source§impl Clone for DataResponse
impl Clone for DataResponse
source§fn clone(&self) -> DataResponse
fn clone(&self) -> DataResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DataResponse
impl Debug for DataResponse
source§impl PartialEq<DataResponse> for DataResponse
impl PartialEq<DataResponse> for DataResponse
source§fn eq(&self, other: &DataResponse) -> bool
fn eq(&self, other: &DataResponse) -> bool
self
and other
values to be equal, and is used
by ==
.