2021-06-13 14:05:27,059 DEBUG 195:onap_service.py(1) - [None][Create Loop Instance] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:05:27,060 DEBUG 197:onap_service.py(1) - [None][Create Loop Instance] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/create/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F?templateName=LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice
2021-06-13 14:05:27,060 DEBUG 198:onap_service.py(1) - [None][Create Loop Instance] data sent: None
2021-06-13 14:05:27,060 DEBUG 103:onap_service.py(1) - [None][Create Loop Instance] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:05:27,061 DEBUG 105:onap_service.py(1) - [None][Create Loop Instance] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/create/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F?templateName=LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice
2021-06-13 14:05:27,061 DEBUG 106:onap_service.py(1) - [None][Create Loop Instance] data sent: None
2021-06-13 14:05:27,064 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-13 14:05:27,211 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "POST /restservices/clds/v2/loop/create/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F?templateName=LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice HTTP/1.1" 200 None
2021-06-13 14:05:27,213 INFO 116:onap_service.py(1) - [None][Create Loop Instance] response code: 200
2021-06-13 14:05:27,214 DEBUG 120:onap_service.py(1) - [None][Create Loop Instance] response: {
  "name": "LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F",
  "globalPropertiesJson": {
    "dcaeDeployParameters": {
      "uniqueBlueprintParameters": {
        "service_name": "dcae-tcagen2",
        "log_directory": "/opt/logs/dcae-analytics-tca",
        "replicas": 1,
        "spring.data.mongodb.uri": "mongodb://dcae-mongohost/dcae-tcagen2",
        "tag_version": "nexus-rdnv6.onap.dyn.nesc.nokia.net:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1",
        "tca.aai.password": "DCAE",
        "tca.aai.url": "http://aai.onap.svc.cluster.local",
        "tca.aai.username": "DCAE",
        "tca_handle_in_subscribe_url": "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT",
        "tca_handle_out_publish_url": "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT",
        "tca_consumer_group": "cg1",
        "policy_model_id": "onap.policies.monitoring.tcagen2",
        "policy_id": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby"
      }
    }
  },
  "modelService": {
    "serviceDetails": {
      "serviceType": "",
      "serviceRole": "",
      "serviceFunction": "",
      "description": "service",
      "type": "Service",
      "instantiationType": "A-la-carte",
      "namingPolicy": "",
      "environmentContext": "General_Revenue-Bearing",
      "name": "basicclamp",
      "invariantUUID": "55cc43d2-abc4-4046-8b32-38c016b4e786",
      "ecompGeneratedNaming": "true",
      "UUID": "94f77a1c-4d86-470a-bc9c-125ae222adfb",
      "category": "Network Service"
    },
    "resourceDetails": {
      "CP": {},
      "VL": {},
      "VF": {
        "basicclamp 0": {
          "resourceVendor": "basiclamp_vendor",
          "name": "basicclamp",
          "description": "VF",
          "invariantUUID": "45c660b8-bc07-4fcd-a0f1-d6a7cd60ac86",
          "UUID": "a2cda4ec-db46-4694-8f14-524ae99e5ffa",
          "category": "Generic",
          "type": "VF",
          "subcategory": "Abstract",
          "version": "1.0",
          "customizationUUID": "e1c140c8-080f-486a-b9c5-ae4d9fff2ead",
          "resourceVendorRelease": "1.0",
          "reourceVendorModelNumber": ""
        }
      },
      "CR": {},
      "VFC": {},
      "PNF": {},
      "Service": {},
      "CVFC": {},
      "Service Proxy": {},
      "Configuration": {},
      "AllottedResource": {},
      "VFModule": {
        "Basicclamp..base_ubuntu18..module-0": {
          "vfModuleModelInvariantUUID": "eab409d0-1d7e-4b5b-80ae-ecb77655c47b",
          "vfModuleModelVersion": "1",
          "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
          "vfModuleModelUUID": "ace01596-65ed-41c4-b77f-a276e15124ac",
          "vfModuleModelCustomizationUUID": "99f59cf2-1fb9-46fc-8332-5bd982b5876b",
          "min_vf_module_instances": 1,
          "vf_module_label": "base_ubuntu18",
          "max_vf_module_instances": 1,
          "vf_module_type": "Base",
          "isBase": true,
          "initial_count": 1,
          "volume_group": false
        }
      }
    }
  },
  "lastComputedState": "DESIGN",
  "components": {
    "POLICY": {
      "componentState": {
        "stateName": "UNKNOWN",
        "description": "The current status is not clear. Need to refresh the status to get the current status."
      }
    },
    "DCAE": {
      "componentState": {
        "stateName": "BLUEPRINT_DEPLOYED",
        "description": "The DCAE blueprint has been found in the DCAE inventory but not yet instancianted for this loop"
      }
    }
  },
  "operationalPolicies": [],
  "microServicePolicies": [
    {
      "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby",
      "shared": false,
      "jsonRepresentation": {
        "title": "onap.policies.monitoring.tcagen2",
        "type": "object",
        "required": [
          "tca.policy"
        ],
        "properties": {
          "tca.policy": {
            "title": "onap.datatypes.monitoring.tca_policy",
            "type": "object",
            "required": [
              "domain",
              "metricsPerEventName"
            ],
            "properties": {
              "domain": {
                "type": "string",
                "description": "Domain name to which TCA needs to be applied",
                "default": "measurementsForVfScaling",
                "const": "measurementsForVfScaling"
              },
              "metricsPerEventName": {
                "type": "array",
                "description": "Contains eventName and threshold details that need to be applied to given eventName",
                "items": {
                  "title": "onap.datatypes.monitoring.metricsPerEventName",
                  "type": "object",
                  "required": [
                    "policyScope",
                    "thresholds",
                    "eventName",
                    "policyVersion",
                    "controlLoopSchemaType",
                    "policyName"
                  ],
                  "properties": {
                    "policyScope": {
                      "type": "string",
                      "description": "TCA Policy Scope"
                    },
                    "thresholds": {
                      "type": "array",
                      "description": "Thresholds associated with eventName",
                      "items": {
                        "title": "onap.datatypes.monitoring.thresholds",
                        "type": "object",
                        "required": [
                          "version",
                          "severity",
                          "thresholdValue",
                          "closedLoopEventStatus",
                          "closedLoopControlName",
                          "direction",
                          "fieldPath"
                        ],
                        "properties": {
                          "version": {
                            "type": "string",
                            "description": "Version number associated with the threshold"
                          },
                          "severity": {
                            "type": "string",
                            "description": "Threshold Event Severity",
                            "enum": [
                              "CRITICAL",
                              "MAJOR",
                              "MINOR",
                              "WARNING",
                              "NORMAL"
                            ]
                          },
                          "thresholdValue": {
                            "type": "integer",
                            "description": "Threshold value for the field Path inside CEF message"
                          },
                          "closedLoopEventStatus": {
                            "type": "string",
                            "description": "Closed Loop Event Status of the threshold",
                            "enum": [
                              "ONSET",
                              "ABATED"
                            ]
                          },
                          "closedLoopControlName": {
                            "type": "string",
                            "description": "Closed Loop Control Name associated with the threshold"
                          },
                          "direction": {
                            "type": "string",
                            "description": "Direction of the threshold",
                            "enum": [
                              "LESS",
                              "LESS_OR_EQUAL",
                              "GREATER",
                              "GREATER_OR_EQUAL",
                              "EQUAL"
                            ]
                          },
                          "fieldPath": {
                            "type": "string",
                            "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
                            "enum": [
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
                              "$.event.measurementsForVfScalingFields.meanRequestLatency",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
                              "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
                            ]
                          }
                        }
                      },
                      "format": "tabs-top"
                    },
                    "eventName": {
                      "type": "string",
                      "description": "Event name to which thresholds need to be applied"
                    },
                    "policyVersion": {
                      "type": "string",
                      "description": "TCA Policy Scope Version"
                    },
                    "controlLoopSchemaType": {
                      "type": "string",
                      "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
                      "enum": [
                        "VM",
                        "VNF"
                      ]
                    },
                    "policyName": {
                      "type": "string",
                      "description": "TCA Policy Scope Name"
                    }
                  }
                },
                "format": "tabs-top"
              }
            }
          }
        }
      },
      "loopElementModel": {
        "name": "onap.policies.monitoring.tcagen2",
        "loopElementType": "MICRO_SERVICE_TYPE",
        "policyModels": [
          {
            "policyModelType": "onap.policies.monitoring.tcagen2",
            "version": "1.0.0",
            "policyAcronym": "tcagen2",
            "policyPdpGroup": {
              "supportedPdpGroups": [
                {
                  "defaultGroup": [
                    "xacml"
                  ]
                }
              ]
            },
            "createdDate": "2021-06-13T10:54:47.933418Z",
            "updatedDate": "2021-06-13T10:55:41.102546Z",
            "updatedBy": "Not found",
            "createdBy": "Not found"
          }
        ],
        "createdDate": "2021-06-13T14:02:17.142331Z",
        "updatedDate": "2021-06-13T14:02:17.142331Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "policyModel": {
        "policyModelType": "onap.policies.monitoring.tcagen2",
        "version": "1.0.0",
        "policyAcronym": "tcagen2",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:47.933418Z",
        "updatedDate": "2021-06-13T10:55:41.102546Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.187003Z",
      "updatedDate": "2021-06-13T14:05:27.187003Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "loopLogs": [],
  "loopTemplate": {
    "name": "LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice",
    "dcaeBlueprintId": "90e2d3bf-ec7d-42cf-8121-759c681797c8",
    "loopElementModelsUsed": [
      {
        "loopElementModel": {
          "name": "onap.policies.monitoring.tcagen2",
          "loopElementType": "MICRO_SERVICE_TYPE",
          "policyModels": [
            {
              "policyModelType": "onap.policies.monitoring.tcagen2",
              "version": "1.0.0",
              "policyAcronym": "tcagen2",
              "policyPdpGroup": {
                "supportedPdpGroups": [
                  {
                    "defaultGroup": [
                      "xacml"
                    ]
                  }
                ]
              },
              "createdDate": "2021-06-13T10:54:47.933418Z",
              "updatedDate": "2021-06-13T10:55:41.102546Z",
              "updatedBy": "Not found",
              "createdBy": "Not found"
            }
          ],
          "createdDate": "2021-06-13T14:02:17.142331Z",
          "updatedDate": "2021-06-13T14:02:17.142331Z",
          "updatedBy": "Not found",
          "createdBy": "Not found"
        },
        "flowOrder": 0
      }
    ],
    "modelService": {
      "serviceDetails": {
        "serviceType": "",
        "serviceRole": "",
        "serviceFunction": "",
        "description": "service",
        "type": "Service",
        "instantiationType": "A-la-carte",
        "namingPolicy": "",
        "environmentContext": "General_Revenue-Bearing",
        "name": "basicclamp",
        "invariantUUID": "55cc43d2-abc4-4046-8b32-38c016b4e786",
        "ecompGeneratedNaming": "true",
        "UUID": "94f77a1c-4d86-470a-bc9c-125ae222adfb",
        "category": "Network Service"
      },
      "resourceDetails": {
        "CP": {},
        "VL": {},
        "VF": {
          "basicclamp 0": {
            "resourceVendor": "basiclamp_vendor",
            "name": "basicclamp",
            "description": "VF",
            "invariantUUID": "45c660b8-bc07-4fcd-a0f1-d6a7cd60ac86",
            "UUID": "a2cda4ec-db46-4694-8f14-524ae99e5ffa",
            "category": "Generic",
            "type": "VF",
            "subcategory": "Abstract",
            "version": "1.0",
            "customizationUUID": "e1c140c8-080f-486a-b9c5-ae4d9fff2ead",
            "resourceVendorRelease": "1.0",
            "reourceVendorModelNumber": ""
          }
        },
        "CR": {},
        "VFC": {},
        "PNF": {},
        "Service": {},
        "CVFC": {},
        "Service Proxy": {},
        "Configuration": {},
        "AllottedResource": {},
        "VFModule": {
          "Basicclamp..base_ubuntu18..module-0": {
            "vfModuleModelInvariantUUID": "eab409d0-1d7e-4b5b-80ae-ecb77655c47b",
            "vfModuleModelVersion": "1",
            "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
            "vfModuleModelUUID": "ace01596-65ed-41c4-b77f-a276e15124ac",
            "vfModuleModelCustomizationUUID": "99f59cf2-1fb9-46fc-8332-5bd982b5876b",
            "min_vf_module_instances": 1,
            "vf_module_label": "base_ubuntu18",
            "max_vf_module_instances": 1,
            "vf_module_type": "Base",
            "isBase": true,
            "initial_count": 1,
            "volume_group": false
          }
        }
      }
    },
    "maximumInstancesAllowed": 0,
    "uniqueBlueprint": true,
    "allowedLoopType": "CLOSED",
    "createdDate": "2021-06-13T14:02:17.120585Z",
    "updatedDate": "2021-06-13T14:02:17.120585Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-13T14:05:27.173340Z",
  "updatedDate": "2021-06-13T14:05:27.173340Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-13 14:05:27,217 ERROR 79:instantiate_loop.py(1) - An error occured while creating the loop instance
2021-06-13 14:05:27,217 INFO 26:instantiate_loop.py(1) - ******** ADD OPERATIONAL POLICY MinMax *******
2021-06-13 14:05:27,217 DEBUG 195:onap_service.py(1) - [None][Create Operational Policy] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:05:27,217 DEBUG 197:onap_service.py(1) - [None][Create Operational Policy] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/addOperationaPolicy/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F/policyModel/onap.policies.controlloop.guard.common.MinMax/1.0.0
2021-06-13 14:05:27,218 DEBUG 198:onap_service.py(1) - [None][Create Operational Policy] data sent: None
2021-06-13 14:05:27,218 DEBUG 103:onap_service.py(1) - [None][Create Operational Policy] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:05:27,218 DEBUG 105:onap_service.py(1) - [None][Create Operational Policy] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/addOperationaPolicy/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F/policyModel/onap.policies.controlloop.guard.common.MinMax/1.0.0
2021-06-13 14:05:27,218 DEBUG 106:onap_service.py(1) - [None][Create Operational Policy] data sent: None
2021-06-13 14:05:27,220 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-13 14:05:27,784 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "PUT /restservices/clds/v2/loop/addOperationaPolicy/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F/policyModel/onap.policies.controlloop.guard.common.MinMax/1.0.0 HTTP/1.1" 200 None
2021-06-13 14:05:27,786 INFO 116:onap_service.py(1) - [None][Create Operational Policy] response code: 200
2021-06-13 14:05:27,787 DEBUG 120:onap_service.py(1) - [None][Create Operational Policy] response: {
  "name": "LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F",
  "globalPropertiesJson": {
    "dcaeDeployParameters": {
      "uniqueBlueprintParameters": {
        "service_name": "dcae-tcagen2",
        "log_directory": "/opt/logs/dcae-analytics-tca",
        "replicas": 1,
        "spring.data.mongodb.uri": "mongodb://dcae-mongohost/dcae-tcagen2",
        "tag_version": "nexus-rdnv6.onap.dyn.nesc.nokia.net:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1",
        "tca.aai.password": "DCAE",
        "tca.aai.url": "http://aai.onap.svc.cluster.local",
        "tca.aai.username": "DCAE",
        "tca_handle_in_subscribe_url": "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT",
        "tca_handle_out_publish_url": "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT",
        "tca_consumer_group": "cg1",
        "policy_model_id": "onap.policies.monitoring.tcagen2",
        "policy_id": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby"
      }
    }
  },
  "modelService": {
    "serviceDetails": {
      "serviceType": "",
      "serviceRole": "",
      "serviceFunction": "",
      "description": "service",
      "type": "Service",
      "instantiationType": "A-la-carte",
      "namingPolicy": "",
      "environmentContext": "General_Revenue-Bearing",
      "name": "basicclamp",
      "invariantUUID": "55cc43d2-abc4-4046-8b32-38c016b4e786",
      "ecompGeneratedNaming": "true",
      "UUID": "94f77a1c-4d86-470a-bc9c-125ae222adfb",
      "category": "Network Service"
    },
    "resourceDetails": {
      "CP": {},
      "VL": {},
      "VF": {
        "basicclamp 0": {
          "resourceVendor": "basiclamp_vendor",
          "name": "basicclamp",
          "description": "VF",
          "invariantUUID": "45c660b8-bc07-4fcd-a0f1-d6a7cd60ac86",
          "UUID": "a2cda4ec-db46-4694-8f14-524ae99e5ffa",
          "category": "Generic",
          "type": "VF",
          "subcategory": "Abstract",
          "version": "1.0",
          "customizationUUID": "e1c140c8-080f-486a-b9c5-ae4d9fff2ead",
          "resourceVendorRelease": "1.0",
          "reourceVendorModelNumber": ""
        }
      },
      "CR": {},
      "VFC": {},
      "PNF": {},
      "Service": {},
      "CVFC": {},
      "Service Proxy": {},
      "Configuration": {},
      "AllottedResource": {},
      "VFModule": {
        "Basicclamp..base_ubuntu18..module-0": {
          "vfModuleModelInvariantUUID": "eab409d0-1d7e-4b5b-80ae-ecb77655c47b",
          "vfModuleModelVersion": "1",
          "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
          "vfModuleModelUUID": "ace01596-65ed-41c4-b77f-a276e15124ac",
          "vfModuleModelCustomizationUUID": "99f59cf2-1fb9-46fc-8332-5bd982b5876b",
          "min_vf_module_instances": 1,
          "vf_module_label": "base_ubuntu18",
          "max_vf_module_instances": 1,
          "vf_module_type": "Base",
          "isBase": true,
          "initial_count": 1,
          "volume_group": false
        }
      }
    }
  },
  "lastComputedState": "DESIGN",
  "components": {
    "POLICY": {
      "componentState": {
        "stateName": "UNKNOWN",
        "description": "The current status is not clear. Need to refresh the status to get the current status."
      }
    },
    "DCAE": {
      "componentState": {
        "stateName": "BLUEPRINT_DEPLOYED",
        "description": "The DCAE blueprint has been found in the DCAE inventory but not yet instancianted for this loop"
      }
    }
  },
  "operationalPolicies": [
    {
      "name": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_4Hp",
      "jsonRepresentation": {
        "title": "onap.policies.controlloop.guard.common.MinMax",
        "type": "object",
        "description": "Supports Min/Max number of entity for scaling operations. Although min and max fields are marked as not\nrequired, you need to have at least one or the other.\n",
        "required": [
          "actor",
          "operation",
          "target"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The Control Loop id this applies to."
          },
          "actor": {
            "type": "string",
            "description": "Specifies the Actor the guard applies to."
          },
          "operation": {
            "type": "string",
            "description": "Specified the operation that the actor is performing the guard applies to."
          },
          "timeRange": {
            "title": "tosca.datatypes.TimeInterval",
            "type": "object",
            "required": [
              "start_time",
              "end_time"
            ],
            "properties": {
              "start_time": {
                "type": "string",
                "format": "date-time"
              },
              "end_time": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "min": {
            "type": "integer",
            "description": "The minimum instances of this entity"
          },
          "max": {
            "type": "integer",
            "description": "The maximum instances of this entity"
          },
          "target": {
            "type": "string",
            "description": "The target entity that has scaling restricted"
          }
        }
      },
      "configurationsJson": {},
      "policyModel": {
        "policyModelType": "onap.policies.controlloop.guard.common.MinMax",
        "version": "1.0.0",
        "policyAcronym": "MinMax",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:25.928861Z",
        "updatedDate": "2021-06-13T10:55:41.101246Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.328944Z",
      "updatedDate": "2021-06-13T14:05:27.328944Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "microServicePolicies": [
    {
      "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby",
      "shared": false,
      "jsonRepresentation": {
        "title": "onap.policies.monitoring.tcagen2",
        "type": "object",
        "required": [
          "tca.policy"
        ],
        "properties": {
          "tca.policy": {
            "title": "onap.datatypes.monitoring.tca_policy",
            "type": "object",
            "required": [
              "domain",
              "metricsPerEventName"
            ],
            "properties": {
              "domain": {
                "type": "string",
                "description": "Domain name to which TCA needs to be applied",
                "default": "measurementsForVfScaling",
                "const": "measurementsForVfScaling"
              },
              "metricsPerEventName": {
                "type": "array",
                "description": "Contains eventName and threshold details that need to be applied to given eventName",
                "items": {
                  "title": "onap.datatypes.monitoring.metricsPerEventName",
                  "type": "object",
                  "required": [
                    "policyScope",
                    "thresholds",
                    "eventName",
                    "policyVersion",
                    "controlLoopSchemaType",
                    "policyName"
                  ],
                  "properties": {
                    "policyScope": {
                      "type": "string",
                      "description": "TCA Policy Scope"
                    },
                    "thresholds": {
                      "type": "array",
                      "description": "Thresholds associated with eventName",
                      "items": {
                        "title": "onap.datatypes.monitoring.thresholds",
                        "type": "object",
                        "required": [
                          "version",
                          "severity",
                          "thresholdValue",
                          "closedLoopEventStatus",
                          "closedLoopControlName",
                          "direction",
                          "fieldPath"
                        ],
                        "properties": {
                          "version": {
                            "type": "string",
                            "description": "Version number associated with the threshold"
                          },
                          "severity": {
                            "type": "string",
                            "description": "Threshold Event Severity",
                            "enum": [
                              "CRITICAL",
                              "MAJOR",
                              "MINOR",
                              "WARNING",
                              "NORMAL"
                            ]
                          },
                          "thresholdValue": {
                            "type": "integer",
                            "description": "Threshold value for the field Path inside CEF message"
                          },
                          "closedLoopEventStatus": {
                            "type": "string",
                            "description": "Closed Loop Event Status of the threshold",
                            "enum": [
                              "ONSET",
                              "ABATED"
                            ]
                          },
                          "closedLoopControlName": {
                            "type": "string",
                            "description": "Closed Loop Control Name associated with the threshold"
                          },
                          "direction": {
                            "type": "string",
                            "description": "Direction of the threshold",
                            "enum": [
                              "LESS",
                              "LESS_OR_EQUAL",
                              "GREATER",
                              "GREATER_OR_EQUAL",
                              "EQUAL"
                            ]
                          },
                          "fieldPath": {
                            "type": "string",
                            "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
                            "enum": [
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
                              "$.event.measurementsForVfScalingFields.meanRequestLatency",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
                              "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
                            ]
                          }
                        }
                      },
                      "format": "tabs-top"
                    },
                    "eventName": {
                      "type": "string",
                      "description": "Event name to which thresholds need to be applied"
                    },
                    "policyVersion": {
                      "type": "string",
                      "description": "TCA Policy Scope Version"
                    },
                    "controlLoopSchemaType": {
                      "type": "string",
                      "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
                      "enum": [
                        "VM",
                        "VNF"
                      ]
                    },
                    "policyName": {
                      "type": "string",
                      "description": "TCA Policy Scope Name"
                    }
                  }
                },
                "format": "tabs-top"
              }
            }
          }
        }
      },
      "loopElementModel": {
        "name": "onap.policies.monitoring.tcagen2",
        "loopElementType": "MICRO_SERVICE_TYPE",
        "policyModels": [
          {
            "policyModelType": "onap.policies.monitoring.tcagen2",
            "version": "1.0.0",
            "policyAcronym": "tcagen2",
            "policyPdpGroup": {
              "supportedPdpGroups": [
                {
                  "defaultGroup": [
                    "xacml"
                  ]
                }
              ]
            },
            "createdDate": "2021-06-13T10:54:47.933418Z",
            "updatedDate": "2021-06-13T10:55:41.102546Z",
            "updatedBy": "Not found",
            "createdBy": "Not found"
          }
        ],
        "createdDate": "2021-06-13T14:02:17.142331Z",
        "updatedDate": "2021-06-13T14:02:17.142331Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "policyModel": {
        "policyModelType": "onap.policies.monitoring.tcagen2",
        "version": "1.0.0",
        "policyAcronym": "tcagen2",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:47.933418Z",
        "updatedDate": "2021-06-13T10:55:41.102546Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.187003Z",
      "updatedDate": "2021-06-13T14:05:27.187003Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "loopLogs": [],
  "loopTemplate": {
    "name": "LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice",
    "dcaeBlueprintId": "90e2d3bf-ec7d-42cf-8121-759c681797c8",
    "loopElementModelsUsed": [
      {
        "loopElementModel": {
          "name": "onap.policies.monitoring.tcagen2",
          "loopElementType": "MICRO_SERVICE_TYPE",
          "policyModels": [
            {
              "policyModelType": "onap.policies.monitoring.tcagen2",
              "version": "1.0.0",
              "policyAcronym": "tcagen2",
              "policyPdpGroup": {
                "supportedPdpGroups": [
                  {
                    "defaultGroup": [
                      "xacml"
                    ]
                  }
                ]
              },
              "createdDate": "2021-06-13T10:54:47.933418Z",
              "updatedDate": "2021-06-13T10:55:41.102546Z",
              "updatedBy": "Not found",
              "createdBy": "Not found"
            }
          ],
          "createdDate": "2021-06-13T14:02:17.142331Z",
          "updatedDate": "2021-06-13T14:02:17.142331Z",
          "updatedBy": "Not found",
          "createdBy": "Not found"
        },
        "flowOrder": 0
      }
    ],
    "modelService": {
      "serviceDetails": {
        "serviceType": "",
        "serviceRole": "",
        "serviceFunction": "",
        "description": "service",
        "type": "Service",
        "instantiationType": "A-la-carte",
        "namingPolicy": "",
        "environmentContext": "General_Revenue-Bearing",
        "name": "basicclamp",
        "invariantUUID": "55cc43d2-abc4-4046-8b32-38c016b4e786",
        "ecompGeneratedNaming": "true",
        "UUID": "94f77a1c-4d86-470a-bc9c-125ae222adfb",
        "category": "Network Service"
      },
      "resourceDetails": {
        "CP": {},
        "VL": {},
        "VF": {
          "basicclamp 0": {
            "resourceVendor": "basiclamp_vendor",
            "name": "basicclamp",
            "description": "VF",
            "invariantUUID": "45c660b8-bc07-4fcd-a0f1-d6a7cd60ac86",
            "UUID": "a2cda4ec-db46-4694-8f14-524ae99e5ffa",
            "category": "Generic",
            "type": "VF",
            "subcategory": "Abstract",
            "version": "1.0",
            "customizationUUID": "e1c140c8-080f-486a-b9c5-ae4d9fff2ead",
            "resourceVendorRelease": "1.0",
            "reourceVendorModelNumber": ""
          }
        },
        "CR": {},
        "VFC": {},
        "PNF": {},
        "Service": {},
        "CVFC": {},
        "Service Proxy": {},
        "Configuration": {},
        "AllottedResource": {},
        "VFModule": {
          "Basicclamp..base_ubuntu18..module-0": {
            "vfModuleModelInvariantUUID": "eab409d0-1d7e-4b5b-80ae-ecb77655c47b",
            "vfModuleModelVersion": "1",
            "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
            "vfModuleModelUUID": "ace01596-65ed-41c4-b77f-a276e15124ac",
            "vfModuleModelCustomizationUUID": "99f59cf2-1fb9-46fc-8332-5bd982b5876b",
            "min_vf_module_instances": 1,
            "vf_module_label": "base_ubuntu18",
            "max_vf_module_instances": 1,
            "vf_module_type": "Base",
            "isBase": true,
            "initial_count": 1,
            "volume_group": false
          }
        }
      }
    },
    "maximumInstancesAllowed": 0,
    "uniqueBlueprint": true,
    "allowedLoopType": "CLOSED",
    "createdDate": "2021-06-13T14:02:17.120585Z",
    "updatedDate": "2021-06-13T14:02:17.120585Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-13T14:05:27.173340Z",
  "updatedDate": "2021-06-13T14:05:27.173340Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-13 14:05:27,790 ERROR 30:instantiate_loop.py(1) - an error occured while adding an operational policy
2021-06-13 14:05:27,790 INFO 31:instantiate_loop.py(1) - ADD OPERATION SUCCESSFULY DONE
2021-06-13 14:05:27,790 INFO 26:instantiate_loop.py(1) - ******** ADD OPERATIONAL POLICY FrequencyLimiter *******
2021-06-13 14:05:27,790 DEBUG 195:onap_service.py(1) - [None][Create Operational Policy] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:05:27,791 DEBUG 197:onap_service.py(1) - [None][Create Operational Policy] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/addOperationaPolicy/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F/policyModel/onap.policies.controlloop.guard.common.FrequencyLimiter/1.0.0
2021-06-13 14:05:27,791 DEBUG 198:onap_service.py(1) - [None][Create Operational Policy] data sent: None
2021-06-13 14:05:27,791 DEBUG 103:onap_service.py(1) - [None][Create Operational Policy] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:05:27,791 DEBUG 105:onap_service.py(1) - [None][Create Operational Policy] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/addOperationaPolicy/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F/policyModel/onap.policies.controlloop.guard.common.FrequencyLimiter/1.0.0
2021-06-13 14:05:27,791 DEBUG 106:onap_service.py(1) - [None][Create Operational Policy] data sent: None
2021-06-13 14:05:27,793 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-13 14:05:27,922 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "PUT /restservices/clds/v2/loop/addOperationaPolicy/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F/policyModel/onap.policies.controlloop.guard.common.FrequencyLimiter/1.0.0 HTTP/1.1" 200 None
2021-06-13 14:05:27,923 INFO 116:onap_service.py(1) - [None][Create Operational Policy] response code: 200
2021-06-13 14:05:27,924 DEBUG 120:onap_service.py(1) - [None][Create Operational Policy] response: {
  "name": "LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F",
  "globalPropertiesJson": {
    "dcaeDeployParameters": {
      "uniqueBlueprintParameters": {
        "service_name": "dcae-tcagen2",
        "log_directory": "/opt/logs/dcae-analytics-tca",
        "replicas": 1,
        "spring.data.mongodb.uri": "mongodb://dcae-mongohost/dcae-tcagen2",
        "tag_version": "nexus-rdnv6.onap.dyn.nesc.nokia.net:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1",
        "tca.aai.password": "DCAE",
        "tca.aai.url": "http://aai.onap.svc.cluster.local",
        "tca.aai.username": "DCAE",
        "tca_handle_in_subscribe_url": "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT",
        "tca_handle_out_publish_url": "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT",
        "tca_consumer_group": "cg1",
        "policy_model_id": "onap.policies.monitoring.tcagen2",
        "policy_id": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby"
      }
    }
  },
  "modelService": {
    "serviceDetails": {
      "serviceType": "",
      "serviceRole": "",
      "serviceFunction": "",
      "description": "service",
      "type": "Service",
      "instantiationType": "A-la-carte",
      "namingPolicy": "",
      "environmentContext": "General_Revenue-Bearing",
      "name": "basicclamp",
      "invariantUUID": "55cc43d2-abc4-4046-8b32-38c016b4e786",
      "ecompGeneratedNaming": "true",
      "UUID": "94f77a1c-4d86-470a-bc9c-125ae222adfb",
      "category": "Network Service"
    },
    "resourceDetails": {
      "CP": {},
      "VL": {},
      "VF": {
        "basicclamp 0": {
          "resourceVendor": "basiclamp_vendor",
          "name": "basicclamp",
          "description": "VF",
          "invariantUUID": "45c660b8-bc07-4fcd-a0f1-d6a7cd60ac86",
          "UUID": "a2cda4ec-db46-4694-8f14-524ae99e5ffa",
          "category": "Generic",
          "type": "VF",
          "subcategory": "Abstract",
          "version": "1.0",
          "customizationUUID": "e1c140c8-080f-486a-b9c5-ae4d9fff2ead",
          "resourceVendorRelease": "1.0",
          "reourceVendorModelNumber": ""
        }
      },
      "CR": {},
      "VFC": {},
      "PNF": {},
      "Service": {},
      "CVFC": {},
      "Service Proxy": {},
      "Configuration": {},
      "AllottedResource": {},
      "VFModule": {
        "Basicclamp..base_ubuntu18..module-0": {
          "vfModuleModelInvariantUUID": "eab409d0-1d7e-4b5b-80ae-ecb77655c47b",
          "vfModuleModelVersion": "1",
          "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
          "vfModuleModelUUID": "ace01596-65ed-41c4-b77f-a276e15124ac",
          "vfModuleModelCustomizationUUID": "99f59cf2-1fb9-46fc-8332-5bd982b5876b",
          "min_vf_module_instances": 1,
          "vf_module_label": "base_ubuntu18",
          "max_vf_module_instances": 1,
          "vf_module_type": "Base",
          "isBase": true,
          "initial_count": 1,
          "volume_group": false
        }
      }
    }
  },
  "lastComputedState": "DESIGN",
  "components": {
    "POLICY": {
      "componentState": {
        "stateName": "UNKNOWN",
        "description": "The current status is not clear. Need to refresh the status to get the current status."
      }
    },
    "DCAE": {
      "componentState": {
        "stateName": "BLUEPRINT_DEPLOYED",
        "description": "The DCAE blueprint has been found in the DCAE inventory but not yet instancianted for this loop"
      }
    }
  },
  "operationalPolicies": [
    {
      "name": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_4Hp",
      "jsonRepresentation": {
        "title": "onap.policies.controlloop.guard.common.MinMax",
        "type": "object",
        "description": "Supports Min/Max number of entity for scaling operations. Although min and max fields are marked as not\nrequired, you need to have at least one or the other.\n",
        "required": [
          "actor",
          "operation",
          "target"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The Control Loop id this applies to."
          },
          "actor": {
            "type": "string",
            "description": "Specifies the Actor the guard applies to."
          },
          "operation": {
            "type": "string",
            "description": "Specified the operation that the actor is performing the guard applies to."
          },
          "timeRange": {
            "title": "tosca.datatypes.TimeInterval",
            "type": "object",
            "required": [
              "start_time",
              "end_time"
            ],
            "properties": {
              "start_time": {
                "type": "string",
                "format": "date-time"
              },
              "end_time": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "min": {
            "type": "integer",
            "description": "The minimum instances of this entity"
          },
          "max": {
            "type": "integer",
            "description": "The maximum instances of this entity"
          },
          "target": {
            "type": "string",
            "description": "The target entity that has scaling restricted"
          }
        }
      },
      "configurationsJson": {},
      "policyModel": {
        "policyModelType": "onap.policies.controlloop.guard.common.MinMax",
        "version": "1.0.0",
        "policyAcronym": "MinMax",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:25.928861Z",
        "updatedDate": "2021-06-13T10:55:41.101246Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.328944Z",
      "updatedDate": "2021-06-13T14:05:27.328944Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    },
    {
      "name": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_4IK",
      "jsonRepresentation": {
        "title": "onap.policies.controlloop.guard.common.FrequencyLimiter",
        "type": "object",
        "description": "Supports limiting the frequency of actions being taken by a Actor.",
        "required": [
          "actor",
          "operation",
          "limit",
          "timeWindow",
          "timeUnits"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The Control Loop id this applies to."
          },
          "actor": {
            "type": "string",
            "description": "Specifies the Actor the guard applies to."
          },
          "operation": {
            "type": "string",
            "description": "Specified the operation that the actor is performing the guard applies to."
          },
          "timeRange": {
            "title": "tosca.datatypes.TimeInterval",
            "type": "object",
            "required": [
              "start_time",
              "end_time"
            ],
            "properties": {
              "start_time": {
                "type": "string",
                "format": "date-time"
              },
              "end_time": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "limit": {
            "type": "integer",
            "description": "The limit",
            "exclusiveMinimum": "0"
          },
          "timeWindow": {
            "type": "integer",
            "description": "The time window to count the actions against."
          },
          "timeUnits": {
            "type": "string",
            "description": "The units of time the window is counting.",
            "enum": [
              "second",
              "minute",
              "hour",
              "day",
              "week",
              "month",
              "year"
            ]
          }
        }
      },
      "configurationsJson": {},
      "policyModel": {
        "policyModelType": "onap.policies.controlloop.guard.common.FrequencyLimiter",
        "version": "1.0.0",
        "policyAcronym": "FrequencyLimiter",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:24.931908Z",
        "updatedDate": "2021-06-13T10:55:41.101015Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.894779Z",
      "updatedDate": "2021-06-13T14:05:27.894779Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "microServicePolicies": [
    {
      "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby",
      "shared": false,
      "jsonRepresentation": {
        "title": "onap.policies.monitoring.tcagen2",
        "type": "object",
        "required": [
          "tca.policy"
        ],
        "properties": {
          "tca.policy": {
            "title": "onap.datatypes.monitoring.tca_policy",
            "type": "object",
            "required": [
              "domain",
              "metricsPerEventName"
            ],
            "properties": {
              "domain": {
                "type": "string",
                "description": "Domain name to which TCA needs to be applied",
                "default": "measurementsForVfScaling",
                "const": "measurementsForVfScaling"
              },
              "metricsPerEventName": {
                "type": "array",
                "description": "Contains eventName and threshold details that need to be applied to given eventName",
                "items": {
                  "title": "onap.datatypes.monitoring.metricsPerEventName",
                  "type": "object",
                  "required": [
                    "policyScope",
                    "thresholds",
                    "eventName",
                    "policyVersion",
                    "controlLoopSchemaType",
                    "policyName"
                  ],
                  "properties": {
                    "policyScope": {
                      "type": "string",
                      "description": "TCA Policy Scope"
                    },
                    "thresholds": {
                      "type": "array",
                      "description": "Thresholds associated with eventName",
                      "items": {
                        "title": "onap.datatypes.monitoring.thresholds",
                        "type": "object",
                        "required": [
                          "version",
                          "severity",
                          "thresholdValue",
                          "closedLoopEventStatus",
                          "closedLoopControlName",
                          "direction",
                          "fieldPath"
                        ],
                        "properties": {
                          "version": {
                            "type": "string",
                            "description": "Version number associated with the threshold"
                          },
                          "severity": {
                            "type": "string",
                            "description": "Threshold Event Severity",
                            "enum": [
                              "CRITICAL",
                              "MAJOR",
                              "MINOR",
                              "WARNING",
                              "NORMAL"
                            ]
                          },
                          "thresholdValue": {
                            "type": "integer",
                            "description": "Threshold value for the field Path inside CEF message"
                          },
                          "closedLoopEventStatus": {
                            "type": "string",
                            "description": "Closed Loop Event Status of the threshold",
                            "enum": [
                              "ONSET",
                              "ABATED"
                            ]
                          },
                          "closedLoopControlName": {
                            "type": "string",
                            "description": "Closed Loop Control Name associated with the threshold"
                          },
                          "direction": {
                            "type": "string",
                            "description": "Direction of the threshold",
                            "enum": [
                              "LESS",
                              "LESS_OR_EQUAL",
                              "GREATER",
                              "GREATER_OR_EQUAL",
                              "EQUAL"
                            ]
                          },
                          "fieldPath": {
                            "type": "string",
                            "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
                            "enum": [
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
                              "$.event.measurementsForVfScalingFields.meanRequestLatency",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
                              "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
                            ]
                          }
                        }
                      },
                      "format": "tabs-top"
                    },
                    "eventName": {
                      "type": "string",
                      "description": "Event name to which thresholds need to be applied"
                    },
                    "policyVersion": {
                      "type": "string",
                      "description": "TCA Policy Scope Version"
                    },
                    "controlLoopSchemaType": {
                      "type": "string",
                      "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
                      "enum": [
                        "VM",
                        "VNF"
                      ]
                    },
                    "policyName": {
                      "type": "string",
                      "description": "TCA Policy Scope Name"
                    }
                  }
                },
                "format": "tabs-top"
              }
            }
          }
        }
      },
      "loopElementModel": {
        "name": "onap.policies.monitoring.tcagen2",
        "loopElementType": "MICRO_SERVICE_TYPE",
        "policyModels": [
          {
            "policyModelType": "onap.policies.monitoring.tcagen2",
            "version": "1.0.0",
            "policyAcronym": "tcagen2",
            "policyPdpGroup": {
              "supportedPdpGroups": [
                {
                  "defaultGroup": [
                    "xacml"
                  ]
                }
              ]
            },
            "createdDate": "2021-06-13T10:54:47.933418Z",
            "updatedDate": "2021-06-13T10:55:41.102546Z",
            "updatedBy": "Not found",
            "createdBy": "Not found"
          }
        ],
        "createdDate": "2021-06-13T14:02:17.142331Z",
        "updatedDate": "2021-06-13T14:02:17.142331Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "policyModel": {
        "policyModelType": "onap.policies.monitoring.tcagen2",
        "version": "1.0.0",
        "policyAcronym": "tcagen2",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:47.933418Z",
        "updatedDate": "2021-06-13T10:55:41.102546Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.187003Z",
      "updatedDate": "2021-06-13T14:05:27.187003Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "loopLogs": [
    {
      "id": 1,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-13T14:05:27Z"
    }
  ],
  "loopTemplate": {
    "name": "LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice",
    "dcaeBlueprintId": "90e2d3bf-ec7d-42cf-8121-759c681797c8",
    "loopElementModelsUsed": [
      {
        "loopElementModel": {
          "name": "onap.policies.monitoring.tcagen2",
          "loopElementType": "MICRO_SERVICE_TYPE",
          "policyModels": [
            {
              "policyModelType": "onap.policies.monitoring.tcagen2",
              "version": "1.0.0",
              "policyAcronym": "tcagen2",
              "policyPdpGroup": {
                "supportedPdpGroups": [
                  {
                    "defaultGroup": [
                      "xacml"
                    ]
                  }
                ]
              },
              "createdDate": "2021-06-13T10:54:47.933418Z",
              "updatedDate": "2021-06-13T10:55:41.102546Z",
              "updatedBy": "Not found",
              "createdBy": "Not found"
            }
          ],
          "createdDate": "2021-06-13T14:02:17.142331Z",
          "updatedDate": "2021-06-13T14:02:17.142331Z",
          "updatedBy": "Not found",
          "createdBy": "Not found"
        },
        "flowOrder": 0
      }
    ],
    "modelService": {
      "serviceDetails": {
        "serviceType": "",
        "serviceRole": "",
        "serviceFunction": "",
        "description": "service",
        "type": "Service",
        "instantiationType": "A-la-carte",
        "namingPolicy": "",
        "environmentContext": "General_Revenue-Bearing",
        "name": "basicclamp",
        "invariantUUID": "55cc43d2-abc4-4046-8b32-38c016b4e786",
        "ecompGeneratedNaming": "true",
        "UUID": "94f77a1c-4d86-470a-bc9c-125ae222adfb",
        "category": "Network Service"
      },
      "resourceDetails": {
        "CP": {},
        "VL": {},
        "VF": {
          "basicclamp 0": {
            "resourceVendor": "basiclamp_vendor",
            "name": "basicclamp",
            "description": "VF",
            "invariantUUID": "45c660b8-bc07-4fcd-a0f1-d6a7cd60ac86",
            "UUID": "a2cda4ec-db46-4694-8f14-524ae99e5ffa",
            "category": "Generic",
            "type": "VF",
            "subcategory": "Abstract",
            "version": "1.0",
            "customizationUUID": "e1c140c8-080f-486a-b9c5-ae4d9fff2ead",
            "resourceVendorRelease": "1.0",
            "reourceVendorModelNumber": ""
          }
        },
        "CR": {},
        "VFC": {},
        "PNF": {},
        "Service": {},
        "CVFC": {},
        "Service Proxy": {},
        "Configuration": {},
        "AllottedResource": {},
        "VFModule": {
          "Basicclamp..base_ubuntu18..module-0": {
            "vfModuleModelInvariantUUID": "eab409d0-1d7e-4b5b-80ae-ecb77655c47b",
            "vfModuleModelVersion": "1",
            "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
            "vfModuleModelUUID": "ace01596-65ed-41c4-b77f-a276e15124ac",
            "vfModuleModelCustomizationUUID": "99f59cf2-1fb9-46fc-8332-5bd982b5876b",
            "min_vf_module_instances": 1,
            "vf_module_label": "base_ubuntu18",
            "max_vf_module_instances": 1,
            "vf_module_type": "Base",
            "isBase": true,
            "initial_count": 1,
            "volume_group": false
          }
        }
      }
    },
    "maximumInstancesAllowed": 0,
    "uniqueBlueprint": true,
    "allowedLoopType": "CLOSED",
    "createdDate": "2021-06-13T14:02:17.120585Z",
    "updatedDate": "2021-06-13T14:02:17.120585Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-13T14:05:27.173340Z",
  "updatedDate": "2021-06-13T14:05:27.173340Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-13 14:05:27,927 ERROR 30:instantiate_loop.py(1) - an error occured while adding an operational policy
2021-06-13 14:05:27,927 INFO 31:instantiate_loop.py(1) - ADD OPERATION SUCCESSFULY DONE
2021-06-13 14:05:27,927 INFO 36:instantiate_loop.py(1) - ******** UPDATE MICROSERVICE POLICY *******
2021-06-13 14:05:27,927 DEBUG 195:onap_service.py(1) - [None][Get loop details] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:05:27,927 DEBUG 197:onap_service.py(1) - [None][Get loop details] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F
2021-06-13 14:05:27,927 DEBUG 198:onap_service.py(1) - [None][Get loop details] data sent: None
2021-06-13 14:05:27,928 DEBUG 103:onap_service.py(1) - [None][Get loop details] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:05:27,928 DEBUG 105:onap_service.py(1) - [None][Get loop details] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F
2021-06-13 14:05:27,928 DEBUG 106:onap_service.py(1) - [None][Get loop details] data sent: None
2021-06-13 14:05:27,930 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-13 14:05:27,991 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "GET /restservices/clds/v2/loop/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F HTTP/1.1" 200 None
2021-06-13 14:05:27,993 INFO 116:onap_service.py(1) - [None][Get loop details] response code: 200
2021-06-13 14:05:27,993 DEBUG 120:onap_service.py(1) - [None][Get loop details] response: {
  "name": "LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F",
  "globalPropertiesJson": {
    "dcaeDeployParameters": {
      "uniqueBlueprintParameters": {
        "service_name": "dcae-tcagen2",
        "log_directory": "/opt/logs/dcae-analytics-tca",
        "replicas": 1,
        "spring.data.mongodb.uri": "mongodb://dcae-mongohost/dcae-tcagen2",
        "tag_version": "nexus-rdnv6.onap.dyn.nesc.nokia.net:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1",
        "tca.aai.password": "DCAE",
        "tca.aai.url": "http://aai.onap.svc.cluster.local",
        "tca.aai.username": "DCAE",
        "tca_handle_in_subscribe_url": "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT",
        "tca_handle_out_publish_url": "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT",
        "tca_consumer_group": "cg1",
        "policy_model_id": "onap.policies.monitoring.tcagen2",
        "policy_id": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby"
      }
    }
  },
  "modelService": {
    "serviceDetails": {
      "serviceType": "",
      "serviceRole": "",
      "serviceFunction": "",
      "description": "service",
      "type": "Service",
      "instantiationType": "A-la-carte",
      "namingPolicy": "",
      "environmentContext": "General_Revenue-Bearing",
      "name": "basicclamp",
      "invariantUUID": "55cc43d2-abc4-4046-8b32-38c016b4e786",
      "ecompGeneratedNaming": "true",
      "UUID": "94f77a1c-4d86-470a-bc9c-125ae222adfb",
      "category": "Network Service"
    },
    "resourceDetails": {
      "CP": {},
      "VL": {},
      "VF": {
        "basicclamp 0": {
          "resourceVendor": "basiclamp_vendor",
          "name": "basicclamp",
          "description": "VF",
          "invariantUUID": "45c660b8-bc07-4fcd-a0f1-d6a7cd60ac86",
          "UUID": "a2cda4ec-db46-4694-8f14-524ae99e5ffa",
          "category": "Generic",
          "type": "VF",
          "subcategory": "Abstract",
          "version": "1.0",
          "customizationUUID": "e1c140c8-080f-486a-b9c5-ae4d9fff2ead",
          "resourceVendorRelease": "1.0",
          "reourceVendorModelNumber": ""
        }
      },
      "CR": {},
      "VFC": {},
      "PNF": {},
      "Service": {},
      "CVFC": {},
      "Service Proxy": {},
      "Configuration": {},
      "AllottedResource": {},
      "VFModule": {
        "Basicclamp..base_ubuntu18..module-0": {
          "vfModuleModelInvariantUUID": "eab409d0-1d7e-4b5b-80ae-ecb77655c47b",
          "vfModuleModelVersion": "1",
          "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
          "vfModuleModelUUID": "ace01596-65ed-41c4-b77f-a276e15124ac",
          "vfModuleModelCustomizationUUID": "99f59cf2-1fb9-46fc-8332-5bd982b5876b",
          "min_vf_module_instances": 1,
          "vf_module_label": "base_ubuntu18",
          "max_vf_module_instances": 1,
          "vf_module_type": "Base",
          "isBase": true,
          "initial_count": 1,
          "volume_group": false
        }
      }
    }
  },
  "lastComputedState": "DESIGN",
  "components": {
    "POLICY": {
      "componentState": {
        "stateName": "UNKNOWN",
        "description": "The current status is not clear. Need to refresh the status to get the current status."
      }
    },
    "DCAE": {
      "componentState": {
        "stateName": "BLUEPRINT_DEPLOYED",
        "description": "The DCAE blueprint has been found in the DCAE inventory but not yet instancianted for this loop"
      }
    }
  },
  "operationalPolicies": [
    {
      "name": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_4Hp",
      "jsonRepresentation": {
        "title": "onap.policies.controlloop.guard.common.MinMax",
        "type": "object",
        "description": "Supports Min/Max number of entity for scaling operations. Although min and max fields are marked as not\nrequired, you need to have at least one or the other.\n",
        "required": [
          "actor",
          "operation",
          "target"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The Control Loop id this applies to."
          },
          "actor": {
            "type": "string",
            "description": "Specifies the Actor the guard applies to."
          },
          "operation": {
            "type": "string",
            "description": "Specified the operation that the actor is performing the guard applies to."
          },
          "timeRange": {
            "title": "tosca.datatypes.TimeInterval",
            "type": "object",
            "required": [
              "start_time",
              "end_time"
            ],
            "properties": {
              "start_time": {
                "type": "string",
                "format": "date-time"
              },
              "end_time": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "min": {
            "type": "integer",
            "description": "The minimum instances of this entity"
          },
          "max": {
            "type": "integer",
            "description": "The maximum instances of this entity"
          },
          "target": {
            "type": "string",
            "description": "The target entity that has scaling restricted"
          }
        }
      },
      "configurationsJson": {},
      "policyModel": {
        "policyModelType": "onap.policies.controlloop.guard.common.MinMax",
        "version": "1.0.0",
        "policyAcronym": "MinMax",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:25.928861Z",
        "updatedDate": "2021-06-13T10:55:41.101246Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.328944Z",
      "updatedDate": "2021-06-13T14:05:27.328944Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    },
    {
      "name": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_4IK",
      "jsonRepresentation": {
        "title": "onap.policies.controlloop.guard.common.FrequencyLimiter",
        "type": "object",
        "description": "Supports limiting the frequency of actions being taken by a Actor.",
        "required": [
          "actor",
          "operation",
          "limit",
          "timeWindow",
          "timeUnits"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The Control Loop id this applies to."
          },
          "actor": {
            "type": "string",
            "description": "Specifies the Actor the guard applies to."
          },
          "operation": {
            "type": "string",
            "description": "Specified the operation that the actor is performing the guard applies to."
          },
          "timeRange": {
            "title": "tosca.datatypes.TimeInterval",
            "type": "object",
            "required": [
              "start_time",
              "end_time"
            ],
            "properties": {
              "start_time": {
                "type": "string",
                "format": "date-time"
              },
              "end_time": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "limit": {
            "type": "integer",
            "description": "The limit",
            "exclusiveMinimum": "0"
          },
          "timeWindow": {
            "type": "integer",
            "description": "The time window to count the actions against."
          },
          "timeUnits": {
            "type": "string",
            "description": "The units of time the window is counting.",
            "enum": [
              "second",
              "minute",
              "hour",
              "day",
              "week",
              "month",
              "year"
            ]
          }
        }
      },
      "configurationsJson": {},
      "policyModel": {
        "policyModelType": "onap.policies.controlloop.guard.common.FrequencyLimiter",
        "version": "1.0.0",
        "policyAcronym": "FrequencyLimiter",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:24.931908Z",
        "updatedDate": "2021-06-13T10:55:41.101015Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.894779Z",
      "updatedDate": "2021-06-13T14:05:27.894779Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "microServicePolicies": [
    {
      "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby",
      "shared": false,
      "jsonRepresentation": {
        "title": "onap.policies.monitoring.tcagen2",
        "type": "object",
        "required": [
          "tca.policy"
        ],
        "properties": {
          "tca.policy": {
            "title": "onap.datatypes.monitoring.tca_policy",
            "type": "object",
            "required": [
              "domain",
              "metricsPerEventName"
            ],
            "properties": {
              "domain": {
                "type": "string",
                "description": "Domain name to which TCA needs to be applied",
                "default": "measurementsForVfScaling",
                "const": "measurementsForVfScaling"
              },
              "metricsPerEventName": {
                "type": "array",
                "description": "Contains eventName and threshold details that need to be applied to given eventName",
                "items": {
                  "title": "onap.datatypes.monitoring.metricsPerEventName",
                  "type": "object",
                  "required": [
                    "policyScope",
                    "thresholds",
                    "eventName",
                    "policyVersion",
                    "controlLoopSchemaType",
                    "policyName"
                  ],
                  "properties": {
                    "policyScope": {
                      "type": "string",
                      "description": "TCA Policy Scope"
                    },
                    "thresholds": {
                      "type": "array",
                      "description": "Thresholds associated with eventName",
                      "items": {
                        "title": "onap.datatypes.monitoring.thresholds",
                        "type": "object",
                        "required": [
                          "version",
                          "severity",
                          "thresholdValue",
                          "closedLoopEventStatus",
                          "closedLoopControlName",
                          "direction",
                          "fieldPath"
                        ],
                        "properties": {
                          "version": {
                            "type": "string",
                            "description": "Version number associated with the threshold"
                          },
                          "severity": {
                            "type": "string",
                            "description": "Threshold Event Severity",
                            "enum": [
                              "CRITICAL",
                              "MAJOR",
                              "MINOR",
                              "WARNING",
                              "NORMAL"
                            ]
                          },
                          "thresholdValue": {
                            "type": "integer",
                            "description": "Threshold value for the field Path inside CEF message"
                          },
                          "closedLoopEventStatus": {
                            "type": "string",
                            "description": "Closed Loop Event Status of the threshold",
                            "enum": [
                              "ONSET",
                              "ABATED"
                            ]
                          },
                          "closedLoopControlName": {
                            "type": "string",
                            "description": "Closed Loop Control Name associated with the threshold"
                          },
                          "direction": {
                            "type": "string",
                            "description": "Direction of the threshold",
                            "enum": [
                              "LESS",
                              "LESS_OR_EQUAL",
                              "GREATER",
                              "GREATER_OR_EQUAL",
                              "EQUAL"
                            ]
                          },
                          "fieldPath": {
                            "type": "string",
                            "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
                            "enum": [
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
                              "$.event.measurementsForVfScalingFields.meanRequestLatency",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
                              "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
                            ]
                          }
                        }
                      },
                      "format": "tabs-top"
                    },
                    "eventName": {
                      "type": "string",
                      "description": "Event name to which thresholds need to be applied"
                    },
                    "policyVersion": {
                      "type": "string",
                      "description": "TCA Policy Scope Version"
                    },
                    "controlLoopSchemaType": {
                      "type": "string",
                      "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
                      "enum": [
                        "VM",
                        "VNF"
                      ]
                    },
                    "policyName": {
                      "type": "string",
                      "description": "TCA Policy Scope Name"
                    }
                  }
                },
                "format": "tabs-top"
              }
            }
          }
        }
      },
      "loopElementModel": {
        "name": "onap.policies.monitoring.tcagen2",
        "loopElementType": "MICRO_SERVICE_TYPE",
        "policyModels": [
          {
            "policyModelType": "onap.policies.monitoring.tcagen2",
            "version": "1.0.0",
            "policyAcronym": "tcagen2",
            "policyPdpGroup": {
              "supportedPdpGroups": [
                {
                  "defaultGroup": [
                    "xacml"
                  ]
                }
              ]
            },
            "createdDate": "2021-06-13T10:54:47.933418Z",
            "updatedDate": "2021-06-13T10:55:41.102546Z",
            "updatedBy": "Not found",
            "createdBy": "Not found"
          }
        ],
        "createdDate": "2021-06-13T14:02:17.142331Z",
        "updatedDate": "2021-06-13T14:02:17.142331Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "policyModel": {
        "policyModelType": "onap.policies.monitoring.tcagen2",
        "version": "1.0.0",
        "policyAcronym": "tcagen2",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:47.933418Z",
        "updatedDate": "2021-06-13T10:55:41.102546Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.187003Z",
      "updatedDate": "2021-06-13T14:05:27.187003Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "loopLogs": [
    {
      "id": 2,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-13T14:05:27Z"
    },
    {
      "id": 1,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-13T14:05:27Z"
    }
  ],
  "loopTemplate": {
    "name": "LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice",
    "dcaeBlueprintId": "90e2d3bf-ec7d-42cf-8121-759c681797c8",
    "loopElementModelsUsed": [
      {
        "loopElementModel": {
          "name": "onap.policies.monitoring.tcagen2",
          "loopElementType": "MICRO_SERVICE_TYPE",
          "policyModels": [
            {
              "policyModelType": "onap.policies.monitoring.tcagen2",
              "version": "1.0.0",
              "policyAcronym": "tcagen2",
              "policyPdpGroup": {
                "supportedPdpGroups": [
                  {
                    "defaultGroup": [
                      "xacml"
                    ]
                  }
                ]
              },
              "createdDate": "2021-06-13T10:54:47.933418Z",
              "updatedDate": "2021-06-13T10:55:41.102546Z",
              "updatedBy": "Not found",
              "createdBy": "Not found"
            }
          ],
          "createdDate": "2021-06-13T14:02:17.142331Z",
          "updatedDate": "2021-06-13T14:02:17.142331Z",
          "updatedBy": "Not found",
          "createdBy": "Not found"
        },
        "flowOrder": 0
      }
    ],
    "modelService": {
      "serviceDetails": {
        "serviceType": "",
        "serviceRole": "",
        "serviceFunction": "",
        "description": "service",
        "type": "Service",
        "instantiationType": "A-la-carte",
        "namingPolicy": "",
        "environmentContext": "General_Revenue-Bearing",
        "name": "basicclamp",
        "invariantUUID": "55cc43d2-abc4-4046-8b32-38c016b4e786",
        "ecompGeneratedNaming": "true",
        "UUID": "94f77a1c-4d86-470a-bc9c-125ae222adfb",
        "category": "Network Service"
      },
      "resourceDetails": {
        "CP": {},
        "VL": {},
        "VF": {
          "basicclamp 0": {
            "resourceVendor": "basiclamp_vendor",
            "name": "basicclamp",
            "description": "VF",
            "invariantUUID": "45c660b8-bc07-4fcd-a0f1-d6a7cd60ac86",
            "UUID": "a2cda4ec-db46-4694-8f14-524ae99e5ffa",
            "category": "Generic",
            "type": "VF",
            "subcategory": "Abstract",
            "version": "1.0",
            "customizationUUID": "e1c140c8-080f-486a-b9c5-ae4d9fff2ead",
            "resourceVendorRelease": "1.0",
            "reourceVendorModelNumber": ""
          }
        },
        "CR": {},
        "VFC": {},
        "PNF": {},
        "Service": {},
        "CVFC": {},
        "Service Proxy": {},
        "Configuration": {},
        "AllottedResource": {},
        "VFModule": {
          "Basicclamp..base_ubuntu18..module-0": {
            "vfModuleModelInvariantUUID": "eab409d0-1d7e-4b5b-80ae-ecb77655c47b",
            "vfModuleModelVersion": "1",
            "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
            "vfModuleModelUUID": "ace01596-65ed-41c4-b77f-a276e15124ac",
            "vfModuleModelCustomizationUUID": "99f59cf2-1fb9-46fc-8332-5bd982b5876b",
            "min_vf_module_instances": 1,
            "vf_module_label": "base_ubuntu18",
            "max_vf_module_instances": 1,
            "vf_module_type": "Base",
            "isBase": true,
            "initial_count": 1,
            "volume_group": false
          }
        }
      }
    },
    "maximumInstancesAllowed": 0,
    "uniqueBlueprint": true,
    "allowedLoopType": "CLOSED",
    "createdDate": "2021-06-13T14:02:17.120585Z",
    "updatedDate": "2021-06-13T14:02:17.120585Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-13T14:05:27.173340Z",
  "updatedDate": "2021-06-13T14:05:27.173340Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-13 14:05:28,002 DEBUG 103:onap_service.py(1) - [None][ADD TCA config] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:05:28,002 DEBUG 105:onap_service.py(1) - [None][ADD TCA config] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/updateMicroservicePolicy/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F
2021-06-13 14:05:28,002 DEBUG 106:onap_service.py(1) - [None][ADD TCA config] data sent: {
  "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby",
  "configurationsJson": {
    "tca.policy": {
      "domain": "measurementsForVfScaling",
      "metricsPerEventName": [
        {
          "policyScope": "DCAE",
          "thresholds": [
            {
              "version": "1.0.2",
              "severity": "MAJOR",
              "thresholdValue": 200,
              "closedLoopEventStatus": "ONSET",
              "closedLoopControlName": "LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F",
              "direction": "LESS_OR_EQUAL",
              "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta"
            }
          ],
          "eventName": "vLoadBalancer",
          "policyVersion": "v0.0.1",
          "controlLoopSchemaType": "VM",
          "policyName": "DCAE.Config_tca-hi-lo"
        }
      ]
    }
  },
  "pdpGroup": "defaultGroup",
  "pdpSubgroup": "xacml"
}
2021-06-13 14:05:28,004 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-13 14:05:28,153 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "POST /restservices/clds/v2/loop/updateMicroservicePolicy/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F HTTP/1.1" 200 None
2021-06-13 14:05:28,155 INFO 116:onap_service.py(1) - [None][ADD TCA config] response code: 200
2021-06-13 14:05:28,156 DEBUG 120:onap_service.py(1) - [None][ADD TCA config] response: {
  "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby",
  "shared": false,
  "jsonRepresentation": {
    "title": "onap.policies.monitoring.tcagen2",
    "type": "object",
    "required": [
      "tca.policy"
    ],
    "properties": {
      "tca.policy": {
        "title": "onap.datatypes.monitoring.tca_policy",
        "type": "object",
        "required": [
          "domain",
          "metricsPerEventName"
        ],
        "properties": {
          "domain": {
            "type": "string",
            "description": "Domain name to which TCA needs to be applied",
            "default": "measurementsForVfScaling",
            "const": "measurementsForVfScaling"
          },
          "metricsPerEventName": {
            "type": "array",
            "description": "Contains eventName and threshold details that need to be applied to given eventName",
            "items": {
              "title": "onap.datatypes.monitoring.metricsPerEventName",
              "type": "object",
              "required": [
                "policyScope",
                "thresholds",
                "eventName",
                "policyVersion",
                "controlLoopSchemaType",
                "policyName"
              ],
              "properties": {
                "policyScope": {
                  "type": "string",
                  "description": "TCA Policy Scope"
                },
                "thresholds": {
                  "type": "array",
                  "description": "Thresholds associated with eventName",
                  "items": {
                    "title": "onap.datatypes.monitoring.thresholds",
                    "type": "object",
                    "required": [
                      "version",
                      "severity",
                      "thresholdValue",
                      "closedLoopEventStatus",
                      "closedLoopControlName",
                      "direction",
                      "fieldPath"
                    ],
                    "properties": {
                      "version": {
                        "type": "string",
                        "description": "Version number associated with the threshold"
                      },
                      "severity": {
                        "type": "string",
                        "description": "Threshold Event Severity",
                        "enum": [
                          "CRITICAL",
                          "MAJOR",
                          "MINOR",
                          "WARNING",
                          "NORMAL"
                        ]
                      },
                      "thresholdValue": {
                        "type": "integer",
                        "description": "Threshold value for the field Path inside CEF message"
                      },
                      "closedLoopEventStatus": {
                        "type": "string",
                        "description": "Closed Loop Event Status of the threshold",
                        "enum": [
                          "ONSET",
                          "ABATED"
                        ]
                      },
                      "closedLoopControlName": {
                        "type": "string",
                        "description": "Closed Loop Control Name associated with the threshold"
                      },
                      "direction": {
                        "type": "string",
                        "description": "Direction of the threshold",
                        "enum": [
                          "LESS",
                          "LESS_OR_EQUAL",
                          "GREATER",
                          "GREATER_OR_EQUAL",
                          "EQUAL"
                        ]
                      },
                      "fieldPath": {
                        "type": "string",
                        "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
                        "enum": [
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
                          "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
                          "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
                          "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
                          "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
                          "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
                          "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
                          "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
                          "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
                          "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
                          "$.event.measurementsForVfScalingFields.meanRequestLatency",
                          "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
                          "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
                          "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
                          "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
                          "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
                          "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
                        ]
                      }
                    }
                  },
                  "format": "tabs-top"
                },
                "eventName": {
                  "type": "string",
                  "description": "Event name to which thresholds need to be applied"
                },
                "policyVersion": {
                  "type": "string",
                  "description": "TCA Policy Scope Version"
                },
                "controlLoopSchemaType": {
                  "type": "string",
                  "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
                  "enum": [
                    "VM",
                    "VNF"
                  ]
                },
                "policyName": {
                  "type": "string",
                  "description": "TCA Policy Scope Name"
                }
              }
            },
            "format": "tabs-top"
          }
        }
      }
    }
  },
  "configurationsJson": {
    "tca.policy": {
      "domain": "measurementsForVfScaling",
      "metricsPerEventName": [
        {
          "policyScope": "DCAE",
          "thresholds": [
            {
              "version": "1.0.2",
              "severity": "MAJOR",
              "thresholdValue": 200,
              "closedLoopEventStatus": "ONSET",
              "closedLoopControlName": "LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F",
              "direction": "LESS_OR_EQUAL",
              "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta"
            }
          ],
          "eventName": "vLoadBalancer",
          "policyVersion": "v0.0.1",
          "controlLoopSchemaType": "VM",
          "policyName": "DCAE.Config_tca-hi-lo"
        }
      ]
    }
  },
  "loopElementModel": {
    "name": "onap.policies.monitoring.tcagen2",
    "loopElementType": "MICRO_SERVICE_TYPE",
    "policyModels": [
      {
        "policyModelType": "onap.policies.monitoring.tcagen2",
        "version": "1.0.0",
        "policyAcronym": "tcagen2",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:47.933418Z",
        "updatedDate": "2021-06-13T10:55:41.102546Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      }
    ],
    "createdDate": "2021-06-13T14:02:17.142331Z",
    "updatedDate": "2021-06-13T14:02:17.142331Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "pdpGroup": "defaultGroup",
  "pdpSubgroup": "xacml",
  "policyModel": {
    "policyModelType": "onap.policies.monitoring.tcagen2",
    "version": "1.0.0",
    "policyAcronym": "tcagen2",
    "policyPdpGroup": {
      "supportedPdpGroups": [
        {
          "defaultGroup": [
            "xacml"
          ]
        }
      ]
    },
    "createdDate": "2021-06-13T10:54:47.933418Z",
    "updatedDate": "2021-06-13T10:55:41.102546Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-13T14:05:27.187003Z",
  "updatedDate": "2021-06-13T14:05:28.126461Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-13 14:05:28,160 INFO 39:instantiate_loop.py(1) - ******** UPDATE OPERATIONAL POLICIES CONFIG *******
2021-06-13 14:05:28,169 DEBUG 103:onap_service.py(1) - [None][ADD operational policy config] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:05:28,169 DEBUG 105:onap_service.py(1) - [None][ADD operational policy config] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/updateOperationalPolicies/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F
2021-06-13 14:05:28,170 DEBUG 106:onap_service.py(1) - [None][ADD operational policy config] data sent: [
  {
    "name": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_4Hp",
    "jsonRepresentation": {
      "title": "onap.policies.controlloop.guard.common.MinMax",
      "type": "object",
      "description": "Supports Min/Max number of entity for scaling operations. Although min and max fields are marked as not\nrequired, you need to have at least one or the other.\n",
      "required": [
        "actor",
        "operation",
        "target"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The Control Loop id this applies to."
        },
        "actor": {
          "type": "string",
          "description": "Specifies the Actor the guard applies to."
        },
        "operation": {
          "type": "string",
          "description": "Specified the operation that the actor is performing the guard applies to."
        },
        "timeRange": {
          "title": "tosca.datatypes.TimeInterval",
          "type": "object",
          "required": [
            "start_time",
            "end_time"
          ],
          "properties": {
            "start_time": {
              "type": "string",
              "format": "date-time"
            },
            "end_time": {
              "type": "string",
              "format": "date-time"
            }
          }
        },
        "min": {
          "type": "integer",
          "description": "The minimum instances of this entity"
        },
        "max": {
          "type": "integer",
          "description": "The maximum instances of this entity"
        },
        "target": {
          "type": "string",
          "description": "The target entity that has scaling restricted"
        }
      }
    },
    "configurationsJson": {
      "actor": "test",
      "operation": "test",
      "target": "test",
      "timeRange": {
        "start_time": "00:00:00",
        "end_time": "01:00:00"
      },
      "min": 1,
      "max": 10
    },
    "policyModel": {
      "policyModelType": "onap.policies.controlloop.guard.common.MinMax",
      "version": "1.0.0",
      "policyAcronym": "MinMax",
      "policyPdpGroup": {
        "supportedPdpGroups": [
          {
            "defaultGroup": [
              "xacml"
            ]
          }
        ]
      },
      "createdDate": "2020-07-22T01:37:35.861060Z",
      "updatedDate": "2020-07-22T01:37:51.719018Z",
      "updatedBy": "Not found",
      "createdBy": "Not found"
    },
    "createdDate": "2020-07-22T09:01:14.168344Z",
    "updatedDate": "2020-07-22T09:01:14.168344Z",
    "updatedBy": "clamp@clamp.onap.org",
    "createdBy": "clamp@clamp.onap.org",
    "pdpGroup": "defaultGroup",
    "pdpSubgroup": "xacml"
  }
]
2021-06-13 14:05:28,173 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-13 14:05:28,312 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "POST /restservices/clds/v2/loop/updateOperationalPolicies/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F HTTP/1.1" 200 None
2021-06-13 14:05:28,314 INFO 116:onap_service.py(1) - [None][ADD operational policy config] response code: 200
2021-06-13 14:05:28,314 DEBUG 120:onap_service.py(1) - [None][ADD operational policy config] response: {
  "name": "LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F",
  "globalPropertiesJson": {
    "dcaeDeployParameters": {
      "uniqueBlueprintParameters": {
        "service_name": "dcae-tcagen2",
        "log_directory": "/opt/logs/dcae-analytics-tca",
        "replicas": 1,
        "spring.data.mongodb.uri": "mongodb://dcae-mongohost/dcae-tcagen2",
        "tag_version": "nexus-rdnv6.onap.dyn.nesc.nokia.net:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1",
        "tca.aai.password": "DCAE",
        "tca.aai.url": "http://aai.onap.svc.cluster.local",
        "tca.aai.username": "DCAE",
        "tca_handle_in_subscribe_url": "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT",
        "tca_handle_out_publish_url": "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT",
        "tca_consumer_group": "cg1",
        "policy_model_id": "onap.policies.monitoring.tcagen2",
        "policy_id": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby"
      }
    }
  },
  "modelService": {
    "serviceDetails": {
      "serviceType": "",
      "serviceRole": "",
      "serviceFunction": "",
      "description": "service",
      "type": "Service",
      "instantiationType": "A-la-carte",
      "namingPolicy": "",
      "environmentContext": "General_Revenue-Bearing",
      "name": "basicclamp",
      "invariantUUID": "55cc43d2-abc4-4046-8b32-38c016b4e786",
      "ecompGeneratedNaming": "true",
      "UUID": "94f77a1c-4d86-470a-bc9c-125ae222adfb",
      "category": "Network Service"
    },
    "resourceDetails": {
      "CP": {},
      "VL": {},
      "VF": {
        "basicclamp 0": {
          "resourceVendor": "basiclamp_vendor",
          "name": "basicclamp",
          "description": "VF",
          "invariantUUID": "45c660b8-bc07-4fcd-a0f1-d6a7cd60ac86",
          "UUID": "a2cda4ec-db46-4694-8f14-524ae99e5ffa",
          "category": "Generic",
          "type": "VF",
          "subcategory": "Abstract",
          "version": "1.0",
          "customizationUUID": "e1c140c8-080f-486a-b9c5-ae4d9fff2ead",
          "resourceVendorRelease": "1.0",
          "reourceVendorModelNumber": ""
        }
      },
      "CR": {},
      "VFC": {},
      "PNF": {},
      "Service": {},
      "CVFC": {},
      "Service Proxy": {},
      "Configuration": {},
      "AllottedResource": {},
      "VFModule": {
        "Basicclamp..base_ubuntu18..module-0": {
          "vfModuleModelInvariantUUID": "eab409d0-1d7e-4b5b-80ae-ecb77655c47b",
          "vfModuleModelVersion": "1",
          "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
          "vfModuleModelUUID": "ace01596-65ed-41c4-b77f-a276e15124ac",
          "vfModuleModelCustomizationUUID": "99f59cf2-1fb9-46fc-8332-5bd982b5876b",
          "min_vf_module_instances": 1,
          "vf_module_label": "base_ubuntu18",
          "max_vf_module_instances": 1,
          "vf_module_type": "Base",
          "isBase": true,
          "initial_count": 1,
          "volume_group": false
        }
      }
    }
  },
  "lastComputedState": "DESIGN",
  "components": {
    "POLICY": {
      "componentState": {
        "stateName": "UNKNOWN",
        "description": "The current status is not clear. Need to refresh the status to get the current status."
      }
    },
    "DCAE": {
      "componentState": {
        "stateName": "BLUEPRINT_DEPLOYED",
        "description": "The DCAE blueprint has been found in the DCAE inventory but not yet instancianted for this loop"
      }
    }
  },
  "operationalPolicies": [
    {
      "name": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_4Hp",
      "jsonRepresentation": {
        "title": "onap.policies.controlloop.guard.common.MinMax",
        "type": "object",
        "description": "Supports Min/Max number of entity for scaling operations. Although min and max fields are marked as not\nrequired, you need to have at least one or the other.\n",
        "required": [
          "actor",
          "operation",
          "target"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The Control Loop id this applies to."
          },
          "actor": {
            "type": "string",
            "description": "Specifies the Actor the guard applies to."
          },
          "operation": {
            "type": "string",
            "description": "Specified the operation that the actor is performing the guard applies to."
          },
          "timeRange": {
            "title": "tosca.datatypes.TimeInterval",
            "type": "object",
            "required": [
              "start_time",
              "end_time"
            ],
            "properties": {
              "start_time": {
                "type": "string",
                "format": "date-time"
              },
              "end_time": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "min": {
            "type": "integer",
            "description": "The minimum instances of this entity"
          },
          "max": {
            "type": "integer",
            "description": "The maximum instances of this entity"
          },
          "target": {
            "type": "string",
            "description": "The target entity that has scaling restricted"
          }
        }
      },
      "configurationsJson": {
        "actor": "test",
        "operation": "test",
        "target": "test",
        "timeRange": {
          "start_time": "00:00:00",
          "end_time": "01:00:00"
        },
        "min": 1,
        "max": 10
      },
      "pdpGroup": "defaultGroup",
      "pdpSubgroup": "xacml",
      "policyModel": {
        "policyModelType": "onap.policies.controlloop.guard.common.MinMax",
        "version": "1.0.0",
        "policyAcronym": "MinMax",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:25.928861Z",
        "updatedDate": "2021-06-13T10:55:41.101246Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.328944Z",
      "updatedDate": "2021-06-13T14:05:28.284566Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "microServicePolicies": [
    {
      "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby",
      "shared": false,
      "jsonRepresentation": {
        "title": "onap.policies.monitoring.tcagen2",
        "type": "object",
        "required": [
          "tca.policy"
        ],
        "properties": {
          "tca.policy": {
            "title": "onap.datatypes.monitoring.tca_policy",
            "type": "object",
            "required": [
              "domain",
              "metricsPerEventName"
            ],
            "properties": {
              "domain": {
                "type": "string",
                "description": "Domain name to which TCA needs to be applied",
                "default": "measurementsForVfScaling",
                "const": "measurementsForVfScaling"
              },
              "metricsPerEventName": {
                "type": "array",
                "description": "Contains eventName and threshold details that need to be applied to given eventName",
                "items": {
                  "title": "onap.datatypes.monitoring.metricsPerEventName",
                  "type": "object",
                  "required": [
                    "policyScope",
                    "thresholds",
                    "eventName",
                    "policyVersion",
                    "controlLoopSchemaType",
                    "policyName"
                  ],
                  "properties": {
                    "policyScope": {
                      "type": "string",
                      "description": "TCA Policy Scope"
                    },
                    "thresholds": {
                      "type": "array",
                      "description": "Thresholds associated with eventName",
                      "items": {
                        "title": "onap.datatypes.monitoring.thresholds",
                        "type": "object",
                        "required": [
                          "version",
                          "severity",
                          "thresholdValue",
                          "closedLoopEventStatus",
                          "closedLoopControlName",
                          "direction",
                          "fieldPath"
                        ],
                        "properties": {
                          "version": {
                            "type": "string",
                            "description": "Version number associated with the threshold"
                          },
                          "severity": {
                            "type": "string",
                            "description": "Threshold Event Severity",
                            "enum": [
                              "CRITICAL",
                              "MAJOR",
                              "MINOR",
                              "WARNING",
                              "NORMAL"
                            ]
                          },
                          "thresholdValue": {
                            "type": "integer",
                            "description": "Threshold value for the field Path inside CEF message"
                          },
                          "closedLoopEventStatus": {
                            "type": "string",
                            "description": "Closed Loop Event Status of the threshold",
                            "enum": [
                              "ONSET",
                              "ABATED"
                            ]
                          },
                          "closedLoopControlName": {
                            "type": "string",
                            "description": "Closed Loop Control Name associated with the threshold"
                          },
                          "direction": {
                            "type": "string",
                            "description": "Direction of the threshold",
                            "enum": [
                              "LESS",
                              "LESS_OR_EQUAL",
                              "GREATER",
                              "GREATER_OR_EQUAL",
                              "EQUAL"
                            ]
                          },
                          "fieldPath": {
                            "type": "string",
                            "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
                            "enum": [
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
                              "$.event.measurementsForVfScalingFields.meanRequestLatency",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
                              "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
                            ]
                          }
                        }
                      },
                      "format": "tabs-top"
                    },
                    "eventName": {
                      "type": "string",
                      "description": "Event name to which thresholds need to be applied"
                    },
                    "policyVersion": {
                      "type": "string",
                      "description": "TCA Policy Scope Version"
                    },
                    "controlLoopSchemaType": {
                      "type": "string",
                      "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
                      "enum": [
                        "VM",
                        "VNF"
                      ]
                    },
                    "policyName": {
                      "type": "string",
                      "description": "TCA Policy Scope Name"
                    }
                  }
                },
                "format": "tabs-top"
              }
            }
          }
        }
      },
      "configurationsJson": {
        "tca.policy": {
          "domain": "measurementsForVfScaling",
          "metricsPerEventName": [
            {
              "policyScope": "DCAE",
              "thresholds": [
                {
                  "version": "1.0.2",
                  "severity": "MAJOR",
                  "thresholdValue": 200,
                  "closedLoopEventStatus": "ONSET",
                  "closedLoopControlName": "LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F",
                  "direction": "LESS_OR_EQUAL",
                  "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta"
                }
              ],
              "eventName": "vLoadBalancer",
              "policyVersion": "v0.0.1",
              "controlLoopSchemaType": "VM",
              "policyName": "DCAE.Config_tca-hi-lo"
            }
          ]
        }
      },
      "loopElementModel": {
        "name": "onap.policies.monitoring.tcagen2",
        "loopElementType": "MICRO_SERVICE_TYPE",
        "policyModels": [
          {
            "policyModelType": "onap.policies.monitoring.tcagen2",
            "version": "1.0.0",
            "policyAcronym": "tcagen2",
            "policyPdpGroup": {
              "supportedPdpGroups": [
                {
                  "defaultGroup": [
                    "xacml"
                  ]
                }
              ]
            },
            "createdDate": "2021-06-13T10:54:47.933418Z",
            "updatedDate": "2021-06-13T10:55:41.102546Z",
            "updatedBy": "Not found",
            "createdBy": "Not found"
          }
        ],
        "createdDate": "2021-06-13T14:02:17.142331Z",
        "updatedDate": "2021-06-13T14:02:17.142331Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "pdpGroup": "defaultGroup",
      "pdpSubgroup": "xacml",
      "policyModel": {
        "policyModelType": "onap.policies.monitoring.tcagen2",
        "version": "1.0.0",
        "policyAcronym": "tcagen2",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:47.933418Z",
        "updatedDate": "2021-06-13T10:55:41.102546Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.187003Z",
      "updatedDate": "2021-06-13T14:05:28.126461Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "loopLogs": [
    {
      "id": 3,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "Micro Service policies UPDATED",
      "logInstant": "2021-06-13T14:05:28Z"
    },
    {
      "id": 2,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-13T14:05:27Z"
    },
    {
      "id": 1,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-13T14:05:27Z"
    }
  ],
  "loopTemplate": {
    "name": "LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice",
    "dcaeBlueprintId": "90e2d3bf-ec7d-42cf-8121-759c681797c8",
    "loopElementModelsUsed": [
      {
        "loopElementModel": {
          "name": "onap.policies.monitoring.tcagen2",
          "loopElementType": "MICRO_SERVICE_TYPE",
          "policyModels": [
            {
              "policyModelType": "onap.policies.monitoring.tcagen2",
              "version": "1.0.0",
              "policyAcronym": "tcagen2",
              "policyPdpGroup": {
                "supportedPdpGroups": [
                  {
                    "defaultGroup": [
                      "xacml"
                    ]
                  }
                ]
              },
              "createdDate": "2021-06-13T10:54:47.933418Z",
              "updatedDate": "2021-06-13T10:55:41.102546Z",
              "updatedBy": "Not found",
              "createdBy": "Not found"
            }
          ],
          "createdDate": "2021-06-13T14:02:17.142331Z",
          "updatedDate": "2021-06-13T14:02:17.142331Z",
          "updatedBy": "Not found",
          "createdBy": "Not found"
        },
        "flowOrder": 0
      }
    ],
    "modelService": {
      "serviceDetails": {
        "serviceType": "",
        "serviceRole": "",
        "serviceFunction": "",
        "description": "service",
        "type": "Service",
        "instantiationType": "A-la-carte",
        "namingPolicy": "",
        "environmentContext": "General_Revenue-Bearing",
        "name": "basicclamp",
        "invariantUUID": "55cc43d2-abc4-4046-8b32-38c016b4e786",
        "ecompGeneratedNaming": "true",
        "UUID": "94f77a1c-4d86-470a-bc9c-125ae222adfb",
        "category": "Network Service"
      },
      "resourceDetails": {
        "CP": {},
        "VL": {},
        "VF": {
          "basicclamp 0": {
            "resourceVendor": "basiclamp_vendor",
            "name": "basicclamp",
            "description": "VF",
            "invariantUUID": "45c660b8-bc07-4fcd-a0f1-d6a7cd60ac86",
            "UUID": "a2cda4ec-db46-4694-8f14-524ae99e5ffa",
            "category": "Generic",
            "type": "VF",
            "subcategory": "Abstract",
            "version": "1.0",
            "customizationUUID": "e1c140c8-080f-486a-b9c5-ae4d9fff2ead",
            "resourceVendorRelease": "1.0",
            "reourceVendorModelNumber": ""
          }
        },
        "CR": {},
        "VFC": {},
        "PNF": {},
        "Service": {},
        "CVFC": {},
        "Service Proxy": {},
        "Configuration": {},
        "AllottedResource": {},
        "VFModule": {
          "Basicclamp..base_ubuntu18..module-0": {
            "vfModuleModelInvariantUUID": "eab409d0-1d7e-4b5b-80ae-ecb77655c47b",
            "vfModuleModelVersion": "1",
            "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
            "vfModuleModelUUID": "ace01596-65ed-41c4-b77f-a276e15124ac",
            "vfModuleModelCustomizationUUID": "99f59cf2-1fb9-46fc-8332-5bd982b5876b",
            "min_vf_module_instances": 1,
            "vf_module_label": "base_ubuntu18",
            "max_vf_module_instances": 1,
            "vf_module_type": "Base",
            "isBase": true,
            "initial_count": 1,
            "volume_group": false
          }
        }
      }
    },
    "maximumInstancesAllowed": 0,
    "uniqueBlueprint": true,
    "allowedLoopType": "CLOSED",
    "createdDate": "2021-06-13T14:02:17.120585Z",
    "updatedDate": "2021-06-13T14:02:17.120585Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-13T14:05:27.173340Z",
  "updatedDate": "2021-06-13T14:05:27.173340Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-13 14:05:28,317 INFO 267:loop_instance.py(1) - Files for op policy config LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F have been uploaded to loop'sOp policy
2021-06-13 14:05:28,320 DEBUG 103:onap_service.py(1) - [None][ADD operational policy config] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:05:28,321 DEBUG 105:onap_service.py(1) - [None][ADD operational policy config] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/updateOperationalPolicies/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F
2021-06-13 14:05:28,321 DEBUG 106:onap_service.py(1) - [None][ADD operational policy config] data sent: [
  {
    "name": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_4Hp",
    "jsonRepresentation": {
      "title": "onap.policies.controlloop.guard.common.MinMax",
      "type": "object",
      "description": "Supports Min/Max number of entity for scaling operations. Although min and max fields are marked as not\nrequired, you need to have at least one or the other.\n",
      "required": [
        "actor",
        "operation",
        "target"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The Control Loop id this applies to."
        },
        "actor": {
          "type": "string",
          "description": "Specifies the Actor the guard applies to."
        },
        "operation": {
          "type": "string",
          "description": "Specified the operation that the actor is performing the guard applies to."
        },
        "timeRange": {
          "title": "tosca.datatypes.TimeInterval",
          "type": "object",
          "required": [
            "start_time",
            "end_time"
          ],
          "properties": {
            "start_time": {
              "type": "string",
              "format": "date-time"
            },
            "end_time": {
              "type": "string",
              "format": "date-time"
            }
          }
        },
        "min": {
          "type": "integer",
          "description": "The minimum instances of this entity"
        },
        "max": {
          "type": "integer",
          "description": "The maximum instances of this entity"
        },
        "target": {
          "type": "string",
          "description": "The target entity that has scaling restricted"
        }
      }
    },
    "configurationsJson": {
      "actor": "test",
      "operation": "test",
      "target": "test",
      "timeRange": {
        "start_time": "00:00:00",
        "end_time": "01:00:00"
      },
      "min": 1,
      "max": 10
    },
    "policyModel": {
      "policyModelType": "onap.policies.controlloop.guard.common.MinMax",
      "version": "1.0.0",
      "policyAcronym": "MinMax",
      "policyPdpGroup": {
        "supportedPdpGroups": [
          {
            "defaultGroup": [
              "xacml"
            ]
          }
        ]
      },
      "createdDate": "2020-07-22T01:37:35.861060Z",
      "updatedDate": "2020-07-22T01:37:51.719018Z",
      "updatedBy": "Not found",
      "createdBy": "Not found"
    },
    "createdDate": "2020-07-22T09:01:14.168344Z",
    "updatedDate": "2020-07-22T09:01:14.168344Z",
    "updatedBy": "clamp@clamp.onap.org",
    "createdBy": "clamp@clamp.onap.org",
    "pdpGroup": "defaultGroup",
    "pdpSubgroup": "xacml"
  }
,
  {
    "name": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_4IK",
    "jsonRepresentation": {
      "title": "onap.policies.controlloop.guard.common.FrequencyLimiter",
      "type": "object",
      "description": "Supports limiting the frequency of actions being taken by a Actor.",
      "required": [
        "actor",
        "operation",
        "limit",
        "timeWindow",
        "timeUnits"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The Control Loop id this applies to."
        },
        "actor": {
          "type": "string",
          "description": "Specifies the Actor the guard applies to."
        },
        "operation": {
          "type": "string",
          "description": "Specified the operation that the actor is performing the guard applies to."
        },
        "timeRange": {
          "title": "tosca.datatypes.TimeInterval",
          "type": "object",
          "required": [
            "start_time",
            "end_time"
          ],
          "properties": {
            "start_time": {
              "type": "string",
              "format": "date-time"
            },
            "end_time": {
              "type": "string",
              "format": "date-time"
            }
          }
        },
        "limit": {
          "type": "integer",
          "description": "The limit",
          "exclusiveMinimum": "0"
        },
        "timeWindow": {
          "type": "integer",
          "description": "The time window to count the actions against."
        },
        "timeUnits": {
          "type": "string",
          "description": "The units of time the window is counting.",
          "enum": [
            "second",
            "minute",
            "hour",
            "day",
            "week",
            "month",
            "year"
          ]
        }
      }
    },
    "configurationsJson": {
      "actor": "SO",
      "operation": "VF Module Create",
      "limit": 1,
      "timeWindow": 10,
      "timeUnits": "minute"
    },
    "policyModel": {
      "policyModelType": "onap.policies.controlloop.guard.common.FrequencyLimiter",
      "version": "1.0.0",
      "policyAcronym": "FrequencyLimiter",
      "policyPdpGroup": {
        "supportedPdpGroups": [
          {
            "defaultGroup": [
              "xacml"
            ]
          }
        ]
      },
      "createdDate": "2020-07-22T01:37:35.106757Z",
      "updatedDate": "2020-07-22T01:37:51.709386Z",
      "updatedBy": "Not found",
      "createdBy": "Not found"
    },
    "createdDate": "2020-07-22T08:27:34.576868Z",
    "updatedDate": "2020-07-22T08:27:34.576868Z",
    "updatedBy": "clamp@clamp.onap.org",
    "createdBy": "clamp@clamp.onap.org",
    "pdpGroup": "defaultGroup",
    "pdpSubgroup": "xacml"
  }
]
2021-06-13 14:05:28,322 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-13 14:05:28,834 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "POST /restservices/clds/v2/loop/updateOperationalPolicies/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F HTTP/1.1" 200 None
2021-06-13 14:05:28,836 INFO 116:onap_service.py(1) - [None][ADD operational policy config] response code: 200
2021-06-13 14:05:28,836 DEBUG 120:onap_service.py(1) - [None][ADD operational policy config] response: {
  "name": "LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F",
  "globalPropertiesJson": {
    "dcaeDeployParameters": {
      "uniqueBlueprintParameters": {
        "service_name": "dcae-tcagen2",
        "log_directory": "/opt/logs/dcae-analytics-tca",
        "replicas": 1,
        "spring.data.mongodb.uri": "mongodb://dcae-mongohost/dcae-tcagen2",
        "tag_version": "nexus-rdnv6.onap.dyn.nesc.nokia.net:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1",
        "tca.aai.password": "DCAE",
        "tca.aai.url": "http://aai.onap.svc.cluster.local",
        "tca.aai.username": "DCAE",
        "tca_handle_in_subscribe_url": "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT",
        "tca_handle_out_publish_url": "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT",
        "tca_consumer_group": "cg1",
        "policy_model_id": "onap.policies.monitoring.tcagen2",
        "policy_id": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby"
      }
    }
  },
  "modelService": {
    "serviceDetails": {
      "serviceType": "",
      "serviceRole": "",
      "serviceFunction": "",
      "description": "service",
      "type": "Service",
      "instantiationType": "A-la-carte",
      "namingPolicy": "",
      "environmentContext": "General_Revenue-Bearing",
      "name": "basicclamp",
      "invariantUUID": "55cc43d2-abc4-4046-8b32-38c016b4e786",
      "ecompGeneratedNaming": "true",
      "UUID": "94f77a1c-4d86-470a-bc9c-125ae222adfb",
      "category": "Network Service"
    },
    "resourceDetails": {
      "CP": {},
      "VL": {},
      "VF": {
        "basicclamp 0": {
          "resourceVendor": "basiclamp_vendor",
          "name": "basicclamp",
          "description": "VF",
          "invariantUUID": "45c660b8-bc07-4fcd-a0f1-d6a7cd60ac86",
          "UUID": "a2cda4ec-db46-4694-8f14-524ae99e5ffa",
          "category": "Generic",
          "type": "VF",
          "subcategory": "Abstract",
          "version": "1.0",
          "customizationUUID": "e1c140c8-080f-486a-b9c5-ae4d9fff2ead",
          "resourceVendorRelease": "1.0",
          "reourceVendorModelNumber": ""
        }
      },
      "CR": {},
      "VFC": {},
      "PNF": {},
      "Service": {},
      "CVFC": {},
      "Service Proxy": {},
      "Configuration": {},
      "AllottedResource": {},
      "VFModule": {
        "Basicclamp..base_ubuntu18..module-0": {
          "vfModuleModelInvariantUUID": "eab409d0-1d7e-4b5b-80ae-ecb77655c47b",
          "vfModuleModelVersion": "1",
          "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
          "vfModuleModelUUID": "ace01596-65ed-41c4-b77f-a276e15124ac",
          "vfModuleModelCustomizationUUID": "99f59cf2-1fb9-46fc-8332-5bd982b5876b",
          "min_vf_module_instances": 1,
          "vf_module_label": "base_ubuntu18",
          "max_vf_module_instances": 1,
          "vf_module_type": "Base",
          "isBase": true,
          "initial_count": 1,
          "volume_group": false
        }
      }
    }
  },
  "lastComputedState": "DESIGN",
  "components": {
    "POLICY": {
      "componentState": {
        "stateName": "UNKNOWN",
        "description": "The current status is not clear. Need to refresh the status to get the current status."
      }
    },
    "DCAE": {
      "componentState": {
        "stateName": "BLUEPRINT_DEPLOYED",
        "description": "The DCAE blueprint has been found in the DCAE inventory but not yet instancianted for this loop"
      }
    }
  },
  "operationalPolicies": [
    {
      "name": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_4Hp",
      "jsonRepresentation": {
        "title": "onap.policies.controlloop.guard.common.MinMax",
        "type": "object",
        "description": "Supports Min/Max number of entity for scaling operations. Although min and max fields are marked as not\nrequired, you need to have at least one or the other.\n",
        "required": [
          "actor",
          "operation",
          "target"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The Control Loop id this applies to."
          },
          "actor": {
            "type": "string",
            "description": "Specifies the Actor the guard applies to."
          },
          "operation": {
            "type": "string",
            "description": "Specified the operation that the actor is performing the guard applies to."
          },
          "timeRange": {
            "title": "tosca.datatypes.TimeInterval",
            "type": "object",
            "required": [
              "start_time",
              "end_time"
            ],
            "properties": {
              "start_time": {
                "type": "string",
                "format": "date-time"
              },
              "end_time": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "min": {
            "type": "integer",
            "description": "The minimum instances of this entity"
          },
          "max": {
            "type": "integer",
            "description": "The maximum instances of this entity"
          },
          "target": {
            "type": "string",
            "description": "The target entity that has scaling restricted"
          }
        }
      },
      "configurationsJson": {
        "actor": "test",
        "operation": "test",
        "target": "test",
        "timeRange": {
          "start_time": "00:00:00",
          "end_time": "01:00:00"
        },
        "min": 1,
        "max": 10
      },
      "pdpGroup": "defaultGroup",
      "pdpSubgroup": "xacml",
      "policyModel": {
        "policyModelType": "onap.policies.controlloop.guard.common.MinMax",
        "version": "1.0.0",
        "policyAcronym": "MinMax",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:25.928861Z",
        "updatedDate": "2021-06-13T10:55:41.101246Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.328944Z",
      "updatedDate": "2021-06-13T14:05:28.284566Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    },
    {
      "name": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_4IK",
      "jsonRepresentation": {
        "title": "onap.policies.controlloop.guard.common.FrequencyLimiter",
        "type": "object",
        "description": "Supports limiting the frequency of actions being taken by a Actor.",
        "required": [
          "actor",
          "operation",
          "limit",
          "timeWindow",
          "timeUnits"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The Control Loop id this applies to."
          },
          "actor": {
            "type": "string",
            "description": "Specifies the Actor the guard applies to."
          },
          "operation": {
            "type": "string",
            "description": "Specified the operation that the actor is performing the guard applies to."
          },
          "timeRange": {
            "title": "tosca.datatypes.TimeInterval",
            "type": "object",
            "required": [
              "start_time",
              "end_time"
            ],
            "properties": {
              "start_time": {
                "type": "string",
                "format": "date-time"
              },
              "end_time": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "limit": {
            "type": "integer",
            "description": "The limit",
            "exclusiveMinimum": "0"
          },
          "timeWindow": {
            "type": "integer",
            "description": "The time window to count the actions against."
          },
          "timeUnits": {
            "type": "string",
            "description": "The units of time the window is counting.",
            "enum": [
              "second",
              "minute",
              "hour",
              "day",
              "week",
              "month",
              "year"
            ]
          }
        }
      },
      "configurationsJson": {
        "actor": "SO",
        "operation": "VF Module Create",
        "limit": 1,
        "timeWindow": 10,
        "timeUnits": "minute"
      },
      "pdpGroup": "defaultGroup",
      "pdpSubgroup": "xacml",
      "policyModel": {
        "policyModelType": "onap.policies.controlloop.guard.common.FrequencyLimiter",
        "version": "1.0.0",
        "policyAcronym": "FrequencyLimiter",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:24.931908Z",
        "updatedDate": "2021-06-13T10:55:41.101015Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:28.803115Z",
      "updatedDate": "2021-06-13T14:05:28.803115Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "microServicePolicies": [
    {
      "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby",
      "shared": false,
      "jsonRepresentation": {
        "title": "onap.policies.monitoring.tcagen2",
        "type": "object",
        "required": [
          "tca.policy"
        ],
        "properties": {
          "tca.policy": {
            "title": "onap.datatypes.monitoring.tca_policy",
            "type": "object",
            "required": [
              "domain",
              "metricsPerEventName"
            ],
            "properties": {
              "domain": {
                "type": "string",
                "description": "Domain name to which TCA needs to be applied",
                "default": "measurementsForVfScaling",
                "const": "measurementsForVfScaling"
              },
              "metricsPerEventName": {
                "type": "array",
                "description": "Contains eventName and threshold details that need to be applied to given eventName",
                "items": {
                  "title": "onap.datatypes.monitoring.metricsPerEventName",
                  "type": "object",
                  "required": [
                    "policyScope",
                    "thresholds",
                    "eventName",
                    "policyVersion",
                    "controlLoopSchemaType",
                    "policyName"
                  ],
                  "properties": {
                    "policyScope": {
                      "type": "string",
                      "description": "TCA Policy Scope"
                    },
                    "thresholds": {
                      "type": "array",
                      "description": "Thresholds associated with eventName",
                      "items": {
                        "title": "onap.datatypes.monitoring.thresholds",
                        "type": "object",
                        "required": [
                          "version",
                          "severity",
                          "thresholdValue",
                          "closedLoopEventStatus",
                          "closedLoopControlName",
                          "direction",
                          "fieldPath"
                        ],
                        "properties": {
                          "version": {
                            "type": "string",
                            "description": "Version number associated with the threshold"
                          },
                          "severity": {
                            "type": "string",
                            "description": "Threshold Event Severity",
                            "enum": [
                              "CRITICAL",
                              "MAJOR",
                              "MINOR",
                              "WARNING",
                              "NORMAL"
                            ]
                          },
                          "thresholdValue": {
                            "type": "integer",
                            "description": "Threshold value for the field Path inside CEF message"
                          },
                          "closedLoopEventStatus": {
                            "type": "string",
                            "description": "Closed Loop Event Status of the threshold",
                            "enum": [
                              "ONSET",
                              "ABATED"
                            ]
                          },
                          "closedLoopControlName": {
                            "type": "string",
                            "description": "Closed Loop Control Name associated with the threshold"
                          },
                          "direction": {
                            "type": "string",
                            "description": "Direction of the threshold",
                            "enum": [
                              "LESS",
                              "LESS_OR_EQUAL",
                              "GREATER",
                              "GREATER_OR_EQUAL",
                              "EQUAL"
                            ]
                          },
                          "fieldPath": {
                            "type": "string",
                            "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
                            "enum": [
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
                              "$.event.measurementsForVfScalingFields.meanRequestLatency",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
                              "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
                            ]
                          }
                        }
                      },
                      "format": "tabs-top"
                    },
                    "eventName": {
                      "type": "string",
                      "description": "Event name to which thresholds need to be applied"
                    },
                    "policyVersion": {
                      "type": "string",
                      "description": "TCA Policy Scope Version"
                    },
                    "controlLoopSchemaType": {
                      "type": "string",
                      "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
                      "enum": [
                        "VM",
                        "VNF"
                      ]
                    },
                    "policyName": {
                      "type": "string",
                      "description": "TCA Policy Scope Name"
                    }
                  }
                },
                "format": "tabs-top"
              }
            }
          }
        }
      },
      "configurationsJson": {
        "tca.policy": {
          "domain": "measurementsForVfScaling",
          "metricsPerEventName": [
            {
              "policyScope": "DCAE",
              "thresholds": [
                {
                  "version": "1.0.2",
                  "severity": "MAJOR",
                  "thresholdValue": 200,
                  "closedLoopEventStatus": "ONSET",
                  "closedLoopControlName": "LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F",
                  "direction": "LESS_OR_EQUAL",
                  "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta"
                }
              ],
              "eventName": "vLoadBalancer",
              "policyVersion": "v0.0.1",
              "controlLoopSchemaType": "VM",
              "policyName": "DCAE.Config_tca-hi-lo"
            }
          ]
        }
      },
      "loopElementModel": {
        "name": "onap.policies.monitoring.tcagen2",
        "loopElementType": "MICRO_SERVICE_TYPE",
        "policyModels": [
          {
            "policyModelType": "onap.policies.monitoring.tcagen2",
            "version": "1.0.0",
            "policyAcronym": "tcagen2",
            "policyPdpGroup": {
              "supportedPdpGroups": [
                {
                  "defaultGroup": [
                    "xacml"
                  ]
                }
              ]
            },
            "createdDate": "2021-06-13T10:54:47.933418Z",
            "updatedDate": "2021-06-13T10:55:41.102546Z",
            "updatedBy": "Not found",
            "createdBy": "Not found"
          }
        ],
        "createdDate": "2021-06-13T14:02:17.142331Z",
        "updatedDate": "2021-06-13T14:02:17.142331Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "pdpGroup": "defaultGroup",
      "pdpSubgroup": "xacml",
      "policyModel": {
        "policyModelType": "onap.policies.monitoring.tcagen2",
        "version": "1.0.0",
        "policyAcronym": "tcagen2",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:47.933418Z",
        "updatedDate": "2021-06-13T10:55:41.102546Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.187003Z",
      "updatedDate": "2021-06-13T14:05:28.126461Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "loopLogs": [
    {
      "id": 4,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "Operational policies UPDATED",
      "logInstant": "2021-06-13T14:05:28Z"
    },
    {
      "id": 3,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "Micro Service policies UPDATED",
      "logInstant": "2021-06-13T14:05:28Z"
    },
    {
      "id": 2,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-13T14:05:27Z"
    },
    {
      "id": 1,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-13T14:05:27Z"
    }
  ],
  "loopTemplate": {
    "name": "LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice",
    "dcaeBlueprintId": "90e2d3bf-ec7d-42cf-8121-759c681797c8",
    "loopElementModelsUsed": [
      {
        "loopElementModel": {
          "name": "onap.policies.monitoring.tcagen2",
          "loopElementType": "MICRO_SERVICE_TYPE",
          "policyModels": [
            {
              "policyModelType": "onap.policies.monitoring.tcagen2",
              "version": "1.0.0",
              "policyAcronym": "tcagen2",
              "policyPdpGroup": {
                "supportedPdpGroups": [
                  {
                    "defaultGroup": [
                      "xacml"
                    ]
                  }
                ]
              },
              "createdDate": "2021-06-13T10:54:47.933418Z",
              "updatedDate": "2021-06-13T10:55:41.102546Z",
              "updatedBy": "Not found",
              "createdBy": "Not found"
            }
          ],
          "createdDate": "2021-06-13T14:02:17.142331Z",
          "updatedDate": "2021-06-13T14:02:17.142331Z",
          "updatedBy": "Not found",
          "createdBy": "Not found"
        },
        "flowOrder": 0
      }
    ],
    "modelService": {
      "serviceDetails": {
        "serviceType": "",
        "serviceRole": "",
        "serviceFunction": "",
        "description": "service",
        "type": "Service",
        "instantiationType": "A-la-carte",
        "namingPolicy": "",
        "environmentContext": "General_Revenue-Bearing",
        "name": "basicclamp",
        "invariantUUID": "55cc43d2-abc4-4046-8b32-38c016b4e786",
        "ecompGeneratedNaming": "true",
        "UUID": "94f77a1c-4d86-470a-bc9c-125ae222adfb",
        "category": "Network Service"
      },
      "resourceDetails": {
        "CP": {},
        "VL": {},
        "VF": {
          "basicclamp 0": {
            "resourceVendor": "basiclamp_vendor",
            "name": "basicclamp",
            "description": "VF",
            "invariantUUID": "45c660b8-bc07-4fcd-a0f1-d6a7cd60ac86",
            "UUID": "a2cda4ec-db46-4694-8f14-524ae99e5ffa",
            "category": "Generic",
            "type": "VF",
            "subcategory": "Abstract",
            "version": "1.0",
            "customizationUUID": "e1c140c8-080f-486a-b9c5-ae4d9fff2ead",
            "resourceVendorRelease": "1.0",
            "reourceVendorModelNumber": ""
          }
        },
        "CR": {},
        "VFC": {},
        "PNF": {},
        "Service": {},
        "CVFC": {},
        "Service Proxy": {},
        "Configuration": {},
        "AllottedResource": {},
        "VFModule": {
          "Basicclamp..base_ubuntu18..module-0": {
            "vfModuleModelInvariantUUID": "eab409d0-1d7e-4b5b-80ae-ecb77655c47b",
            "vfModuleModelVersion": "1",
            "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
            "vfModuleModelUUID": "ace01596-65ed-41c4-b77f-a276e15124ac",
            "vfModuleModelCustomizationUUID": "99f59cf2-1fb9-46fc-8332-5bd982b5876b",
            "min_vf_module_instances": 1,
            "vf_module_label": "base_ubuntu18",
            "max_vf_module_instances": 1,
            "vf_module_type": "Base",
            "isBase": true,
            "initial_count": 1,
            "volume_group": false
          }
        }
      }
    },
    "maximumInstancesAllowed": 0,
    "uniqueBlueprint": true,
    "allowedLoopType": "CLOSED",
    "createdDate": "2021-06-13T14:02:17.120585Z",
    "updatedDate": "2021-06-13T14:02:17.120585Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-13T14:05:27.173340Z",
  "updatedDate": "2021-06-13T14:05:27.173340Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-13 14:05:28,839 INFO 267:loop_instance.py(1) - Files for op policy config LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F have been uploaded to loop'sOp policy
2021-06-13 14:05:28,839 INFO 49:instantiate_loop.py(1) - Policies are well configured
2021-06-13 14:05:28,839 INFO 53:instantiate_loop.py(1) - ******** SUBMIT POLICIES TO PE *******
2021-06-13 14:05:28,840 DEBUG 103:onap_service.py(1) - [None][submit policy] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:05:28,840 DEBUG 105:onap_service.py(1) - [None][submit policy] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/submit/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F
2021-06-13 14:05:28,840 DEBUG 106:onap_service.py(1) - [None][submit policy] data sent: None
2021-06-13 14:05:28,842 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-13 14:05:47,795 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "PUT /restservices/clds/v2/loop/submit/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F HTTP/1.1" 202 None
2021-06-13 14:05:47,797 INFO 116:onap_service.py(1) - [None][submit policy] response code: 202
2021-06-13 14:05:47,798 DEBUG 120:onap_service.py(1) - [None][submit policy] response: {}
2021-06-13 14:05:47,801 DEBUG 195:onap_service.py(1) - [None][Get loop status] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:05:47,801 DEBUG 197:onap_service.py(1) - [None][Get loop status] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/getstatus/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F
2021-06-13 14:05:47,801 DEBUG 198:onap_service.py(1) - [None][Get loop status] data sent: None
2021-06-13 14:05:47,802 DEBUG 103:onap_service.py(1) - [None][Get loop status] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:05:47,802 DEBUG 105:onap_service.py(1) - [None][Get loop status] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/getstatus/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F
2021-06-13 14:05:47,802 DEBUG 106:onap_service.py(1) - [None][Get loop status] data sent: None
2021-06-13 14:05:47,804 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-13 14:06:00,003 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "GET /restservices/clds/v2/loop/getstatus/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F HTTP/1.1" 200 None
2021-06-13 14:06:00,005 INFO 116:onap_service.py(1) - [None][Get loop status] response code: 200
2021-06-13 14:06:00,006 DEBUG 120:onap_service.py(1) - [None][Get loop status] response: {
  "name": "LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F",
  "globalPropertiesJson": {
    "dcaeDeployParameters": {
      "uniqueBlueprintParameters": {
        "service_name": "dcae-tcagen2",
        "log_directory": "/opt/logs/dcae-analytics-tca",
        "replicas": 1,
        "spring.data.mongodb.uri": "mongodb://dcae-mongohost/dcae-tcagen2",
        "tag_version": "nexus-rdnv6.onap.dyn.nesc.nokia.net:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1",
        "tca.aai.password": "DCAE",
        "tca.aai.url": "http://aai.onap.svc.cluster.local",
        "tca.aai.username": "DCAE",
        "tca_handle_in_subscribe_url": "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT",
        "tca_handle_out_publish_url": "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT",
        "tca_consumer_group": "cg1",
        "policy_model_id": "onap.policies.monitoring.tcagen2",
        "policy_id": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby"
      }
    }
  },
  "modelService": {
    "serviceDetails": {
      "serviceType": "",
      "serviceRole": "",
      "serviceFunction": "",
      "description": "service",
      "type": "Service",
      "instantiationType": "A-la-carte",
      "namingPolicy": "",
      "environmentContext": "General_Revenue-Bearing",
      "name": "basicclamp",
      "invariantUUID": "55cc43d2-abc4-4046-8b32-38c016b4e786",
      "ecompGeneratedNaming": "true",
      "UUID": "94f77a1c-4d86-470a-bc9c-125ae222adfb",
      "category": "Network Service"
    },
    "resourceDetails": {
      "CP": {},
      "VL": {},
      "VF": {
        "basicclamp 0": {
          "resourceVendor": "basiclamp_vendor",
          "name": "basicclamp",
          "description": "VF",
          "invariantUUID": "45c660b8-bc07-4fcd-a0f1-d6a7cd60ac86",
          "UUID": "a2cda4ec-db46-4694-8f14-524ae99e5ffa",
          "category": "Generic",
          "type": "VF",
          "subcategory": "Abstract",
          "version": "1.0",
          "customizationUUID": "e1c140c8-080f-486a-b9c5-ae4d9fff2ead",
          "resourceVendorRelease": "1.0",
          "reourceVendorModelNumber": ""
        }
      },
      "CR": {},
      "VFC": {},
      "PNF": {},
      "Service": {},
      "CVFC": {},
      "Service Proxy": {},
      "Configuration": {},
      "AllottedResource": {},
      "VFModule": {
        "Basicclamp..base_ubuntu18..module-0": {
          "vfModuleModelInvariantUUID": "eab409d0-1d7e-4b5b-80ae-ecb77655c47b",
          "vfModuleModelVersion": "1",
          "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
          "vfModuleModelUUID": "ace01596-65ed-41c4-b77f-a276e15124ac",
          "vfModuleModelCustomizationUUID": "99f59cf2-1fb9-46fc-8332-5bd982b5876b",
          "min_vf_module_instances": 1,
          "vf_module_label": "base_ubuntu18",
          "max_vf_module_instances": 1,
          "vf_module_type": "Base",
          "isBase": true,
          "initial_count": 1,
          "volume_group": false
        }
      }
    }
  },
  "lastComputedState": "SUBMITTED",
  "components": {
    "POLICY": {
      "componentState": {
        "stateName": "SENT_AND_DEPLOYED",
        "description": "The policies defined have been created and deployed on the policy engine"
      }
    },
    "DCAE": {
      "componentState": {
        "stateName": "BLUEPRINT_DEPLOYED",
        "description": "The DCAE blueprint has been found in the DCAE inventory but not yet instancianted for this loop"
      }
    }
  },
  "operationalPolicies": [
    {
      "name": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_4Hp",
      "jsonRepresentation": {
        "title": "onap.policies.controlloop.guard.common.MinMax",
        "type": "object",
        "description": "Supports Min/Max number of entity for scaling operations. Although min and max fields are marked as not\nrequired, you need to have at least one or the other.\n",
        "required": [
          "actor",
          "operation",
          "target"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The Control Loop id this applies to."
          },
          "actor": {
            "type": "string",
            "description": "Specifies the Actor the guard applies to."
          },
          "operation": {
            "type": "string",
            "description": "Specified the operation that the actor is performing the guard applies to."
          },
          "timeRange": {
            "title": "tosca.datatypes.TimeInterval",
            "type": "object",
            "required": [
              "start_time",
              "end_time"
            ],
            "properties": {
              "start_time": {
                "type": "string",
                "format": "date-time"
              },
              "end_time": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "min": {
            "type": "integer",
            "description": "The minimum instances of this entity"
          },
          "max": {
            "type": "integer",
            "description": "The maximum instances of this entity"
          },
          "target": {
            "type": "string",
            "description": "The target entity that has scaling restricted"
          }
        }
      },
      "configurationsJson": {
        "actor": "test",
        "operation": "test",
        "target": "test",
        "timeRange": {
          "start_time": "00:00:00",
          "end_time": "01:00:00"
        },
        "min": 1,
        "max": 10
      },
      "pdpGroup": "defaultGroup",
      "pdpSubgroup": "xacml",
      "policyModel": {
        "policyModelType": "onap.policies.controlloop.guard.common.MinMax",
        "version": "1.0.0",
        "policyAcronym": "MinMax",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:25.928861Z",
        "updatedDate": "2021-06-13T10:55:41.101246Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.328944Z",
      "updatedDate": "2021-06-13T14:05:28.284566Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    },
    {
      "name": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_4IK",
      "jsonRepresentation": {
        "title": "onap.policies.controlloop.guard.common.FrequencyLimiter",
        "type": "object",
        "description": "Supports limiting the frequency of actions being taken by a Actor.",
        "required": [
          "actor",
          "operation",
          "limit",
          "timeWindow",
          "timeUnits"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The Control Loop id this applies to."
          },
          "actor": {
            "type": "string",
            "description": "Specifies the Actor the guard applies to."
          },
          "operation": {
            "type": "string",
            "description": "Specified the operation that the actor is performing the guard applies to."
          },
          "timeRange": {
            "title": "tosca.datatypes.TimeInterval",
            "type": "object",
            "required": [
              "start_time",
              "end_time"
            ],
            "properties": {
              "start_time": {
                "type": "string",
                "format": "date-time"
              },
              "end_time": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "limit": {
            "type": "integer",
            "description": "The limit",
            "exclusiveMinimum": "0"
          },
          "timeWindow": {
            "type": "integer",
            "description": "The time window to count the actions against."
          },
          "timeUnits": {
            "type": "string",
            "description": "The units of time the window is counting.",
            "enum": [
              "second",
              "minute",
              "hour",
              "day",
              "week",
              "month",
              "year"
            ]
          }
        }
      },
      "configurationsJson": {
        "actor": "SO",
        "operation": "VF Module Create",
        "limit": 1,
        "timeWindow": 10,
        "timeUnits": "minute"
      },
      "pdpGroup": "defaultGroup",
      "pdpSubgroup": "xacml",
      "policyModel": {
        "policyModelType": "onap.policies.controlloop.guard.common.FrequencyLimiter",
        "version": "1.0.0",
        "policyAcronym": "FrequencyLimiter",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:24.931908Z",
        "updatedDate": "2021-06-13T10:55:41.101015Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:28.803115Z",
      "updatedDate": "2021-06-13T14:05:28.803115Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "microServicePolicies": [
    {
      "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby",
      "shared": false,
      "jsonRepresentation": {
        "title": "onap.policies.monitoring.tcagen2",
        "type": "object",
        "required": [
          "tca.policy"
        ],
        "properties": {
          "tca.policy": {
            "title": "onap.datatypes.monitoring.tca_policy",
            "type": "object",
            "required": [
              "domain",
              "metricsPerEventName"
            ],
            "properties": {
              "domain": {
                "type": "string",
                "description": "Domain name to which TCA needs to be applied",
                "default": "measurementsForVfScaling",
                "const": "measurementsForVfScaling"
              },
              "metricsPerEventName": {
                "type": "array",
                "description": "Contains eventName and threshold details that need to be applied to given eventName",
                "items": {
                  "title": "onap.datatypes.monitoring.metricsPerEventName",
                  "type": "object",
                  "required": [
                    "policyScope",
                    "thresholds",
                    "eventName",
                    "policyVersion",
                    "controlLoopSchemaType",
                    "policyName"
                  ],
                  "properties": {
                    "policyScope": {
                      "type": "string",
                      "description": "TCA Policy Scope"
                    },
                    "thresholds": {
                      "type": "array",
                      "description": "Thresholds associated with eventName",
                      "items": {
                        "title": "onap.datatypes.monitoring.thresholds",
                        "type": "object",
                        "required": [
                          "version",
                          "severity",
                          "thresholdValue",
                          "closedLoopEventStatus",
                          "closedLoopControlName",
                          "direction",
                          "fieldPath"
                        ],
                        "properties": {
                          "version": {
                            "type": "string",
                            "description": "Version number associated with the threshold"
                          },
                          "severity": {
                            "type": "string",
                            "description": "Threshold Event Severity",
                            "enum": [
                              "CRITICAL",
                              "MAJOR",
                              "MINOR",
                              "WARNING",
                              "NORMAL"
                            ]
                          },
                          "thresholdValue": {
                            "type": "integer",
                            "description": "Threshold value for the field Path inside CEF message"
                          },
                          "closedLoopEventStatus": {
                            "type": "string",
                            "description": "Closed Loop Event Status of the threshold",
                            "enum": [
                              "ONSET",
                              "ABATED"
                            ]
                          },
                          "closedLoopControlName": {
                            "type": "string",
                            "description": "Closed Loop Control Name associated with the threshold"
                          },
                          "direction": {
                            "type": "string",
                            "description": "Direction of the threshold",
                            "enum": [
                              "LESS",
                              "LESS_OR_EQUAL",
                              "GREATER",
                              "GREATER_OR_EQUAL",
                              "EQUAL"
                            ]
                          },
                          "fieldPath": {
                            "type": "string",
                            "description": "Json field Path as per CEF message which needs to be analyzed for TCA",
                            "enum": [
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
                              "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
                              "$.event.measurementsForVfScalingFields.meanRequestLatency",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
                              "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
                              "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
                            ]
                          }
                        }
                      },
                      "format": "tabs-top"
                    },
                    "eventName": {
                      "type": "string",
                      "description": "Event name to which thresholds need to be applied"
                    },
                    "policyVersion": {
                      "type": "string",
                      "description": "TCA Policy Scope Version"
                    },
                    "controlLoopSchemaType": {
                      "type": "string",
                      "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
                      "enum": [
                        "VM",
                        "VNF"
                      ]
                    },
                    "policyName": {
                      "type": "string",
                      "description": "TCA Policy Scope Name"
                    }
                  }
                },
                "format": "tabs-top"
              }
            }
          }
        }
      },
      "configurationsJson": {
        "tca.policy": {
          "domain": "measurementsForVfScaling",
          "metricsPerEventName": [
            {
              "policyScope": "DCAE",
              "thresholds": [
                {
                  "version": "1.0.2",
                  "severity": "MAJOR",
                  "thresholdValue": 200,
                  "closedLoopEventStatus": "ONSET",
                  "closedLoopControlName": "LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F",
                  "direction": "LESS_OR_EQUAL",
                  "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta"
                }
              ],
              "eventName": "vLoadBalancer",
              "policyVersion": "v0.0.1",
              "controlLoopSchemaType": "VM",
              "policyName": "DCAE.Config_tca-hi-lo"
            }
          ]
        }
      },
      "loopElementModel": {
        "name": "onap.policies.monitoring.tcagen2",
        "loopElementType": "MICRO_SERVICE_TYPE",
        "policyModels": [
          {
            "policyModelType": "onap.policies.monitoring.tcagen2",
            "version": "1.0.0",
            "policyAcronym": "tcagen2",
            "policyPdpGroup": {
              "supportedPdpGroups": [
                {
                  "defaultGroup": [
                    "xacml"
                  ]
                }
              ]
            },
            "createdDate": "2021-06-13T10:54:47.933418Z",
            "updatedDate": "2021-06-13T10:55:41.102546Z",
            "updatedBy": "Not found",
            "createdBy": "Not found"
          }
        ],
        "createdDate": "2021-06-13T14:02:17.142331Z",
        "updatedDate": "2021-06-13T14:02:17.142331Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "pdpGroup": "defaultGroup",
      "pdpSubgroup": "xacml",
      "policyModel": {
        "policyModelType": "onap.policies.monitoring.tcagen2",
        "version": "1.0.0",
        "policyAcronym": "tcagen2",
        "policyPdpGroup": {
          "supportedPdpGroups": [
            {
              "defaultGroup": [
                "xacml"
              ]
            }
          ]
        },
        "createdDate": "2021-06-13T10:54:47.933418Z",
        "updatedDate": "2021-06-13T10:55:41.102546Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-13T14:05:27.187003Z",
      "updatedDate": "2021-06-13T14:05:28.126461Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "loopLogs": [
    {
      "id": 26,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "GET STATUS request successfully executed",
      "logInstant": "2021-06-13T14:05:59Z"
    },
    {
      "id": 25,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "New loop state is: SUBMITTED",
      "logInstant": "2021-06-13T14:05:59Z"
    },
    {
      "id": 24,
      "logType": "INFO",
      "logComponent": "DCAE",
      "message": "DCAE state set to: BLUEPRINT_DEPLOYED - message: ",
      "logInstant": "2021-06-13T14:05:59Z"
    },
    {
      "id": 23,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "Policy state set to: SENT_AND_DEPLOYED",
      "logInstant": "2021-06-13T14:05:59Z"
    },
    {
      "id": 22,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_4IK GET Policy deployment\n                        status - 200 : OK",
      "logInstant": "2021-06-13T14:05:59Z"
    },
    {
      "id": 21,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_4IK GET\n                        Policy status - 200 : OK",
      "logInstant": "2021-06-13T14:05:57Z"
    },
    {
      "id": 20,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_4Hp GET Policy deployment\n                        status - 200 : OK",
      "logInstant": "2021-06-13T14:05:55Z"
    },
    {
      "id": 19,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_4Hp GET\n                        Policy status - 200 : OK",
      "logInstant": "2021-06-13T14:05:55Z"
    },
    {
      "id": 18,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby GET Policy deployment\n                        status - 200 : OK",
      "logInstant": "2021-06-13T14:05:51Z"
    },
    {
      "id": 17,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby GET\n                        Policy status - 200 : OK",
      "logInstant": "2021-06-13T14:05:51Z"
    },
    {
      "id": 16,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "GET STATUS request",
      "logInstant": "2021-06-13T14:05:47Z"
    },
    {
      "id": 15,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "SUBMIT request successfully executed",
      "logInstant": "2021-06-13T14:05:47Z"
    },
    {
      "id": 14,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "PDP Group push ALL status - 202 : Accepted",
      "logInstant": "2021-06-13T14:05:46Z"
    },
    {
      "id": 13,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_4IK creation\n                        status - 200 : OK",
      "logInstant": "2021-06-13T14:05:36Z"
    },
    {
      "id": 12,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_4IK removal\n                        status - 404 : Not Found",
      "logInstant": "2021-06-13T14:05:35Z"
    },
    {
      "id": 11,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_4Hp creation\n                        status - 200 : OK",
      "logInstant": "2021-06-13T14:05:34Z"
    },
    {
      "id": 10,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_4Hp removal\n                        status - 404 : Not Found",
      "logInstant": "2021-06-13T14:05:33Z"
    },
    {
      "id": 9,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby creation\n                        status - 200 : OK",
      "logInstant": "2021-06-13T14:05:33Z"
    },
    {
      "id": 8,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_Cby removal\n                        status - 404 : Not Found",
      "logInstant": "2021-06-13T14:05:31Z"
    },
    {
      "id": 7,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "PDP Group remove ALL status - 400 : Bad Request",
      "logInstant": "2021-06-13T14:05:30Z"
    },
    {
      "id": 6,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "POLICY SUBMIT request",
      "logInstant": "2021-06-13T14:05:28Z"
    },
    {
      "id": 5,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "Operational policies UPDATED",
      "logInstant": "2021-06-13T14:05:28Z"
    },
    {
      "id": 4,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "Operational policies UPDATED",
      "logInstant": "2021-06-13T14:05:28Z"
    },
    {
      "id": 3,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "Micro Service policies UPDATED",
      "logInstant": "2021-06-13T14:05:28Z"
    },
    {
      "id": 2,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-13T14:05:27Z"
    },
    {
      "id": 1,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-13T14:05:27Z"
    }
  ],
  "loopTemplate": {
    "name": "LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice",
    "dcaeBlueprintId": "90e2d3bf-ec7d-42cf-8121-759c681797c8",
    "loopElementModelsUsed": [
      {
        "loopElementModel": {
          "name": "onap.policies.monitoring.tcagen2",
          "loopElementType": "MICRO_SERVICE_TYPE",
          "policyModels": [
            {
              "policyModelType": "onap.policies.monitoring.tcagen2",
              "version": "1.0.0",
              "policyAcronym": "tcagen2",
              "policyPdpGroup": {
                "supportedPdpGroups": [
                  {
                    "defaultGroup": [
                      "xacml"
                    ]
                  }
                ]
              },
              "createdDate": "2021-06-13T10:54:47.933418Z",
              "updatedDate": "2021-06-13T10:55:41.102546Z",
              "updatedBy": "Not found",
              "createdBy": "Not found"
            }
          ],
          "createdDate": "2021-06-13T14:02:17.142331Z",
          "updatedDate": "2021-06-13T14:02:17.142331Z",
          "updatedBy": "Not found",
          "createdBy": "Not found"
        },
        "flowOrder": 0
      }
    ],
    "modelService": {
      "serviceDetails": {
        "serviceType": "",
        "serviceRole": "",
        "serviceFunction": "",
        "description": "service",
        "type": "Service",
        "instantiationType": "A-la-carte",
        "namingPolicy": "",
        "environmentContext": "General_Revenue-Bearing",
        "name": "basicclamp",
        "invariantUUID": "55cc43d2-abc4-4046-8b32-38c016b4e786",
        "ecompGeneratedNaming": "true",
        "UUID": "94f77a1c-4d86-470a-bc9c-125ae222adfb",
        "category": "Network Service"
      },
      "resourceDetails": {
        "CP": {},
        "VL": {},
        "VF": {
          "basicclamp 0": {
            "resourceVendor": "basiclamp_vendor",
            "name": "basicclamp",
            "description": "VF",
            "invariantUUID": "45c660b8-bc07-4fcd-a0f1-d6a7cd60ac86",
            "UUID": "a2cda4ec-db46-4694-8f14-524ae99e5ffa",
            "category": "Generic",
            "type": "VF",
            "subcategory": "Abstract",
            "version": "1.0",
            "customizationUUID": "e1c140c8-080f-486a-b9c5-ae4d9fff2ead",
            "resourceVendorRelease": "1.0",
            "reourceVendorModelNumber": ""
          }
        },
        "CR": {},
        "VFC": {},
        "PNF": {},
        "Service": {},
        "CVFC": {},
        "Service Proxy": {},
        "Configuration": {},
        "AllottedResource": {},
        "VFModule": {
          "Basicclamp..base_ubuntu18..module-0": {
            "vfModuleModelInvariantUUID": "eab409d0-1d7e-4b5b-80ae-ecb77655c47b",
            "vfModuleModelVersion": "1",
            "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
            "vfModuleModelUUID": "ace01596-65ed-41c4-b77f-a276e15124ac",
            "vfModuleModelCustomizationUUID": "99f59cf2-1fb9-46fc-8332-5bd982b5876b",
            "min_vf_module_instances": 1,
            "vf_module_label": "base_ubuntu18",
            "max_vf_module_instances": 1,
            "vf_module_type": "Base",
            "isBase": true,
            "initial_count": 1,
            "volume_group": false
          }
        }
      }
    },
    "maximumInstancesAllowed": 0,
    "uniqueBlueprint": true,
    "allowedLoopType": "CLOSED",
    "createdDate": "2021-06-13T14:02:17.120585Z",
    "updatedDate": "2021-06-13T14:02:17.120585Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-13T14:05:27.173340Z",
  "updatedDate": "2021-06-13T14:05:27.173340Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-13 14:06:00,017 INFO 55:instantiate_loop.py(1) - ******** CHECK POLICIES SUBMITION *******
2021-06-13 14:06:00,017 INFO 57:instantiate_loop.py(1) - Policies successfully submited to PE
2021-06-13 14:06:00,017 INFO 62:instantiate_loop.py(1) - ******** DEPLOY LOOP INSTANCE *******
2021-06-13 14:06:00,017 DEBUG 103:onap_service.py(1) - [None][Deploy microservice to DCAE] sent header: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:06:00,017 DEBUG 105:onap_service.py(1) - [None][Deploy microservice to DCAE] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/deploy/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F
2021-06-13 14:06:00,018 DEBUG 106:onap_service.py(1) - [None][Deploy microservice to DCAE] data sent: None
2021-06-13 14:06:00,020 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-13 14:07:00,049 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "PUT /restservices/clds/v2/loop/deploy/LOOP_Ainstance_basicclamp0Ginstance_basicclamp0kinstance_basicclamp0hinstance_basicclamp0winstance_basicclamp0F HTTP/1.1" 504 494
2021-06-13 14:07:00,052 INFO 116:onap_service.py(1) - [None][Deploy microservice to DCAE] response code: 504
2021-06-13 14:07:00,052 DEBUG 120:onap_service.py(1) - [None][Deploy microservice to DCAE] response: <!DOCTYPE html>
<html>
<head>
<title>Error</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<h1>An error occurred.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
<p>If you are the system administrator of this resource then you should check
the error log for details.</p>
<p><em>Faithfully yours, nginx.</em></p>
</body>
</html>

2021-06-13 14:07:00,052 ERROR 129:onap_service.py(1) - [None][Deploy microservice to DCAE] API returned and error: {'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Basic ZGVtbzpkZW1vMTIzNDU2IQ==', 'X-ECOMP-InstanceID': 'onapsdk'}
2021-06-13 14:07:00,053 ERROR 44:basic_clamp.py(1) - SDK exception
2021-06-13 14:07:00,053 INFO 176:run_tests.py(1) - Test result:

+---------------------+---------------------+------------------+----------------+
|      TEST CASE      |       PROJECT       |     DURATION     |     RESULT     |
+---------------------+---------------------+------------------+----------------+
|     basic_clamp     |     integration     |      08:11       |      FAIL      |
+---------------------+---------------------+------------------+----------------+

2021-06-13 14:07:00,056 INFO 49:basic_clamp.py(1) - Generate Test report
2021-06-13 14:07:00,155 DEBUG 226:connectionpool.py(1) - Starting new HTTP connection (1): 87.254.212.120:8080
2021-06-13 14:07:00,636 DEBUG 433:connectionpool.py(1) - http://87.254.212.120:8080 "POST http://testresults.opnfv.org/onap/api/v1/results HTTP/1.1" 200 73
2021-06-13 14:07:00,637 INFO 246:testcase.py(1) - The results were successfully pushed to DB: 

http://testresults.opnfv.org/onap/api/v1/results/60c611046c44f5001012193b

2021-06-13 14:07:00,638 ERROR 253:run_tests.py(1) - The test case 'basic_clamp' failed.
2021-06-13 14:07:00,639 INFO 275:run_tests.py(1) - Execution exit value: Result.EX_ERROR