Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Data
-
HD-Enabler:Orion
Description
Created question in FIWARE Q/A platform on 17-05-2016 at 15:05
Please, ANSWER this question AT http://stackoverflow.com/questions/37277048/how-to-make-an-orion-ngsiv2-subscription-that-notifies-cygnus-in-ngsiv1
Question:
how to make an Orion NGSIv2 subscription that notifies cygnus in NGSIv1?
Description:
As said in other question :
EDIT: note also that you can use NGSIv2 to create/update entities at
Orion and have notifications in NGSIv1 if you:
Create the subscription using NGSIv1 operations
Create the subscription using NGSIv2 operations with attrsFormat equal to legacy.
Have a look to more detailed information here.
So I made up this subscription:
curl --include \
--header 'Content-Type: application/json' \
--request POST \
--data-binary '{
"description": "Day subscription",
"subject": {
"entities": [
],
"condition": {
"attributes": [
"Title",
"dFlag"
],
"expression":
}
},
"notification":
}' \
'http://localhost:1026/v1/subscriptions'
but orion don't let me register it throwing this error:
HTTP/1.1 400 Bad Request
Connection: Keep-Alive
Content-Length: 67
Content-Type: application/json
Fiware-Correlator: 2ecdfc74-1c2f-11e6-82d7-000d3a23bf27
Date: Tue, 17 May 2016 12:59:25 GMT
Is this the way to use legacy attributes so it can work with cygnus with NGSIv2?
Thanks for the help.
2016-05-17 15:05|CREATED monitor | # answers= 0, accepted answer= False