amazonka-cloudwatch-logs-1.4.5: Amazon CloudWatch Logs SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatchLogs.GetLogEvents

Contents

Description

Lists log events from the specified log stream. You can list all the log events or filter using a time range.

By default, this operation returns as many log events as can fit in a response size of 1MB (up to 10,000 log events). If the results include tokens, there are more log events available. You can get additional log events by specifying one of the tokens in a subsequent call.

Synopsis

Creating a Request

getLogEvents Source #

Creates a value of GetLogEvents with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gleStartTime - The start of the time range. Events with a timestamp earlier than this time are not included.
  • gleStartFromHead - If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false.
  • gleNextToken - The token for the next set of items to return. (You received this token from a previous call.)
  • gleEndTime - The end of the time range. Events with a timestamp later than this time are not included.
  • gleLimit - The maximum number of log events returned. If you don't specify a value, the maximum is as many log events as can fit in a response size of 1MB, up to 10,000 log events.
  • gleLogGroupName - The name of the log group.
  • gleLogStreamName - The name of the log stream.

data GetLogEvents Source #

See: getLogEvents smart constructor.

Instances

Eq GetLogEvents Source # 
Data GetLogEvents Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetLogEvents -> c GetLogEvents #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetLogEvents #

toConstr :: GetLogEvents -> Constr #

dataTypeOf :: GetLogEvents -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetLogEvents) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetLogEvents) #

gmapT :: (forall b. Data b => b -> b) -> GetLogEvents -> GetLogEvents #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetLogEvents -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetLogEvents -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetLogEvents -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetLogEvents -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetLogEvents -> m GetLogEvents #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetLogEvents -> m GetLogEvents #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetLogEvents -> m GetLogEvents #

Read GetLogEvents Source # 
Show GetLogEvents Source # 
Generic GetLogEvents Source # 

Associated Types

type Rep GetLogEvents :: * -> * #

Hashable GetLogEvents Source # 
ToJSON GetLogEvents Source # 
NFData GetLogEvents Source # 

Methods

rnf :: GetLogEvents -> () #

AWSRequest GetLogEvents Source # 
ToPath GetLogEvents Source # 
ToHeaders GetLogEvents Source # 
ToQuery GetLogEvents Source # 
type Rep GetLogEvents Source # 
type Rep GetLogEvents = D1 (MetaData "GetLogEvents" "Network.AWS.CloudWatchLogs.GetLogEvents" "amazonka-cloudwatch-logs-1.4.5-JoaCELOvIeKI9iDLq1iWip" False) (C1 (MetaCons "GetLogEvents'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gleStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) ((:*:) (S1 (MetaSel (Just Symbol "_gleStartFromHead") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_gleNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gleEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_gleLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)))) ((:*:) (S1 (MetaSel (Just Symbol "_gleLogGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_gleLogStreamName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs GetLogEvents Source # 

Request Lenses

gleStartTime :: Lens' GetLogEvents (Maybe Natural) Source #

The start of the time range. Events with a timestamp earlier than this time are not included.

gleStartFromHead :: Lens' GetLogEvents (Maybe Bool) Source #

If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false.

gleNextToken :: Lens' GetLogEvents (Maybe Text) Source #

The token for the next set of items to return. (You received this token from a previous call.)

gleEndTime :: Lens' GetLogEvents (Maybe Natural) Source #

The end of the time range. Events with a timestamp later than this time are not included.

gleLimit :: Lens' GetLogEvents (Maybe Natural) Source #

The maximum number of log events returned. If you don't specify a value, the maximum is as many log events as can fit in a response size of 1MB, up to 10,000 log events.

gleLogGroupName :: Lens' GetLogEvents Text Source #

The name of the log group.

gleLogStreamName :: Lens' GetLogEvents Text Source #

The name of the log stream.

Destructuring the Response

getLogEventsResponse Source #

Creates a value of GetLogEventsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetLogEventsResponse Source #

See: getLogEventsResponse smart constructor.

Instances

Eq GetLogEventsResponse Source # 
Data GetLogEventsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetLogEventsResponse -> c GetLogEventsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetLogEventsResponse #

toConstr :: GetLogEventsResponse -> Constr #

dataTypeOf :: GetLogEventsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetLogEventsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetLogEventsResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetLogEventsResponse -> GetLogEventsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetLogEventsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetLogEventsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetLogEventsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetLogEventsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetLogEventsResponse -> m GetLogEventsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetLogEventsResponse -> m GetLogEventsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetLogEventsResponse -> m GetLogEventsResponse #

Read GetLogEventsResponse Source # 
Show GetLogEventsResponse Source # 
Generic GetLogEventsResponse Source # 
NFData GetLogEventsResponse Source # 

Methods

rnf :: GetLogEventsResponse -> () #

type Rep GetLogEventsResponse Source # 
type Rep GetLogEventsResponse = D1 (MetaData "GetLogEventsResponse" "Network.AWS.CloudWatchLogs.GetLogEvents" "amazonka-cloudwatch-logs-1.4.5-JoaCELOvIeKI9iDLq1iWip" False) (C1 (MetaCons "GetLogEventsResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_glersNextBackwardToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_glersNextForwardToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_glersEvents") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [OutputLogEvent]))) (S1 (MetaSel (Just Symbol "_glersResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

glersNextBackwardToken :: Lens' GetLogEventsResponse (Maybe Text) Source #

The token for the next set of items in the backward direction. The token expires after 24 hours.

glersNextForwardToken :: Lens' GetLogEventsResponse (Maybe Text) Source #

The token for the next set of items in the forward direction. The token expires after 24 hours.

glersResponseStatus :: Lens' GetLogEventsResponse Int Source #

  • - | The response status code.