| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.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
- data SampleChannelData = SampleChannelData' {}
- newSampleChannelData :: Text -> SampleChannelData
- sampleChannelData_endTime :: Lens' SampleChannelData (Maybe UTCTime)
- sampleChannelData_maxMessages :: Lens' SampleChannelData (Maybe Natural)
- sampleChannelData_startTime :: Lens' SampleChannelData (Maybe UTCTime)
- sampleChannelData_channelName :: Lens' SampleChannelData Text
- data SampleChannelDataResponse = SampleChannelDataResponse' {}
- newSampleChannelDataResponse :: Int -> SampleChannelDataResponse
- sampleChannelDataResponse_payloads :: Lens' SampleChannelDataResponse (Maybe (NonEmpty ByteString))
- sampleChannelDataResponse_httpStatus :: Lens' SampleChannelDataResponse Int
Creating a Request
data SampleChannelData Source #
See: newSampleChannelData smart constructor.
Constructors
| SampleChannelData' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> SampleChannelData |
Create a value of SampleChannelData with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:endTime:SampleChannelData', sampleChannelData_endTime - The end of the time window from which sample messages are retrieved.
$sel:maxMessages:SampleChannelData', sampleChannelData_maxMessages - The number of sample messages to be retrieved. The limit is 10. The
default is also 10.
$sel:startTime:SampleChannelData', sampleChannelData_startTime - The start of the time window from which sample messages are retrieved.
SampleChannelData, sampleChannelData_channelName - The name of the channel whose message samples are retrieved.
Request Lenses
sampleChannelData_endTime :: Lens' SampleChannelData (Maybe UTCTime) Source #
The end of the time window from which sample messages are retrieved.
sampleChannelData_maxMessages :: Lens' SampleChannelData (Maybe Natural) Source #
The number of sample messages to be retrieved. The limit is 10. The default is also 10.
sampleChannelData_startTime :: Lens' SampleChannelData (Maybe UTCTime) Source #
The start of the time window from which sample messages are retrieved.
sampleChannelData_channelName :: Lens' SampleChannelData Text Source #
The name of the channel whose message samples are retrieved.
Destructuring the Response
data SampleChannelDataResponse Source #
See: newSampleChannelDataResponse smart constructor.
Constructors
| SampleChannelDataResponse' | |
Instances
newSampleChannelDataResponse Source #
Create a value of SampleChannelDataResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:payloads:SampleChannelDataResponse', sampleChannelDataResponse_payloads - The list of message samples. Each sample message is returned as a
base64-encoded string.
$sel:httpStatus:SampleChannelDataResponse', sampleChannelDataResponse_httpStatus - The response's http status code.
Response Lenses
sampleChannelDataResponse_payloads :: Lens' SampleChannelDataResponse (Maybe (NonEmpty ByteString)) Source #
The list of message samples. Each sample message is returned as a base64-encoded string.
sampleChannelDataResponse_httpStatus :: Lens' SampleChannelDataResponse Int Source #
The response's http status code.