amazonka-cloudwatch-logs-1.4.4: 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.PutLogEvents

Contents

Description

Uploads a batch of log events to the specified log stream.

Every PutLogEvents request must include the sequenceToken obtained from the response of the previous request. An upload in a newly created log stream does not require a sequenceToken. You can also get the sequenceToken using DescribeLogStreams.

The batch of events must satisfy the following constraints:

  • The maximum batch size is 1,048,576 bytes, and this size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.
  • None of the log events in the batch can be more than 2 hours in the future.
  • None of the log events in the batch can be older than 14 days or the retention period of the log group.
  • The log events in the batch must be in chronological ordered by their timestamp.
  • The maximum number of log events in a batch is 10,000.
  • A batch of log events in a single PutLogEvents request cannot span more than 24 hours. Otherwise, the PutLogEvents operation will fail.

Synopsis

Creating a Request

putLogEvents Source #

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

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

data PutLogEvents Source #

See: putLogEvents smart constructor.

Instances

Eq PutLogEvents Source # 
Data PutLogEvents Source # 

Methods

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

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

toConstr :: PutLogEvents -> Constr #

dataTypeOf :: PutLogEvents -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutLogEvents Source # 
Show PutLogEvents Source # 
Generic PutLogEvents Source # 

Associated Types

type Rep PutLogEvents :: * -> * #

Hashable PutLogEvents Source # 
NFData PutLogEvents Source # 

Methods

rnf :: PutLogEvents -> () #

AWSRequest PutLogEvents Source # 
ToPath PutLogEvents Source # 
ToHeaders PutLogEvents Source # 
ToQuery PutLogEvents Source # 
ToJSON PutLogEvents Source # 

Methods

toJSON :: PutLogEvents -> Value #

toEncoding :: PutLogEvents -> Encoding #

type Rep PutLogEvents Source # 
type Rep PutLogEvents = D1 (MetaData "PutLogEvents" "Network.AWS.CloudWatchLogs.PutLogEvents" "amazonka-cloudwatch-logs-1.4.4-EgOzOYKUQiWBkTjIo71Lcv" False) (C1 (MetaCons "PutLogEvents'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pleSequenceToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_pleLogGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_pleLogStreamName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_pleLogEvents") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (List1 InputLogEvent))))))
type Rs PutLogEvents Source # 

Request Lenses

pleSequenceToken :: Lens' PutLogEvents (Maybe Text) Source #

A string token that must be obtained from the response of the previous PutLogEvents request.

pleLogGroupName :: Lens' PutLogEvents Text Source #

The name of the log group to put log events to.

pleLogStreamName :: Lens' PutLogEvents Text Source #

The name of the log stream to put log events to.

Destructuring the Response

putLogEventsResponse Source #

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

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

data PutLogEventsResponse Source #

See: putLogEventsResponse smart constructor.

Instances

Eq PutLogEventsResponse Source # 
Data PutLogEventsResponse Source # 

Methods

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

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

toConstr :: PutLogEventsResponse -> Constr #

dataTypeOf :: PutLogEventsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutLogEventsResponse Source # 
Show PutLogEventsResponse Source # 
Generic PutLogEventsResponse Source # 
NFData PutLogEventsResponse Source # 

Methods

rnf :: PutLogEventsResponse -> () #

type Rep PutLogEventsResponse Source # 
type Rep PutLogEventsResponse = D1 (MetaData "PutLogEventsResponse" "Network.AWS.CloudWatchLogs.PutLogEvents" "amazonka-cloudwatch-logs-1.4.4-EgOzOYKUQiWBkTjIo71Lcv" False) (C1 (MetaCons "PutLogEventsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_plersRejectedLogEventsInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RejectedLogEventsInfo))) ((:*:) (S1 (MetaSel (Just Symbol "_plersNextSequenceToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_plersResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses