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

[fiware-stackoverflow] FIWARE Orion: how to add creDate and modDate to notification from orion?

    Details

      Description

      Created question in FIWARE Q/A platform on 10-03-2017 at 11:03
      Please, ANSWER this question AT http://stackoverflow.com/questions/42716139/fiware-orion-how-to-add-credate-and-moddate-to-notification-from-orion

      Question:
      FIWARE Orion: how to add creDate and modDate to notification from orion?

      Description:
      I am trying to use subscribeContext and notify (see link https://fiware-orion.readthedocs.io/en/master/user/walkthrough_apiv1/index.html#ngsi10-standard-operations)

      As in mongodb, have creDate and modDate attribute, but in notifyContextRequest payload does not have these two attributes.

      It's possible to include creDate and modDate attribute to notifyContextRequest payload?

      Is there any way to get these attribute using Orion method?

      Please see below for more details:
      A row an mongodb:
      {
      "_id" :

      { "id" : "sb1_dv1_5", "type" : "Call", "servicePath" : "/" }

      ,
      "attrNames" : [
      "status",
      "type",
      "to"
      ],
      "attrs" : {
      "status" :

      { "type" : "string", "creDate" : 1488876118, "modDate" : 1488876118, "value" : "open", "mdNames" : [] }

      ,
      "type" :

      { "type" : "string", "creDate" : 1488876118, "modDate" : 1488876118, "value" : "video", "mdNames" : [] }

      ,
      "to" :

      { "type" : "string", "creDate" : 1488876118, "modDate" : 1488876118, "value" : "police", "mdNames" : [] }

      },
      "creDate" : 1488876118,
      "modDate" : 1488876118
      }

      Thank you so much.

        Activity

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fermin Fermín Galán made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fermin Fermín Galán made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        fermin Fermín Galán made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        Description
        Created question in FIWARE Q/A platform on 10-03-2017 at 11:03
        {color: red}Please, ANSWER this question AT{color} http://stackoverflow.com/questions/42716139/fiware-orion-how-to-add-credate-and-moddate-to-notification-from-orion


        +Question:+
        FIWARE Orion: how to add creDate and modDate to notification from orion?

        +Description:+
        I am trying to use subscribeContext and notify (see link https://fiware-orion.readthedocs.io/en/master/user/walkthrough_apiv1/index.html#ngsi10-standard-operations)

        As in mongodb, have creDate and modDate attribute, but in notifyContextRequest payload does not have these two attributes.

        It's possible to include creDate and modDate attribute to notifyContextRequest payload?

        Is there any way to get these attribute using Orion method?

        Please see below for more details:
        A row an mongodb:
        {
            "_id" : {
                "id" : "sb1_dv1_5",
                "type" : "Call",
                "servicePath" : "/"
            },
            "attrNames" : [
                "status",
                "type",
                "to"
            ],
            "attrs" : {
                "status" : {
                    "type" : "string",
                    "creDate" : 1488876118,
                    "modDate" : 1488876118,
                    "value" : "open",
                    "mdNames" : []
                },
                "type" : {
                    "type" : "string",
                    "creDate" : 1488876118,
                    "modDate" : 1488876118,
                    "value" : "video",
                    "mdNames" : []
                },
                "to" : {
                    "type" : "string",
                    "creDate" : 1488876118,
                    "modDate" : 1488876118,
                    "value" : "police",
                    "mdNames" : []
                }
            },
            "creDate" : 1488876118,
            "modDate" : 1488876118
        }

        Thank you so much.
        Created question in FIWARE Q/A platform on 10-03-2017 at 11:03
        {color: red}Please, ANSWER this question AT{color} http://stackoverflow.com/questions/42716139/fiware-orion-how-to-add-credate-and-moddate-to-notification-from-orion


        +Question:+
        FIWARE Orion: how to add creDate and modDate to notification from orion?

        +Description:+
        I am trying to use subscribeContext and notify (see link https://fiware-orion.readthedocs.io/en/master/user/walkthrough_apiv1/index.html#ngsi10-standard-operations)

        As in mongodb, have creDate and modDate attribute, but in notifyContextRequest payload does not have these two attributes.

        It's possible to include creDate and modDate attribute to notifyContextRequest payload?

        Is there any way to get these attribute using Orion method?

        Please see below for more details:
        A row an mongodb:
        {
            "_id" : {
                "id" : "sb1_dv1_5",
                "type" : "Call",
                "servicePath" : "/"
            },
            "attrNames" : [
                "status",
                "type",
                "to"
            ],
            "attrs" : {
                "status" : {
                    "type" : "string",
                    "creDate" : 1488876118,
                    "modDate" : 1488876118,
                    "value" : "open",
                    "mdNames" : []
                },
                "type" : {
                    "type" : "string",
                    "creDate" : 1488876118,
                    "modDate" : 1488876118,
                    "value" : "video",
                    "mdNames" : []
                },
                "to" : {
                    "type" : "string",
                    "creDate" : 1488876118,
                    "modDate" : 1488876118,
                    "value" : "police",
                    "mdNames" : []
                }
            },
            "creDate" : 1488876118,
            "modDate" : 1488876118
        }

        Thank you so much.
        HD-Chapter Data [ 10838 ]
        fla Fernando Lopez made changes -
        Assignee Fermín Galán [ fermin ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: