Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
Description
Created question in FIWARE Q/A platform on 29-01-2018 at 10:01
Please, ANSWER this question AT https://stackoverflow.com/questions/48498173/fiware-ngsi-v2-susbcription-getting-notified-only-about-the-attribute-that-has
Question:
Fiware: NGSI v2 susbcription: getting notified only about the attribute that has changed
Description:
I have this subscription:
{
"id": "5a27abba56256c402cec5654",
"description": "my subscription",
"status": "active",
"subject": {
"entities": [
],
"condition":
},
"notification": {
"timesSent": 56939,
"lastNotification": "2018-01-29T09:06:45.00Z",
"attrs": [],
"attrsFormat": "normalized",
"http":
,
"lastFailure": "2018-01-24T15:10:08.00Z",
"lastSuccess": "2018-01-29T09:06:45.00Z"
}
}
Using it I can get notified about new entities whithout specifiying a particular entity ID.
the problem is that when one entity attribute changes I get notified about all attributes.
Is it possible to get notified only about the attribute that has changed and keeping in the same time the possibility to discover new entities?
Something like in if attribut x changed in the condition part, get notified about it:
"condition":
{ "attrs": [attribute_X] }"notification":
{ "attrs": [attribute_X] }Thanks!
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Assignee | Jose Manuel Cantera [ jmcantera ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Summary | [fiware-stackoverflow] Fiware: NGSI v2 susbcription: getting notified only about the attribute that has changed | FIWARE.Question.Tech.Fiware: NGSI v2 susbcription: getting notified only about the attribute that has changed. |
HD-Enabler | Orion [ 10875 ] | |
Description |
Created question in FIWARE Q/A platform on 29-01-2018 at 10:01 {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/48498173/fiware-ngsi-v2-susbcription-getting-notified-only-about-the-attribute-that-has +Question:+ Fiware: NGSI v2 susbcription: getting notified only about the attribute that has changed +Description:+ I have this subscription: { "id": "5a27abba56256c402cec5654", "description": "my subscription", "status": "active", "subject": { "entities": [ { "idPattern": ".*" } ], "condition": { "attrs": [] } }, "notification": { "timesSent": 56939, "lastNotification": "2018-01-29T09:06:45.00Z", "attrs": [], "attrsFormat": "normalized", "http": { "url": "http://notif_url" }, "lastFailure": "2018-01-24T15:10:08.00Z", "lastSuccess": "2018-01-29T09:06:45.00Z" } } Using it I can get notified about new entities whithout specifiying a particular entity ID. the problem is that when one entity attribute changes I get notified about all attributes. Is it possible to get notified only about the attribute that has changed and keeping in the same time the possibility to discover new entities? Something like in if attribut x changed in the condition part, get notified about it: "condition": { "attrs": [attribute_X] } "notification": { "attrs": [attribute_X] } Thanks! |
Created question in FIWARE Q/A platform on 29-01-2018 at 10:01
{color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/48498173/fiware-ngsi-v2-susbcription-getting-notified-only-about-the-attribute-that-has +Question:+ Fiware: NGSI v2 susbcription: getting notified only about the attribute that has changed +Description:+ I have this subscription: { "id": "5a27abba56256c402cec5654", "description": "my subscription", "status": "active", "subject": { "entities": [ { "idPattern": ".*" } ], "condition": { "attrs": [] } }, "notification": { "timesSent": 56939, "lastNotification": "2018-01-29T09:06:45.00Z", "attrs": [], "attrsFormat": "normalized", "http": { "url": "http://notif_url" }, "lastFailure": "2018-01-24T15:10:08.00Z", "lastSuccess": "2018-01-29T09:06:45.00Z" } } Using it I can get notified about new entities whithout specifiying a particular entity ID. the problem is that when one entity attribute changes I get notified about all attributes. Is it possible to get notified only about the attribute that has changed and keeping in the same time the possibility to discover new entities? Something like in if attribut x changed in the condition part, get notified about it: "condition": { "attrs": [attribute_X] } "notification": { "attrs": [attribute_X] } Thanks! |
Fix Version/s | 2021 [ 12600 ] |