向Timestream表中插入数据。

0

【以下的问题经过翻译处理】 我已经创建了一个Timestream数据库和表,但是我无法将数据写入到表中。 数据来自MQTT主题,并且可以在CloudWatch日志中看到,所以我知道我的选择语句正确。 我认为我已经给IAM角色正确的权限。

这个答案描述了如何输入“时间戳值”,但没有说明“时间戳单位”字段需要什么。 我是一个完全的AWS新手,如果我的问题表达不正确,请见谅。我真的非常需要帮助!

还有一个问题,为什么在我停用规则后,它仍然会出现在CloudWatch日志中?

profile picture
EXPERTE
gefragt vor 5 Monaten43 Aufrufe
1 Antwort
0

【以下的回答经过翻译处理】 你是在查看 AWSIotLogsV2 日志组吗?并且查看了 RuleMatchRuleExecution 事件类型吗?

https://docs.aws.amazon.com/iot/latest/developerguide/cwl-format.html#rule-engine-logs

如果你的规则在规则执行期间出现错误,你应该可以在 RuleExecution 事件类型中看到它。

另外一个问题,为什么我停用了一条规则后,仍然会出现在 cloudwatch 日志中?

这个问题让我觉得你没有查看 RuleExecution

关于如何输入“时间戳值”,但没有说明“时间戳单位”字段需要什么。

time_to_epoch() 返回毫秒级的 epoch 时间。

https://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-functions.html#iot-sql-function-time-to-epoch

profile picture
EXPERTE
beantwortet vor 5 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen