Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-13445

FIWARE.Question.Tech.Fiware: NGSI v2 susbcription: getting notified only about the attribute that has changed.

    Details

      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": [

      { "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!

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        23h 59m 1 Backlog Manager 30/Jan/18 12:05 PM
        In Progress In Progress Answered Answered
        3h 1m 1 Backlog Manager 30/Jan/18 3:07 PM
        Answered Answered Closed Closed
        6d 17h 31m 1 Jose Manuel Cantera 06/Feb/18 8:38 AM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        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!
        backlogmanager Backlog Manager made changes -
        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.
        jmcantera Jose Manuel Cantera made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        veronika Veronika Vlnkova made changes -
        Assignee Jose Manuel Cantera [ jmcantera ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-30 15:07|UPDATED status: transition Answered| # answers= 2, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-30 15:07|UPDATED status: transition Answered| # answers= 2, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-30 12:05|UPDATED status: transition Answer| # answers= 2, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-30 12:05|UPDATED status: transition Answer| # answers= 2, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-29 12:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-29 12:05|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            jmcantera Jose Manuel Cantera
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: