Safe Haskell | None |
---|---|
Language | Haskell2010 |
Retrieves log events from the specified log stream. You can provide an
optional time range to filter the results on the event timestamp
.
By default, this operation returns as much log events as can fit in a
response size of 1MB, up to 10,000 log events. The response will always
include a nextForwardToken
and a nextBackwardToken
in the response body. You
can use any of these tokens in subsequent GetLogEvents
requests to paginate
through events in either forward or backward direction. You can also limit
the number of log events returned in the response by specifying the limit
parameter in the request.
http://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogEvents.html
- data GetLogEvents
- getLogEvents :: Text -> Text -> GetLogEvents
- gleEndTime :: Lens' GetLogEvents (Maybe Natural)
- gleLimit :: Lens' GetLogEvents (Maybe Natural)
- gleLogGroupName :: Lens' GetLogEvents Text
- gleLogStreamName :: Lens' GetLogEvents Text
- gleNextToken :: Lens' GetLogEvents (Maybe Text)
- gleStartFromHead :: Lens' GetLogEvents (Maybe Bool)
- gleStartTime :: Lens' GetLogEvents (Maybe Natural)
- data GetLogEventsResponse
- getLogEventsResponse :: GetLogEventsResponse
- glerEvents :: Lens' GetLogEventsResponse [OutputLogEvent]
- glerNextBackwardToken :: Lens' GetLogEventsResponse (Maybe Text)
- glerNextForwardToken :: Lens' GetLogEventsResponse (Maybe Text)
Request
data GetLogEvents Source
Request constructor
GetLogEvents
constructor.
The fields accessible through corresponding lenses are:
Request lenses
gleLimit :: Lens' GetLogEvents (Maybe Natural) Source
The maximum number of log events returned in the response. If you don't specify a value, the request would return as much log events as can fit in a response size of 1MB, up to 10,000 log events.
gleNextToken :: Lens' GetLogEvents (Maybe Text) Source
A string token used for pagination that points to the next page of results.
It must be a value obtained from the nextForwardToken
or nextBackwardToken
fields in the response of the previous GetLogEvents
request.
gleStartFromHead :: Lens' GetLogEvents (Maybe Bool) Source
If set to true, the earliest log events would be returned first. The default is false (the latest log events are returned first).
Response
Response constructor
getLogEventsResponse :: GetLogEventsResponse Source
GetLogEventsResponse
constructor.
The fields accessible through corresponding lenses are: