diff options
Diffstat (limited to 'config/jolt/vserverSpec.json')
-rw-r--r-- | config/jolt/vserverSpec.json | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/config/jolt/vserverSpec.json b/config/jolt/vserverSpec.json new file mode 100644 index 0000000..00659cd --- /dev/null +++ b/config/jolt/vserverSpec.json @@ -0,0 +1,61 @@ +[ + // This section converts the json from network discovery micro-service + // to org.onap.pomba.audit.common.model.VM + + { + "operation": "shift", + "spec": { + "resources": { + "*": { + "id": "uuid", + "name": "name", + "dataQuality": "dataQuality", + "attributeList": { + "*": { + // filter the Network Discovery attributes that we want to keep, to a temporary list: + "name": { + "inMaintenance": { + "@2": "tempList[]" + }, + "hostname": { + "@2": "tempList[]" + }, + "imageId": { + "@2": "tempList[]" + } + } + } + } + } + } + } + } + , + { + // Convert the attribute names to common model names. + "operation": "shift", + "spec": { + "tempList": { + "*": { + "name" : { + "inMaintenance": { + "#lockedBoolean": "attributeList[#4].name" + }, + "hostname": { + "#hostName": "attributeList[#4].name" + }, + "imageId": { + "#imageId": "attributeList[#4].name" + } + }, + "*" : { + "@" : "attributeList[#3].&" + } + } + }, + "*": { + "@" : "&" + } + } + } +] |