gpt4 book ai didi

python - SQS : How can I read the sent time of an SQS message using Python's boto library

转载 作者:太空狗 更新时间:2023-10-29 21:50:24 26 4
gpt4 key购买 nike

当我在 AWS 控制台的 SQS 消息 View 中查看消息时,我可以看到消息有发送时间。我如何使用 Python 的 boto 库读取这些数据?

最佳答案

当您在 boto 中从队列中读取消息时,您会得到一个 Message 对象。该对象具有名为 attributes 的属性。它是 SQS 保留的关于此消息的属性字典。它包括 SentTimestamp

关于python - SQS : How can I read the sent time of an SQS message using Python's boto library,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14945604/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com