[ https://jira.fiware.org/browse/HELP-17749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fernando Lopez reassigned HELP-17749: ------------------------------------- Assignee: Fermín Galán > [fiware-stackoverflow] FIWARE entity as a group of KPI attributes > ----------------------------------------------------------------- > > Key: HELP-17749 > URL: https://jira.fiware.org/browse/HELP-17749 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: Fermín Galán > Labels: fiware, fiware-orion > > Created question in FIWARE Q/A platform on 20-05-2021 at 07:05 > {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/67616280/fiware-entity-as-a-group-of-kpi-attributes > +Question:+ > FIWARE entity as a group of KPI attributes > +Description:+ > Our system needs to return several KPIs grouped in different topics: > Census: > citizens (number of inhabitants) > citizens without any studies > ... > Information desk > Phone response time > Mail response time > ... > Tax > Online payments > Window payments > ... > To my understanding, it would make sense to have an entity for each topic and each KPI being a KeyPerformanceIndicator attribute. eg: This could work similar to: > { > "description": "Census Information system", > "dataProvided": { > "entities": [ > { > "idPattern": ".*" > } > ], > "attrs":[ //THIS SEEMS AN INTERESTING APPROACH, BUT SADLY ALSO INVALID > { > "name": "citizens", > "type": "KeyPerformanceIndicator" > }, > { > "name": "citizens_without_studies", > "type": "KeyPerformanceIndicator" > }, > //... > ] > }, > "provider": { > "http": { > "url": "http://myhost/v2/census" > } > } > } > (TL;DR: "attrs" supports strings only, so can't return complex/data modeled types, like KPI) > Setting this happy idea aside, what it would be a good approach to solve this? > Must each KPI be an entity? > Is NGSI-LD what I'm looking for? -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy