sample_channel_data(**kwargs)¶Retrieves a sample of messages from the specified channel ingested during the specified timeframe. Up to 10 messages can be retrieved.
See also: AWS API Documentation
Request Syntax
response = client.sample_channel_data(
    channelName='string',
    maxMessages=123,
    startTime=datetime(2015, 1, 1),
    endTime=datetime(2015, 1, 1)
)
[REQUIRED]
The name of the channel whose message samples are retrieved.
dict
Response Syntax
{
    'payloads': [
        b'bytes',
    ]
}
Response Structure
(dict) --
payloads (list) --
The list of message samples. Each sample message is returned as a base64-encoded string.
Exceptions
IoTAnalytics.Client.exceptions.InvalidRequestExceptionIoTAnalytics.Client.exceptions.ResourceNotFoundExceptionIoTAnalytics.Client.exceptions.InternalFailureExceptionIoTAnalytics.Client.exceptions.ServiceUnavailableExceptionIoTAnalytics.Client.exceptions.ThrottlingException