#[non_exhaustive]pub struct StartQueryInput {
pub monitor_name: Option<String>,
pub start_time: Option<DateTime>,
pub end_time: Option<DateTime>,
pub query_type: Option<QueryType>,
pub filter_parameters: Option<Vec<FilterParameter>>,
pub linked_account_id: Option<String>,
}
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.monitor_name: Option<String>
The name of the monitor to query.
start_time: Option<DateTime>
The timestamp that is the beginning of the period that you want to retrieve data for with your query.
end_time: Option<DateTime>
The timestamp that is the end of the period that you want to retrieve data for with your query.
query_type: Option<QueryType>
The type of query to run. The following are the three types of queries that you can run using the Internet Monitor query interface:
-
MEASUREMENTS
: Provides availability score, performance score, total traffic, and round-trip times, at 5 minute intervals. -
TOP_LOCATIONS
: Provides availability score, performance score, total traffic, and time to first byte (TTFB) information, for the top location and ASN combinations that you're monitoring, by traffic volume. -
TOP_LOCATION_DETAILS
: Provides TTFB for Amazon CloudFront, your current configuration, and the best performing EC2 configuration, at 1 hour intervals.
For lists of the fields returned with each query type and more information about how each type of query is performed, see Using the Amazon CloudWatch Internet Monitor query interface in the Amazon CloudWatch Internet Monitor User Guide.
filter_parameters: Option<Vec<FilterParameter>>
The FilterParameters
field that you use with Amazon CloudWatch Internet Monitor queries is a string the defines how you want a query to be filtered. The filter parameters that you can specify depend on the query type, since each query type returns a different set of Internet Monitor data.
For more information about specifying filter parameters, see Using the Amazon CloudWatch Internet Monitor query interface in the Amazon CloudWatch Internet Monitor User Guide.
linked_account_id: Option<String>
The account ID for an account that you've set up cross-account sharing for in Amazon CloudWatch Internet Monitor. You configure cross-account sharing by using Amazon CloudWatch Observability Access Manager. For more information, see Internet Monitor cross-account observability in the Amazon CloudWatch Internet Monitor User Guide.
Implementations§
source§impl StartQueryInput
impl StartQueryInput
sourcepub fn monitor_name(&self) -> Option<&str>
pub fn monitor_name(&self) -> Option<&str>
The name of the monitor to query.
sourcepub fn start_time(&self) -> Option<&DateTime>
pub fn start_time(&self) -> Option<&DateTime>
The timestamp that is the beginning of the period that you want to retrieve data for with your query.
sourcepub fn end_time(&self) -> Option<&DateTime>
pub fn end_time(&self) -> Option<&DateTime>
The timestamp that is the end of the period that you want to retrieve data for with your query.
sourcepub fn query_type(&self) -> Option<&QueryType>
pub fn query_type(&self) -> Option<&QueryType>
The type of query to run. The following are the three types of queries that you can run using the Internet Monitor query interface:
-
MEASUREMENTS
: Provides availability score, performance score, total traffic, and round-trip times, at 5 minute intervals. -
TOP_LOCATIONS
: Provides availability score, performance score, total traffic, and time to first byte (TTFB) information, for the top location and ASN combinations that you're monitoring, by traffic volume. -
TOP_LOCATION_DETAILS
: Provides TTFB for Amazon CloudFront, your current configuration, and the best performing EC2 configuration, at 1 hour intervals.
For lists of the fields returned with each query type and more information about how each type of query is performed, see Using the Amazon CloudWatch Internet Monitor query interface in the Amazon CloudWatch Internet Monitor User Guide.
sourcepub fn filter_parameters(&self) -> &[FilterParameter]
pub fn filter_parameters(&self) -> &[FilterParameter]
The FilterParameters
field that you use with Amazon CloudWatch Internet Monitor queries is a string the defines how you want a query to be filtered. The filter parameters that you can specify depend on the query type, since each query type returns a different set of Internet Monitor data.
For more information about specifying filter parameters, see Using the Amazon CloudWatch Internet Monitor query interface in the Amazon CloudWatch Internet Monitor User Guide.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .filter_parameters.is_none()
.
sourcepub fn linked_account_id(&self) -> Option<&str>
pub fn linked_account_id(&self) -> Option<&str>
The account ID for an account that you've set up cross-account sharing for in Amazon CloudWatch Internet Monitor. You configure cross-account sharing by using Amazon CloudWatch Observability Access Manager. For more information, see Internet Monitor cross-account observability in the Amazon CloudWatch Internet Monitor User Guide.
source§impl StartQueryInput
impl StartQueryInput
sourcepub fn builder() -> StartQueryInputBuilder
pub fn builder() -> StartQueryInputBuilder
Creates a new builder-style object to manufacture StartQueryInput
.
Trait Implementations§
source§impl Clone for StartQueryInput
impl Clone for StartQueryInput
source§fn clone(&self) -> StartQueryInput
fn clone(&self) -> StartQueryInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StartQueryInput
impl Debug for StartQueryInput
source§impl PartialEq for StartQueryInput
impl PartialEq for StartQueryInput
source§fn eq(&self, other: &StartQueryInput) -> bool
fn eq(&self, other: &StartQueryInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StartQueryInput
Auto Trait Implementations§
impl Freeze for StartQueryInput
impl RefUnwindSafe for StartQueryInput
impl Send for StartQueryInput
impl Sync for StartQueryInput
impl Unpin for StartQueryInput
impl UnwindSafe for StartQueryInput
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