[ https://jira.fiware.org/browse/HELP-13445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Veronika Vlnkova reassigned HELP-13445:
---------------------------------------
Assignee: Jose Manuel Cantera
> [fiware-stackoverflow] Fiware: NGSI v2 susbcription: getting notified only about the attribute that has changed
> ---------------------------------------------------------------------------------------------------------------
>
> Key: HELP-13445
> URL: https://jira.fiware.org/browse/HELP-13445
> Project: Help-Desk
> Issue Type: Monitor
> Components: FIWARE-TECH-HELP
> Reporter: Backlog Manager
> Assignee: Jose Manuel Cantera
> Labels: fiware, fiware-orion
>
> 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!
--
This message was sent by Atlassian JIRA
(v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy