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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인