Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Enabler:Orion
Description
Created question in FIWARE Q/A platform on 05-09-2019 at 11:09
Please, ANSWER this question AT https://stackoverflow.com/questions/57802922/fiware-cygnus-change-service-for-only-some-entities-with-name-mappings
Question:
Fiware Cygnus - Change service for only some entities with name mappings?
Description:
Context :
I have a machine with Orion Context Broker, Cygnus and Ckan. I have 3 entities (sensor1, sensor2, sensor3) and I use name mappings for these three entities to write in a single Ckan datastore named sensors. So far everything works.
What I want :
These 3 entities are in the fiware-service default and I want them to write in the fiware-service paris (the paris organization in Ckan)
Question :
How to make the name mapping change the default fiware-service of these 3 entities into paris, without changing it for all entities?
What I tried :
I tried this, the problem with this code is that all entities of the fiware-service default are moved to the fiware-service paris, not just my trhee entities.
{
"serviceMappings": [
{
"originalService": "default",
"newService": "paris",
"servicePathMappings": [
{
"originalServicePath": "/",
"entityMappings": [
,
,
{ "originalEntityId": "sensor3", "originalEntityType": "device", "newEntityId": "sensors", "attributeMappings": [] } ]
}
]
}
]
}
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
HD-Enabler | Cygnus [ 11304 ] | |
Description |
Created question in FIWARE Q/A platform on 05-09-2019 at 11:09 {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/57802922/fiware-cygnus-change-service-for-only-some-entities-with-name-mappings +Question:+ Fiware Cygnus - Change service for only some entities with name mappings? +Description:+ Context : I have a machine with Orion Context Broker, Cygnus and Ckan. I have 3 entities (sensor1, sensor2, sensor3) and I use name mappings for these three entities to write in a single Ckan datastore named sensors. So far everything works. What I want : These 3 entities are in the fiware-service default and I want them to write in the fiware-service paris (the paris organization in Ckan) Question : How to make the name mapping change the default fiware-service of these 3 entities into paris, without changing it for all entities? What I tried : I tried this, the problem with this code is that all entities of the fiware-service default are moved to the fiware-service paris, not just my trhee entities. { "serviceMappings": [ { "originalService": "default", "newService": "paris", "servicePathMappings": [ { "originalServicePath": "/", "entityMappings": [ { "originalEntityId": "sensor1", "originalEntityType": "device", "newEntityId": "sensors", "attributeMappings": [] }, { "originalEntityId": "sensor2", "originalEntityType": "device", "newEntityId": "sensors", "attributeMappings": [] }, { "originalEntityId": "sensor3", "originalEntityType": "device", "newEntityId": "sensors", "attributeMappings": [] } ] } ] } ] } |
Created question in FIWARE Q/A platform on 05-09-2019 at 11:09
{color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/57802922/fiware-cygnus-change-service-for-only-some-entities-with-name-mappings +Question:+ Fiware Cygnus - Change service for only some entities with name mappings? +Description:+ Context : I have a machine with Orion Context Broker, Cygnus and Ckan. I have 3 entities (sensor1, sensor2, sensor3) and I use name mappings for these three entities to write in a single Ckan datastore named sensors. So far everything works. What I want : These 3 entities are in the fiware-service default and I want them to write in the fiware-service paris (the paris organization in Ckan) Question : How to make the name mapping change the default fiware-service of these 3 entities into paris, without changing it for all entities? What I tried : I tried this, the problem with this code is that all entities of the fiware-service default are moved to the fiware-service paris, not just my trhee entities. { "serviceMappings": [ { "originalService": "default", "newService": "paris", "servicePathMappings": [ { "originalServicePath": "/", "entityMappings": [ { "originalEntityId": "sensor1", "originalEntityType": "device", "newEntityId": "sensors", "attributeMappings": [] }, { "originalEntityId": "sensor2", "originalEntityType": "device", "newEntityId": "sensors", "attributeMappings": [] }, { "originalEntityId": "sensor3", "originalEntityType": "device", "newEntityId": "sensors", "attributeMappings": [] } ] } ] } ] } |
HD-Enabler | Cygnus [ 11304 ] | Orion [ 10875 ] |
Assignee | Fermín Galán [ fermin ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Fix Version/s | 2021 [ 12600 ] |