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

        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
        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
        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

          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: