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

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

Creating a Request

data SampleChannelData Source #

See: newSampleChannelData smart constructor.

Constructors

SampleChannelData' 

Fields

  • startTime :: Maybe POSIX

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

  • maxMessages :: Maybe Natural

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

  • endTime :: Maybe POSIX

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

  • channelName :: Text

    The name of the channel whose message samples are retrieved.

Instances

Instances details
Eq SampleChannelData Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

Read SampleChannelData Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

Show SampleChannelData Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

Generic SampleChannelData Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

Associated Types

type Rep SampleChannelData :: Type -> Type #

NFData SampleChannelData Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

Methods

rnf :: SampleChannelData -> () #

Hashable SampleChannelData Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

AWSRequest SampleChannelData Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

Associated Types

type AWSResponse SampleChannelData #

ToHeaders SampleChannelData Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

ToPath SampleChannelData Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

ToQuery SampleChannelData Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

type Rep SampleChannelData Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

type Rep SampleChannelData = D1 ('MetaData "SampleChannelData" "Amazonka.IoTAnalytics.SampleChannelData" "libZSservicesZSamazonka-iot-analyticsZSamazonka-iot-analytics" 'False) (C1 ('MetaCons "SampleChannelData'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "maxMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "endTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "channelName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse SampleChannelData Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

newSampleChannelData Source #

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:startTime:SampleChannelData', sampleChannelData_startTime - The start 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:endTime:SampleChannelData', sampleChannelData_endTime - The end of the time window from which sample messages are retrieved.

$sel:channelName:SampleChannelData', sampleChannelData_channelName - The name of the channel whose message samples are retrieved.

Request Lenses

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

The start 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_endTime :: Lens' SampleChannelData (Maybe UTCTime) Source #

The end 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' 

Fields

Instances

Instances details
Eq SampleChannelDataResponse Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

Read SampleChannelDataResponse Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

Show SampleChannelDataResponse Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

Generic SampleChannelDataResponse Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

Associated Types

type Rep SampleChannelDataResponse :: Type -> Type #

NFData SampleChannelDataResponse Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

type Rep SampleChannelDataResponse Source # 
Instance details

Defined in Amazonka.IoTAnalytics.SampleChannelData

type Rep SampleChannelDataResponse = D1 ('MetaData "SampleChannelDataResponse" "Amazonka.IoTAnalytics.SampleChannelData" "libZSservicesZSamazonka-iot-analyticsZSamazonka-iot-analytics" 'False) (C1 ('MetaCons "SampleChannelDataResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "payloads") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Base64))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.