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

posta 8 mesi fa265 visualizzazioni
1 Risposta
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
TECNICO DI SUPPORTO
con risposta 8 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande