IoT Events with Firehose Action

0

I'm trying to use IoT Events Alarm actions with custom payload and Firehose as action target. When i look into the documentation i can't find any example of the syntax required to write a custom payload and searching in different forums is not helping.

I'm trying to send a custom payload with the following content.

{
  "assetId": <sitewise asset identifier>,
  "inputValue": <input value that triggered the alarm>,
  "state": <state of the alarm>
}

This JSON is an example and could be changed but the assetId is one of the primary fields i need.

Thank you!.

質問済み 8ヶ月前265ビュー
1回答
0

Payload uses Content expressions which can be used in the format specified Here:

The content of the payload. You can use a string expression that includes quoted strings ('<string>'), variables ($variable.<variable-name>), input values ($input.<input-name>.<path-to-datum>), string concatenations, and quoted strings that contain ${} as the content. The recommended maximum size of a content expression is 1 KB

https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html

For further assistance on exact syntax and expression, please do reach out to AWS Support with your Alarm model definition and asset model definition and share this post for further assistance. https://support.console.aws.amazon.com/support/home#/case/create

AWS
サポートエンジニア
回答済み 8ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ