Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOT Rules Problem (IOT/ DynamoDB) #18

Open
adlerlinhares opened this issue Aug 16, 2016 · 0 comments
Open

IOT Rules Problem (IOT/ DynamoDB) #18

adlerlinhares opened this issue Aug 16, 2016 · 0 comments

Comments

@adlerlinhares
Copy link

Hi,

I would like to know how to use a payload item as my Range key once i have only seem how to use timestamp as it. So once my payload is:

{
"reported": {
"Chiller 2": {
"Temp compressor in": 0,
"Pressao evaporador": 73,
"Temp. evaporador out": 66,
"Energia Demandada": 0,
"Temp. evaporador in": 83,
"Pressao condensador": 83,
"Temp. compressor out": 85
},
"Predio": {
"Nome": "PredioA"
},
"Data": {
"Calendar": "20160816203033",
"Cabecario ": "16/08/2016 20:30:33"

I would like to Predio.Nome to be my Hash key and Data.Calendar to be my RangeKey, right now i just can use timestamp as range key like you can see:

Role name: predioa-iot-actions-role
Table name: TESTE
Hash key: Nome
Hash key value: ${topic(3)}
Hash key type: STRING
Range key: Date
Range key value: ${timestamp()}
Range key type: NUMBER

What can i do to have the wanted result?

Regards,
Adler Linhares

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant