Struct aws_sdk_cloudwatchlogs::operation::get_query_results::builders::GetQueryResultsFluentBuilder
source · pub struct GetQueryResultsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetQueryResults
.
Returns the results from the specified query.
Only the fields requested in the query are returned, along with a @ptr
field, which is the identifier for the log record. You can use the value of @ptr
in a GetLogRecord operation to get the full log record.
GetQueryResults
does not start running a query. To run a query, use StartQuery. For more information about how long results of previous queries are available, see CloudWatch Logs quotas.
If the value of the Status
field in the output is Running
, this operation returns only partial results. If you see a value of Scheduled
or Running
for the status, you can retry the operation later to see the final results.
If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account to start queries in linked source accounts. For more information, see CloudWatch cross-account observability.
Implementations§
source§impl GetQueryResultsFluentBuilder
impl GetQueryResultsFluentBuilder
sourcepub fn as_input(&self) -> &GetQueryResultsInputBuilder
pub fn as_input(&self) -> &GetQueryResultsInputBuilder
Access the GetQueryResults as a reference.
sourcepub async fn send(
self,
) -> Result<GetQueryResultsOutput, SdkError<GetQueryResultsError, HttpResponse>>
pub async fn send( self, ) -> Result<GetQueryResultsOutput, SdkError<GetQueryResultsError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<GetQueryResultsOutput, GetQueryResultsError, Self>
pub fn customize( self, ) -> CustomizableOperation<GetQueryResultsOutput, GetQueryResultsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn set_query_id(self, input: Option<String>) -> Self
pub fn set_query_id(self, input: Option<String>) -> Self
The ID number of the query.
sourcepub fn get_query_id(&self) -> &Option<String>
pub fn get_query_id(&self) -> &Option<String>
The ID number of the query.
Trait Implementations§
source§impl Clone for GetQueryResultsFluentBuilder
impl Clone for GetQueryResultsFluentBuilder
source§fn clone(&self) -> GetQueryResultsFluentBuilder
fn clone(&self) -> GetQueryResultsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for GetQueryResultsFluentBuilder
impl !RefUnwindSafe for GetQueryResultsFluentBuilder
impl Send for GetQueryResultsFluentBuilder
impl Sync for GetQueryResultsFluentBuilder
impl Unpin for GetQueryResultsFluentBuilder
impl !UnwindSafe for GetQueryResultsFluentBuilder
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