GetContainerLogRequest
¶
Source code in docs_src/capo_lightsail/types/get_container_log_request.py
container_name
instance-attribute
¶
container_name: string
The name of the container that is either running or previously ran on the container service for which to return a log.
end_time
instance-attribute
¶
end_time: NotRequired[IsoDate]
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
1538427600as the end time.
You can convert a human-friendly time to Unix time format using a converter like Epoch converter.
filter_pattern
instance-attribute
¶
filter_pattern: NotRequired[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
ERRORterm, and return all other log events, specify a filter pattern of"-ERROR". -
To return log events that contain the
ERRORterm, specify a filter pattern of"ERROR". -
To return log events that contain both the
ERRORandExceptionterms, specify a filter pattern of"ERROR Exception". -
To return log events that contain the
ERRORor theExceptionterm, specify a filter pattern of"?ERROR ?Exception".
page_token
instance-attribute
¶
page_token: NotRequired[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.
service_name
instance-attribute
¶
service_name: ContainerServiceName
The name of the container service for which to get a container log.
start_time
instance-attribute
¶
start_time: NotRequired[IsoDate]
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
1538424000as the start time.
You can convert a human-friendly time to Unix time format using a converter like Epoch converter.