- process_metric = {'performanceValue': {'performanceValue': {}}}
- process_metric['objectInstanceId'] = index['metric']['ns_id']
- process_metric['performanceMetric'] = index['metric']['__name__']
- process_metric['performanceValue']['timestamp'] = index['value'][0]
- process_metric['performanceValue']['performanceValue']['performanceValue'] = index['value'][1]
- process_metric['performanceValue']['performanceValue']['vnfMemberIndex'] \
- = index['metric']['vnf_member_index']
- if 'vdu_name' not in index['metric']:
+ process_metric = {"performanceValue": {"performanceValue": {}}}
+ process_metric["objectInstanceId"] = index["metric"]["ns_id"]
+ process_metric["performanceMetric"] = index["metric"]["__name__"]
+ process_metric["performanceValue"]["timestamp"] = index["value"][0]
+ process_metric["performanceValue"]["performanceValue"][
+ "performanceValue"
+ ] = index["value"][1]
+ process_metric["performanceValue"]["performanceValue"][
+ "vnfMemberIndex"
+ ] = index["metric"]["vnf_member_index"]
+ if "vdu_name" not in index["metric"]: