#[non_exhaustive]pub struct StartQueryInputBuilder { /* private fields */ }
Expand description
A builder for StartQueryInput
.
Implementations§
source§impl StartQueryInputBuilder
impl StartQueryInputBuilder
sourcepub fn monitor_name(self, input: impl Into<String>) -> Self
pub fn monitor_name(self, input: impl Into<String>) -> Self
The name of the monitor to query.
This field is required.sourcepub fn set_monitor_name(self, input: Option<String>) -> Self
pub fn set_monitor_name(self, input: Option<String>) -> Self
The name of the monitor to query.
sourcepub fn get_monitor_name(&self) -> &Option<String>
pub fn get_monitor_name(&self) -> &Option<String>
The name of the monitor to query.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The timestamp that is the beginning of the period that you want to retrieve data for with your query.
This field is required.sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The timestamp that is the beginning of the period that you want to retrieve data for with your query.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_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, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
The timestamp that is the end of the period that you want to retrieve data for with your query.
This field is required.sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The timestamp that is the end of the period that you want to retrieve data for with your query.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_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, input: QueryType) -> Self
pub fn query_type(self, input: QueryType) -> Self
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.
This field is required.sourcepub fn set_query_type(self, input: Option<QueryType>) -> Self
pub fn set_query_type(self, input: Option<QueryType>) -> Self
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 get_query_type(&self) -> &Option<QueryType>
pub fn get_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, input: FilterParameter) -> Self
pub fn filter_parameters(self, input: FilterParameter) -> Self
Appends an item to filter_parameters
.
To override the contents of this collection use set_filter_parameters
.
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.
sourcepub fn set_filter_parameters(self, input: Option<Vec<FilterParameter>>) -> Self
pub fn set_filter_parameters(self, input: Option<Vec<FilterParameter>>) -> Self
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.
sourcepub fn get_filter_parameters(&self) -> &Option<Vec<FilterParameter>>
pub fn get_filter_parameters(&self) -> &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.
sourcepub fn build(self) -> Result<StartQueryInput, BuildError>
pub fn build(self) -> Result<StartQueryInput, BuildError>
Consumes the builder and constructs a StartQueryInput
.
source§impl StartQueryInputBuilder
impl StartQueryInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<StartQueryOutput, SdkError<StartQueryError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<StartQueryOutput, SdkError<StartQueryError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for StartQueryInputBuilder
impl Clone for StartQueryInputBuilder
source§fn clone(&self) -> StartQueryInputBuilder
fn clone(&self) -> StartQueryInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StartQueryInputBuilder
impl Debug for StartQueryInputBuilder
source§impl Default for StartQueryInputBuilder
impl Default for StartQueryInputBuilder
source§fn default() -> StartQueryInputBuilder
fn default() -> StartQueryInputBuilder
source§impl PartialEq for StartQueryInputBuilder
impl PartialEq for StartQueryInputBuilder
source§fn eq(&self, other: &StartQueryInputBuilder) -> bool
fn eq(&self, other: &StartQueryInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.