Dear Josep, So, I'm understand that you need to keep track of a "custom" timestamp for each one of the attributes of the entity, right? A possible workaround (*) with the current version of Orion Context Broker would be to have that timestamp as a separate attribute, associated to the attribute to which it refers using some kind of naming criteria. Ej. if the attribute storing the data is named "attr", then the timestamp associated to it could be named "attr_timestamp". Thus, if you have N "real" attributes, the NGSI entity will have 2*N attributes at the end. If N is small (as usually is), this solution would solve your case. Best regards, ------ Fermín (*) Another functionality that we have identified is about "custom" attribute metadata. That would a "smarter" way of solving the same problem. Please, if you think it would be an instereting feature to you, add a comment supporting it in the following github.com issue: https://github.com/telefonicaid/fiware-orion/issues/252. Thanks! El 25/03/2014 17:05, Josep Bacardit escribió: Dear Fermín, Thanks for your quick response! Yes, we are interested in this functionality. In our case we would like to send to the context broker, the original timestamp registered in the data source. Imagine that we have a problem in the communications and we can't send the information to the context broker. So there will be some delay in the communication. In our api we continue buffering data till the moment the communication will be reestablished. From that moment, we would like to send the data with the original timestamp of the reading and not with the timestamp of the update in the context broker. Thanks and best regards. Josep Bacardit Alavedra TÉCNICO - TECHNICAL ESPECIALIST ICT IDP Edificio Torre Milenium Av. Francesc Macià, 60, 3a planta 08208 Sabadell (Barcelona) Tel. 902 431 289 Fax 937 264 579 jbacardit @idp.es<mailto:jvanbreest at idp.es> www.idp.es<http://www.idp.es/> La información trasmitida va dirigida únicamente a la persona o entidad que se muestra como destinatario y puede contener datos confidenciales o privilegiados. Toda revisión, retransmisión, divulgación u otro uso o acción al respecto por parte de personas o entidades distintas al destinatario está prohibida. Si recibe esto por cualquier error, por favor contacte con la persona que figura como remitente y elimine la información de cualquier ordenador. Los datos personales contenidos en ese mensaje están protegidos por la legislación reguladora del derecho a la protección de datos personales utilizándolos para las finalidades y usos de los cuales ya les hemos informado en el momento de su captación. En caso de querer ejercer los derechos que le brinda esta legislación puede dirigirse a la dirección de la empresa (Av. Francesc Macià, 60, 3a planta). Asimismo en caso de no querer recibir más información a través de correo electrónico puede responder este mensaje indicando que le demos de baja como receptor. De: Fermín Galán Márquez [mailto:fermin at tid.es] Enviado el: martes, 25 de marzo de 2014 15:58 Para: Josep Bacardit CC: fiware-lab-help at lists.fi-ware.eu<mailto:fiware-lab-help at lists.fi-ware.eu> Asunto: Re: [Fiware-lab-help] Entity attributes Dear Josep, The current version of Orion Context Broker (0.10.1) already stores creation and modification timestamps for entities and attributes in its internal database (see https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/Publish/Subscribe_Broker_-_Orion_Context_Broker_-_Installation_and_Administration_Guide#entities_collection). However, this information (which main purpose is to be used in some DB management scripts, e.g. the /usr/share/contextBroker/lastest-updates.py script that comes with the RPM) is not currently exposed in the NGSI API. We are considering to include it as metadata (NGSI allows to attach metadata to attributes) in a future version. What do you think? Are you interested in such functionality? It is important for us to know your opinion, as we take into account the feedback from our users to define the future roadmap of our components. Thanks! Best regards, ------ Fermín El 24/03/2014 19:05, Josep Bacardit escribió: Dear all, I'm trying to add a timestamp in millisecond in a entity attributes. {"contextElements": [{"type": "analyzer","isPattern": "false","id": "object","attributes": [{"TimeInstant": "1395679357129","name": "activeEnergy","type": "kwh","value": "45"}]}],"updateAction": "APPEND"} Is it possible to create this type of entities in the orion-psb-image-R3.2? Or you can only create entities with the attributes: name, type, value? Thanks and best regards! Josep Bacardit Alavedra TÉCNICO - TECHNICAL ESPECIALIST ICT [IDP sin texto] Edificio Torre Milenium Av. Francesc Macià, 60, 3a planta 08208 Sabadell (Barcelona) Tel. 902 431 289 Fax 937 264 579 jbacardit @idp.es<mailto:jvanbreest at idp.es> www.idp.es<http://www.idp.es/> La información trasmitida va dirigida únicamente a la persona o entidad que se muestra como destinatario y puede contener datos confidenciales o privilegiados. Toda revisión, retransmisión, divulgación u otro uso o acción al respecto por parte de personas o entidades distintas al destinatario está prohibida. Si recibe esto por cualquier error, por favor contacte con la persona que figura como remitente y elimine la información de cualquier ordenador. Los datos personales contenidos en ese mensaje están protegidos por la legislación reguladora del derecho a la protección de datos personales utilizándolos para las finalidades y usos de los cuales ya les hemos informado en el momento de su captación. En caso de querer ejercer los derechos que le brinda esta legislación puede dirigirse a la dirección de la empresa (Av. Francesc Macià, 60, 3a planta). Asimismo en caso de no querer recibir más información a través de correo electrónico puede responder este mensaje indicando que le demos de baja como receptor. _______________________________________________ Fiware-lab-help mailing list Fiware-lab-help at lists.fi-ware.eu<mailto:Fiware-lab-help at lists.fi-ware.eu> https://lists.fi-ware.eu/listinfo/fiware-lab-help ________________________________ Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo. This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at: http://www.tid.es/ES/PAGINAS/disclaimer.aspx No se encontraron virus en este mensaje. Comprobado por AVG - www.avg.com<http://www.avg.com> Versión: 2014.0.4354 / Base de datos de virus: 3722/7243 - Fecha de publicación: 03/25/14 ________________________________ Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo. This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at: http://www.tid.es/ES/PAGINAS/disclaimer.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20140325/803e9022/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 4681 bytes Desc: not available URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20140325/803e9022/attachment.jpe>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy