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!.

preguntada hace 8 meses265 visualizaciones
1 Respuesta
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
INGENIERO DE SOPORTE
respondido hace 8 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas