envs_1 / data /lib /python3.10 /site-packages /awscli /examples /iotanalytics /sample-channel-data.rst
Download data/lib/python3.10/site-packages/awscli/examples/iotanalytics/sample-channel-data.rst from ZTWHHH/envs_1: direct link, hf CLI and curl.
- Browser
- Download file 628 Bytes
-
https://huggingface.co/datasets/ZTWHHH/envs_1/resolve/main/data/lib/python3.10/site-packages/awscli/examples/iotanalytics/sample-channel-data.rst
- Command line
-
hf download hf://datasets/ZTWHHH/envs_1/data/lib/python3.10/site-packages/awscli/examples/iotanalytics/sample-channel-data.rst
-
curl -L -o sample-channel-data.rst https://huggingface.co/datasets/ZTWHHH/envs_1/resolve/main/data/lib/python3.10/site-packages/awscli/examples/iotanalytics/sample-channel-data.rst
628 Bytes
| **To retrieve sample messages from a channel** | |
| The following ``sample-channel-data`` example retrieves a sample of messages from the specified channel ingested during the specified timeframe. You can retrieve up to 10 messages. :: | |
| aws iotanalytics sample-channel-data \ | |
| --channel-name mychannel | |
| Output:: | |
| { | |
| "payloads": [ | |
| "eyAidGVtcGVyYXR1cmUiOiAyMCB9", | |
| "eyAiZm9vIjogImJhciIgfQ==" | |
| ] | |
| } | |
| For more information, see `SampleChannelData <https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_SampleChannelData.html>`__ in the *AWS IoT Analytics API Reference*. | |