amazonka-iot-analytics-1.6.0: Amazon IoT Analytics SDK.

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

Network.AWS.IoTAnalytics.SampleChannelData

Contents

Description

Retrieves a sample of messages from the specified channel ingested during the specified timeframe. Up to 10 messages can be retrieved.

Synopsis

Creating a Request

sampleChannelData Source #

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

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

  • scdStartTime - The start of the time window from which sample messages are retrieved.
  • scdMaxMessages - The number of sample messages to be retrieved. The limit is 10, the default is also 10.
  • scdEndTime - The end of the time window from which sample messages are retrieved.
  • scdChannelName - The name of the channel whose message samples are retrieved.

data SampleChannelData Source #

See: sampleChannelData smart constructor.

Instances

Eq SampleChannelData Source # 
Data SampleChannelData Source # 

Methods

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

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

toConstr :: SampleChannelData -> Constr #

dataTypeOf :: SampleChannelData -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SampleChannelData Source # 
Show SampleChannelData Source # 
Generic SampleChannelData Source # 
Hashable SampleChannelData Source # 
NFData SampleChannelData Source # 

Methods

rnf :: SampleChannelData -> () #

AWSRequest SampleChannelData Source # 
ToHeaders SampleChannelData Source # 
ToPath SampleChannelData Source # 
ToQuery SampleChannelData Source # 
type Rep SampleChannelData Source # 
type Rep SampleChannelData = D1 * (MetaData "SampleChannelData" "Network.AWS.IoTAnalytics.SampleChannelData" "amazonka-iot-analytics-1.6.0-J5q8AVx26VCAr48eVqZbw0" False) (C1 * (MetaCons "SampleChannelData'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_scdStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe POSIX))) (S1 * (MetaSel (Just Symbol "_scdMaxMessages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_scdEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe POSIX))) (S1 * (MetaSel (Just Symbol "_scdChannelName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs SampleChannelData Source # 

Request Lenses

scdStartTime :: Lens' SampleChannelData (Maybe UTCTime) Source #

The start of the time window from which sample messages are retrieved.

scdMaxMessages :: Lens' SampleChannelData (Maybe Natural) Source #

The number of sample messages to be retrieved. The limit is 10, the default is also 10.

scdEndTime :: Lens' SampleChannelData (Maybe UTCTime) Source #

The end of the time window from which sample messages are retrieved.

scdChannelName :: Lens' SampleChannelData Text Source #

The name of the channel whose message samples are retrieved.

Destructuring the Response

sampleChannelDataResponse Source #

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

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

data SampleChannelDataResponse Source #

See: sampleChannelDataResponse smart constructor.

Instances

Eq SampleChannelDataResponse Source # 
Data SampleChannelDataResponse Source # 

Methods

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

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

toConstr :: SampleChannelDataResponse -> Constr #

dataTypeOf :: SampleChannelDataResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SampleChannelDataResponse Source # 
Show SampleChannelDataResponse Source # 
Generic SampleChannelDataResponse Source # 
NFData SampleChannelDataResponse Source # 
type Rep SampleChannelDataResponse Source # 
type Rep SampleChannelDataResponse = D1 * (MetaData "SampleChannelDataResponse" "Network.AWS.IoTAnalytics.SampleChannelData" "amazonka-iot-analytics-1.6.0-J5q8AVx26VCAr48eVqZbw0" False) (C1 * (MetaCons "SampleChannelDataResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_scdrsPayloads") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (List1 Base64)))) (S1 * (MetaSel (Just Symbol "_scdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

scdrsPayloads :: Lens' SampleChannelDataResponse (Maybe (NonEmpty ByteString)) Source #

The list of message samples. Each sample message is returned as a base64-encoded string.