Skip to content

Commit

Permalink
FIX doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fgalan committed May 29, 2024
1 parent 486e7df commit b0df97e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/manuals/orion-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2373,23 +2373,23 @@ As example, let's consider a subscription like this:
...
"ngsi": {
"speed": {
"value": "${(speed|split('\'' '\''))[0]|parseInt}",
"value": "${(speed|split(' '))[0]|parseInt}",
"type": "Calculated"
},
"ratio": {
"value": "${count.sum/count.count}",
"type": "Calculated"
},
"code": {
"value": "${code||'\''invalid'\''}",
"value": "${code||'invalid'}",
"type": "Calculated"
},
"alert": {
"value": "${(value>max)?'\''nok'\'':'\''ok'\''}",
"value": "${(value>max)?'nok':'ok'}",
"type": "Calculated"
},
"count": {
"value": "${{count:count.count+1, sum:count.sum+((speed|split('\'' '\''))[0]|parseInt)}}",
"value": "${{count:count.count+1, sum:count.sum+((speed|split(' '))[0]|parseInt)}}",
"type": "Calculated"
}
}
Expand Down

0 comments on commit b0df97e

Please sign in to comment.