Struct aws_sdk_lightsail::input::GetContainerLogInput [−][src]
#[non_exhaustive]pub struct GetContainerLogInput {
pub service_name: Option<String>,
pub container_name: Option<String>,
pub start_time: Option<DateTime>,
pub end_time: Option<DateTime>,
pub filter_pattern: Option<String>,
pub page_token: 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.service_name: Option<String>
The name of the container service for which to get a container log.
container_name: Option<String>
The name of the container that is either running or previously ran on the container service for which to return a log.
start_time: Option<DateTime>
The start of the time interval for which to get log data.
Constraints:
-
Specified in Coordinated Universal Time (UTC).
-
Specified in the Unix time format.
For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, specify
1538424000
as the start time.
You can convert a human-friendly time to Unix time format using a converter like Epoch converter.
end_time: Option<DateTime>
The end of the time interval for which to get log data.
Constraints:
-
Specified in Coordinated Universal Time (UTC).
-
Specified in the Unix time format.
For example, if you wish to use an end time of October 1, 2018, at 9 PM UTC, specify
1538427600
as the end time.
You can convert a human-friendly time to Unix time format using a converter like Epoch converter.
filter_pattern: Option<String>
The pattern to use to filter the returned log events to a specific term.
The following are a few examples of filter patterns that you can specify:
-
To return all log events, specify a filter pattern of
""
. -
To exclude log events that contain the
ERROR
term, and return all other log events, specify a filter pattern of"-ERROR"
. -
To return log events that contain the
ERROR
term, specify a filter pattern of"ERROR"
. -
To return log events that contain both the
ERROR
andException
terms, specify a filter pattern of"ERROR Exception"
. -
To return log events that contain the
ERROR
or theException
term, specify a filter pattern of"?ERROR ?Exception"
.
page_token: Option<String>
The token to advance to the next page of results from your request.
To get a page token, perform an initial GetContainerLog
request. If your
results are paginated, the response will return a next page token that you can specify as the
page token in a subsequent request.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetContainerLog, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetContainerLog, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<GetContainerLog
>
Creates a new builder-style object to manufacture GetContainerLogInput
The name of the container service for which to get a container log.
The name of the container that is either running or previously ran on the container service for which to return a log.
The start of the time interval for which to get log data.
Constraints:
-
Specified in Coordinated Universal Time (UTC).
-
Specified in the Unix time format.
For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, specify
1538424000
as the start time.
You can convert a human-friendly time to Unix time format using a converter like Epoch converter.
The end of the time interval for which to get log data.
Constraints:
-
Specified in Coordinated Universal Time (UTC).
-
Specified in the Unix time format.
For example, if you wish to use an end time of October 1, 2018, at 9 PM UTC, specify
1538427600
as the end time.
You can convert a human-friendly time to Unix time format using a converter like Epoch converter.
The pattern to use to filter the returned log events to a specific term.
The following are a few examples of filter patterns that you can specify:
-
To return all log events, specify a filter pattern of
""
. -
To exclude log events that contain the
ERROR
term, and return all other log events, specify a filter pattern of"-ERROR"
. -
To return log events that contain the
ERROR
term, specify a filter pattern of"ERROR"
. -
To return log events that contain both the
ERROR
andException
terms, specify a filter pattern of"ERROR Exception"
. -
To return log events that contain the
ERROR
or theException
term, specify a filter pattern of"?ERROR ?Exception"
.
The token to advance to the next page of results from your request.
To get a page token, perform an initial GetContainerLog
request. If your
results are paginated, the response will return a next page token that you can specify as the
page token in a subsequent request.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for GetContainerLogInput
impl Send for GetContainerLogInput
impl Sync for GetContainerLogInput
impl Unpin for GetContainerLogInput
impl UnwindSafe for GetContainerLogInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more