[Backlogmanager] [FIWARE-JIRA] (HELP-8380) [fiware-stackoverflow] FIWARE Orion: how to add creDate and modDate to notification from orion?

Fermín Galán (JIRA) jira-help-desk at jira.fiware.org
Mon Mar 13 09:54:00 CET 2017


     [ https://jira.fiware.org/browse/HELP-8380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fermín Galán resolved HELP-8380.
--------------------------------
    Resolution: Done

> [fiware-stackoverflow] FIWARE Orion: how to add creDate and modDate to notification from orion?
> -----------------------------------------------------------------------------------------------
>
>                 Key: HELP-8380
>                 URL: https://jira.fiware.org/browse/HELP-8380
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Fermín Galán
>              Labels: fiware, fiware-orion, mongodb
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy