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": [] } ]
}
]
}
]
}
2019-09-05 12:06|CREATED monitor | # answers= 0, accepted answer= False