| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.IoTAnalytics.SampleChannelData
Description
Retrieves a sample of messages from the specified channel ingested during the specified timeframe. Up to 10 messages can be retrieved.
Synopsis
- sampleChannelData :: Text -> SampleChannelData
- data SampleChannelData
- scdStartTime :: Lens' SampleChannelData (Maybe UTCTime)
- scdMaxMessages :: Lens' SampleChannelData (Maybe Natural)
- scdEndTime :: Lens' SampleChannelData (Maybe UTCTime)
- scdChannelName :: Lens' SampleChannelData Text
- sampleChannelDataResponse :: Int -> SampleChannelDataResponse
- data SampleChannelDataResponse
- scdrsPayloads :: Lens' SampleChannelDataResponse (Maybe (NonEmpty ByteString))
- scdrsResponseStatus :: Lens' SampleChannelDataResponse Int
Creating a Request
Arguments
| :: Text | |
| -> SampleChannelData |
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
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 #
Arguments
| :: Int | |
| -> SampleChannelDataResponse |
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:
scdrsPayloads- The list of message samples. Each sample message is returned as a base64-encoded string.scdrsResponseStatus- -- | The response status code.
data SampleChannelDataResponse Source #
See: sampleChannelDataResponse smart constructor.
Instances
Response Lenses
scdrsPayloads :: Lens' SampleChannelDataResponse (Maybe (NonEmpty ByteString)) Source #
The list of message samples. Each sample message is returned as a base64-encoded string.
scdrsResponseStatus :: Lens' SampleChannelDataResponse Int Source #
- - | The response status code.