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 MyQuery01in 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 MyQuery01in 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.