[Backlogmanager] [FIWARE-JIRA] (HELP-8862) [fiware-stackoverflow] FIWARE-Orion Context Broker metadata updates trigger notifications

José Ignacio Carretero Guarde (JIRA) jira-help-desk at jira.fiware.org
Mon May 29 11:35:00 CEST 2017


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

José Ignacio Carretero Guarde reassigned HELP-8862:
---------------------------------------------------

    Assignee: Fermín Galán

> [fiware-stackoverflow] FIWARE-Orion Context Broker metadata updates trigger notifications
> -----------------------------------------------------------------------------------------
>
>                 Key: HELP-8862
>                 URL: https://jira.fiware.org/browse/HELP-8862
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Fermín Galán
>              Labels: fiware, fiware-orion, notifications, subscription
>
> Created question in FIWARE Q/A platform on 28-12-2015 at 11:12
> {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/34491828/fiware-orion-context-broker-metadata-updates-trigger-notifications
> +Question:+
> FIWARE-Orion Context Broker metadata updates trigger notifications
> +Description:+
> I'm using 3 FIWARE GEs: IDAS+Orion+CEP.
> As reported in the Orion documentation (https://github.com/telefonicaid/fiware-orion/blob/develop/doc/manuals/user/metadata.md) "changing the metadata of a given attribute or adding a new metadata element is considered a change even if attribute value itself hasn't changed".
> Is there a way to send notifications from Orion only if the value of the attribute specified in the subscription changes?
> I've tried the solution proposed in the documentation, delete and re-create the attribute, in order to remove the metadata. But, since the messages to Orion are produced by IDAS, the metadata are created with the new communication.
> Thanks.
> UPDATE:
> GEs Version:
> - Orion -  0.26.1-next
> - IoTAgent (IDAS) - 1.3.1
> The metadata added by IDAS are:  
>   "attributes" : [
>             {
>               "name" : "temperature",
>               "type" : "int",
>               "value" : "37",
>               "metadatas" : [
>                 {
>                   "name" : "TimeInstant",
>                   "type" : "ISO8601",
>                   "value" : "2015-12-29T12:46:04.421859"
>                 }
>               ]
>             }
>           ]
> Specifically, from mongodb query:  
>   "temperature" : { "value" : "37", "type" : "int", "md" : [ { "name" : "TimeInstant", "type" : "ISO8601", "value" : "2015-12-29T12:46:04.421859" } ], "creDate" : 1450716887, "modDate" : 1451393164 }



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