2021-06-21 14:32:53,547 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-21 14:32:53,548 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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o?templateName=LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice
2021-06-21 14:32:53,548 DEBUG 198:onap_service.py(1) - [None][Create Loop Instance] data sent: None
2021-06-21 14:32:53,548 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-21 14:32:53,548 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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o?templateName=LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice
2021-06-21 14:32:53,548 DEBUG 106:onap_service.py(1) - [None][Create Loop Instance] data sent: None
2021-06-21 14:32:53,551 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-21 14:32:53,730 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "POST /restservices/clds/v2/loop/create/LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o?templateName=LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice HTTP/1.1" 200 None
2021-06-21 14:32:53,731 INFO 116:onap_service.py(1) - [None][Create Loop Instance] response code: 200
2021-06-21 14:32:53,732 DEBUG 120:onap_service.py(1) - [None][Create Loop Instance] response: {
  "name": "LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o",
  "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_6Ml"
      }
    }
  },
  "modelService": {
    "serviceDetails": {
      "serviceType": "",
      "serviceRole": "",
      "serviceFunction": "",
      "description": "service",
      "type": "Service",
      "instantiationType": "A-la-carte",
      "namingPolicy": "",
      "environmentContext": "General_Revenue-Bearing",
      "name": "basicclamp",
      "invariantUUID": "cfea4bd4-ad4d-4451-af75-6244e1bbbd4d",
      "ecompGeneratedNaming": "true",
      "UUID": "d67440d5-23e8-43db-ba58-a40446b4f3b4",
      "category": "Network Service"
    },
    "resourceDetails": {
      "CP": {},
      "VL": {},
      "VF": {
        "basicclamp 0": {
          "resourceVendor": "basiclamp_vendor",
          "name": "basicclamp",
          "description": "VF",
          "invariantUUID": "5bbf28d2-41db-4c30-987f-ed72da9d6b8f",
          "UUID": "e1169e48-88e5-46ef-8717-4151293a241e",
          "category": "Generic",
          "type": "VF",
          "subcategory": "Abstract",
          "version": "1.0",
          "customizationUUID": "9232ecb3-4dd1-4c45-99be-e2d0674c1c49",
          "resourceVendorRelease": "1.0",
          "reourceVendorModelNumber": ""
        }
      },
      "CR": {},
      "VFC": {},
      "PNF": {},
      "Service": {},
      "CVFC": {},
      "Service Proxy": {},
      "Configuration": {},
      "AllottedResource": {},
      "VFModule": {
        "Basicclamp..base_ubuntu18..module-0": {
          "vfModuleModelInvariantUUID": "adec072e-7760-47f0-b94e-8e1d52c006c5",
          "vfModuleModelVersion": "1",
          "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
          "vfModuleModelUUID": "01baa4da-bb3b-4349-b288-cfa50805b04a",
          "vfModuleModelCustomizationUUID": "23301e20-0d02-4b61-a906-4f24045a748f",
          "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_6Ml",
      "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-21T11:05:46.732852Z",
            "updatedDate": "2021-06-21T11:06:31.937966Z",
            "updatedBy": "Not found",
            "createdBy": "Not found"
          }
        ],
        "createdDate": "2021-06-21T14:29:48.516245Z",
        "updatedDate": "2021-06-21T14:29:48.516245Z",
        "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-21T11:05:46.732852Z",
        "updatedDate": "2021-06-21T11:06:31.937966Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.702087Z",
      "updatedDate": "2021-06-21T14:32:53.702087Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "loopLogs": [],
  "loopTemplate": {
    "name": "LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice",
    "dcaeBlueprintId": "03147e0b-5710-4851-ba35-01d293cb238e",
    "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-21T11:05:46.732852Z",
              "updatedDate": "2021-06-21T11:06:31.937966Z",
              "updatedBy": "Not found",
              "createdBy": "Not found"
            }
          ],
          "createdDate": "2021-06-21T14:29:48.516245Z",
          "updatedDate": "2021-06-21T14:29:48.516245Z",
          "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": "cfea4bd4-ad4d-4451-af75-6244e1bbbd4d",
        "ecompGeneratedNaming": "true",
        "UUID": "d67440d5-23e8-43db-ba58-a40446b4f3b4",
        "category": "Network Service"
      },
      "resourceDetails": {
        "CP": {},
        "VL": {},
        "VF": {
          "basicclamp 0": {
            "resourceVendor": "basiclamp_vendor",
            "name": "basicclamp",
            "description": "VF",
            "invariantUUID": "5bbf28d2-41db-4c30-987f-ed72da9d6b8f",
            "UUID": "e1169e48-88e5-46ef-8717-4151293a241e",
            "category": "Generic",
            "type": "VF",
            "subcategory": "Abstract",
            "version": "1.0",
            "customizationUUID": "9232ecb3-4dd1-4c45-99be-e2d0674c1c49",
            "resourceVendorRelease": "1.0",
            "reourceVendorModelNumber": ""
          }
        },
        "CR": {},
        "VFC": {},
        "PNF": {},
        "Service": {},
        "CVFC": {},
        "Service Proxy": {},
        "Configuration": {},
        "AllottedResource": {},
        "VFModule": {
          "Basicclamp..base_ubuntu18..module-0": {
            "vfModuleModelInvariantUUID": "adec072e-7760-47f0-b94e-8e1d52c006c5",
            "vfModuleModelVersion": "1",
            "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
            "vfModuleModelUUID": "01baa4da-bb3b-4349-b288-cfa50805b04a",
            "vfModuleModelCustomizationUUID": "23301e20-0d02-4b61-a906-4f24045a748f",
            "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-21T14:29:48.502877Z",
    "updatedDate": "2021-06-21T14:29:48.502877Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-21T14:32:53.682690Z",
  "updatedDate": "2021-06-21T14:32:53.682690Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-21 14:32:53,736 ERROR 79:instantiate_loop.py(1) - An error occured while creating the loop instance
2021-06-21 14:32:53,736 INFO 26:instantiate_loop.py(1) - ******** ADD OPERATIONAL POLICY MinMax *******
2021-06-21 14:32:53,737 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-21 14:32:53,737 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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o/policyModel/onap.policies.controlloop.guard.common.MinMax/1.0.0
2021-06-21 14:32:53,737 DEBUG 198:onap_service.py(1) - [None][Create Operational Policy] data sent: None
2021-06-21 14:32:53,737 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-21 14:32:53,737 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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o/policyModel/onap.policies.controlloop.guard.common.MinMax/1.0.0
2021-06-21 14:32:53,737 DEBUG 106:onap_service.py(1) - [None][Create Operational Policy] data sent: None
2021-06-21 14:32:53,740 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-21 14:32:53,882 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "PUT /restservices/clds/v2/loop/addOperationaPolicy/LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o/policyModel/onap.policies.controlloop.guard.common.MinMax/1.0.0 HTTP/1.1" 200 None
2021-06-21 14:32:53,884 INFO 116:onap_service.py(1) - [None][Create Operational Policy] response code: 200
2021-06-21 14:32:53,885 DEBUG 120:onap_service.py(1) - [None][Create Operational Policy] response: {
  "name": "LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o",
  "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_6Ml"
      }
    }
  },
  "modelService": {
    "serviceDetails": {
      "serviceType": "",
      "serviceRole": "",
      "serviceFunction": "",
      "description": "service",
      "type": "Service",
      "instantiationType": "A-la-carte",
      "namingPolicy": "",
      "environmentContext": "General_Revenue-Bearing",
      "name": "basicclamp",
      "invariantUUID": "cfea4bd4-ad4d-4451-af75-6244e1bbbd4d",
      "ecompGeneratedNaming": "true",
      "UUID": "d67440d5-23e8-43db-ba58-a40446b4f3b4",
      "category": "Network Service"
    },
    "resourceDetails": {
      "CP": {},
      "VL": {},
      "VF": {
        "basicclamp 0": {
          "resourceVendor": "basiclamp_vendor",
          "name": "basicclamp",
          "description": "VF",
          "invariantUUID": "5bbf28d2-41db-4c30-987f-ed72da9d6b8f",
          "UUID": "e1169e48-88e5-46ef-8717-4151293a241e",
          "category": "Generic",
          "type": "VF",
          "subcategory": "Abstract",
          "version": "1.0",
          "customizationUUID": "9232ecb3-4dd1-4c45-99be-e2d0674c1c49",
          "resourceVendorRelease": "1.0",
          "reourceVendorModelNumber": ""
        }
      },
      "CR": {},
      "VFC": {},
      "PNF": {},
      "Service": {},
      "CVFC": {},
      "Service Proxy": {},
      "Configuration": {},
      "AllottedResource": {},
      "VFModule": {
        "Basicclamp..base_ubuntu18..module-0": {
          "vfModuleModelInvariantUUID": "adec072e-7760-47f0-b94e-8e1d52c006c5",
          "vfModuleModelVersion": "1",
          "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
          "vfModuleModelUUID": "01baa4da-bb3b-4349-b288-cfa50805b04a",
          "vfModuleModelCustomizationUUID": "23301e20-0d02-4b61-a906-4f24045a748f",
          "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_e8A",
      "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-21T11:05:29.731516Z",
        "updatedDate": "2021-06-21T11:06:31.935444Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.843150Z",
      "updatedDate": "2021-06-21T14:32:53.843150Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "microServicePolicies": [
    {
      "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_6Ml",
      "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-21T11:05:46.732852Z",
            "updatedDate": "2021-06-21T11:06:31.937966Z",
            "updatedBy": "Not found",
            "createdBy": "Not found"
          }
        ],
        "createdDate": "2021-06-21T14:29:48.516245Z",
        "updatedDate": "2021-06-21T14:29:48.516245Z",
        "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-21T11:05:46.732852Z",
        "updatedDate": "2021-06-21T11:06:31.937966Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.702087Z",
      "updatedDate": "2021-06-21T14:32:53.702087Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "loopLogs": [],
  "loopTemplate": {
    "name": "LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice",
    "dcaeBlueprintId": "03147e0b-5710-4851-ba35-01d293cb238e",
    "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-21T11:05:46.732852Z",
              "updatedDate": "2021-06-21T11:06:31.937966Z",
              "updatedBy": "Not found",
              "createdBy": "Not found"
            }
          ],
          "createdDate": "2021-06-21T14:29:48.516245Z",
          "updatedDate": "2021-06-21T14:29:48.516245Z",
          "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": "cfea4bd4-ad4d-4451-af75-6244e1bbbd4d",
        "ecompGeneratedNaming": "true",
        "UUID": "d67440d5-23e8-43db-ba58-a40446b4f3b4",
        "category": "Network Service"
      },
      "resourceDetails": {
        "CP": {},
        "VL": {},
        "VF": {
          "basicclamp 0": {
            "resourceVendor": "basiclamp_vendor",
            "name": "basicclamp",
            "description": "VF",
            "invariantUUID": "5bbf28d2-41db-4c30-987f-ed72da9d6b8f",
            "UUID": "e1169e48-88e5-46ef-8717-4151293a241e",
            "category": "Generic",
            "type": "VF",
            "subcategory": "Abstract",
            "version": "1.0",
            "customizationUUID": "9232ecb3-4dd1-4c45-99be-e2d0674c1c49",
            "resourceVendorRelease": "1.0",
            "reourceVendorModelNumber": ""
          }
        },
        "CR": {},
        "VFC": {},
        "PNF": {},
        "Service": {},
        "CVFC": {},
        "Service Proxy": {},
        "Configuration": {},
        "AllottedResource": {},
        "VFModule": {
          "Basicclamp..base_ubuntu18..module-0": {
            "vfModuleModelInvariantUUID": "adec072e-7760-47f0-b94e-8e1d52c006c5",
            "vfModuleModelVersion": "1",
            "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
            "vfModuleModelUUID": "01baa4da-bb3b-4349-b288-cfa50805b04a",
            "vfModuleModelCustomizationUUID": "23301e20-0d02-4b61-a906-4f24045a748f",
            "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-21T14:29:48.502877Z",
    "updatedDate": "2021-06-21T14:29:48.502877Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-21T14:32:53.682690Z",
  "updatedDate": "2021-06-21T14:32:53.682690Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-21 14:32:53,888 ERROR 30:instantiate_loop.py(1) - an error occured while adding an operational policy
2021-06-21 14:32:53,889 INFO 31:instantiate_loop.py(1) - ADD OPERATION SUCCESSFULY DONE
2021-06-21 14:32:53,889 INFO 26:instantiate_loop.py(1) - ******** ADD OPERATIONAL POLICY FrequencyLimiter *******
2021-06-21 14:32:53,889 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-21 14:32:53,889 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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o/policyModel/onap.policies.controlloop.guard.common.FrequencyLimiter/1.0.0
2021-06-21 14:32:53,889 DEBUG 198:onap_service.py(1) - [None][Create Operational Policy] data sent: None
2021-06-21 14:32:53,889 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-21 14:32:53,890 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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o/policyModel/onap.policies.controlloop.guard.common.FrequencyLimiter/1.0.0
2021-06-21 14:32:53,890 DEBUG 106:onap_service.py(1) - [None][Create Operational Policy] data sent: None
2021-06-21 14:32:53,892 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-21 14:32:54,017 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "PUT /restservices/clds/v2/loop/addOperationaPolicy/LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o/policyModel/onap.policies.controlloop.guard.common.FrequencyLimiter/1.0.0 HTTP/1.1" 200 None
2021-06-21 14:32:54,018 INFO 116:onap_service.py(1) - [None][Create Operational Policy] response code: 200
2021-06-21 14:32:54,019 DEBUG 120:onap_service.py(1) - [None][Create Operational Policy] response: {
  "name": "LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o",
  "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_6Ml"
      }
    }
  },
  "modelService": {
    "serviceDetails": {
      "serviceType": "",
      "serviceRole": "",
      "serviceFunction": "",
      "description": "service",
      "type": "Service",
      "instantiationType": "A-la-carte",
      "namingPolicy": "",
      "environmentContext": "General_Revenue-Bearing",
      "name": "basicclamp",
      "invariantUUID": "cfea4bd4-ad4d-4451-af75-6244e1bbbd4d",
      "ecompGeneratedNaming": "true",
      "UUID": "d67440d5-23e8-43db-ba58-a40446b4f3b4",
      "category": "Network Service"
    },
    "resourceDetails": {
      "CP": {},
      "VL": {},
      "VF": {
        "basicclamp 0": {
          "resourceVendor": "basiclamp_vendor",
          "name": "basicclamp",
          "description": "VF",
          "invariantUUID": "5bbf28d2-41db-4c30-987f-ed72da9d6b8f",
          "UUID": "e1169e48-88e5-46ef-8717-4151293a241e",
          "category": "Generic",
          "type": "VF",
          "subcategory": "Abstract",
          "version": "1.0",
          "customizationUUID": "9232ecb3-4dd1-4c45-99be-e2d0674c1c49",
          "resourceVendorRelease": "1.0",
          "reourceVendorModelNumber": ""
        }
      },
      "CR": {},
      "VFC": {},
      "PNF": {},
      "Service": {},
      "CVFC": {},
      "Service Proxy": {},
      "Configuration": {},
      "AllottedResource": {},
      "VFModule": {
        "Basicclamp..base_ubuntu18..module-0": {
          "vfModuleModelInvariantUUID": "adec072e-7760-47f0-b94e-8e1d52c006c5",
          "vfModuleModelVersion": "1",
          "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
          "vfModuleModelUUID": "01baa4da-bb3b-4349-b288-cfa50805b04a",
          "vfModuleModelCustomizationUUID": "23301e20-0d02-4b61-a906-4f24045a748f",
          "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_e8A",
      "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-21T11:05:29.731516Z",
        "updatedDate": "2021-06-21T11:06:31.935444Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.843150Z",
      "updatedDate": "2021-06-21T14:32:53.843150Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    },
    {
      "name": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_Jci",
      "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-21T11:05:23.729882Z",
        "updatedDate": "2021-06-21T11:06:31.935175Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.980282Z",
      "updatedDate": "2021-06-21T14:32:53.980282Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "microServicePolicies": [
    {
      "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_6Ml",
      "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-21T11:05:46.732852Z",
            "updatedDate": "2021-06-21T11:06:31.937966Z",
            "updatedBy": "Not found",
            "createdBy": "Not found"
          }
        ],
        "createdDate": "2021-06-21T14:29:48.516245Z",
        "updatedDate": "2021-06-21T14:29:48.516245Z",
        "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-21T11:05:46.732852Z",
        "updatedDate": "2021-06-21T11:06:31.937966Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.702087Z",
      "updatedDate": "2021-06-21T14:32:53.702087Z",
      "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-21T14:32:53Z"
    }
  ],
  "loopTemplate": {
    "name": "LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice",
    "dcaeBlueprintId": "03147e0b-5710-4851-ba35-01d293cb238e",
    "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-21T11:05:46.732852Z",
              "updatedDate": "2021-06-21T11:06:31.937966Z",
              "updatedBy": "Not found",
              "createdBy": "Not found"
            }
          ],
          "createdDate": "2021-06-21T14:29:48.516245Z",
          "updatedDate": "2021-06-21T14:29:48.516245Z",
          "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": "cfea4bd4-ad4d-4451-af75-6244e1bbbd4d",
        "ecompGeneratedNaming": "true",
        "UUID": "d67440d5-23e8-43db-ba58-a40446b4f3b4",
        "category": "Network Service"
      },
      "resourceDetails": {
        "CP": {},
        "VL": {},
        "VF": {
          "basicclamp 0": {
            "resourceVendor": "basiclamp_vendor",
            "name": "basicclamp",
            "description": "VF",
            "invariantUUID": "5bbf28d2-41db-4c30-987f-ed72da9d6b8f",
            "UUID": "e1169e48-88e5-46ef-8717-4151293a241e",
            "category": "Generic",
            "type": "VF",
            "subcategory": "Abstract",
            "version": "1.0",
            "customizationUUID": "9232ecb3-4dd1-4c45-99be-e2d0674c1c49",
            "resourceVendorRelease": "1.0",
            "reourceVendorModelNumber": ""
          }
        },
        "CR": {},
        "VFC": {},
        "PNF": {},
        "Service": {},
        "CVFC": {},
        "Service Proxy": {},
        "Configuration": {},
        "AllottedResource": {},
        "VFModule": {
          "Basicclamp..base_ubuntu18..module-0": {
            "vfModuleModelInvariantUUID": "adec072e-7760-47f0-b94e-8e1d52c006c5",
            "vfModuleModelVersion": "1",
            "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
            "vfModuleModelUUID": "01baa4da-bb3b-4349-b288-cfa50805b04a",
            "vfModuleModelCustomizationUUID": "23301e20-0d02-4b61-a906-4f24045a748f",
            "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-21T14:29:48.502877Z",
    "updatedDate": "2021-06-21T14:29:48.502877Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-21T14:32:53.682690Z",
  "updatedDate": "2021-06-21T14:32:53.682690Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-21 14:32:54,021 ERROR 30:instantiate_loop.py(1) - an error occured while adding an operational policy
2021-06-21 14:32:54,021 INFO 31:instantiate_loop.py(1) - ADD OPERATION SUCCESSFULY DONE
2021-06-21 14:32:54,021 INFO 36:instantiate_loop.py(1) - ******** UPDATE MICROSERVICE POLICY *******
2021-06-21 14:32:54,022 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-21 14:32:54,022 DEBUG 197:onap_service.py(1) - [None][Get loop details] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o
2021-06-21 14:32:54,022 DEBUG 198:onap_service.py(1) - [None][Get loop details] data sent: None
2021-06-21 14:32:54,023 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-21 14:32:54,023 DEBUG 105:onap_service.py(1) - [None][Get loop details] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o
2021-06-21 14:32:54,023 DEBUG 106:onap_service.py(1) - [None][Get loop details] data sent: None
2021-06-21 14:32:54,024 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-21 14:32:54,084 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "GET /restservices/clds/v2/loop/LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o HTTP/1.1" 200 None
2021-06-21 14:32:54,085 INFO 116:onap_service.py(1) - [None][Get loop details] response code: 200
2021-06-21 14:32:54,086 DEBUG 120:onap_service.py(1) - [None][Get loop details] response: {
  "name": "LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o",
  "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_6Ml"
      }
    }
  },
  "modelService": {
    "serviceDetails": {
      "serviceType": "",
      "serviceRole": "",
      "serviceFunction": "",
      "description": "service",
      "type": "Service",
      "instantiationType": "A-la-carte",
      "namingPolicy": "",
      "environmentContext": "General_Revenue-Bearing",
      "name": "basicclamp",
      "invariantUUID": "cfea4bd4-ad4d-4451-af75-6244e1bbbd4d",
      "ecompGeneratedNaming": "true",
      "UUID": "d67440d5-23e8-43db-ba58-a40446b4f3b4",
      "category": "Network Service"
    },
    "resourceDetails": {
      "CP": {},
      "VL": {},
      "VF": {
        "basicclamp 0": {
          "resourceVendor": "basiclamp_vendor",
          "name": "basicclamp",
          "description": "VF",
          "invariantUUID": "5bbf28d2-41db-4c30-987f-ed72da9d6b8f",
          "UUID": "e1169e48-88e5-46ef-8717-4151293a241e",
          "category": "Generic",
          "type": "VF",
          "subcategory": "Abstract",
          "version": "1.0",
          "customizationUUID": "9232ecb3-4dd1-4c45-99be-e2d0674c1c49",
          "resourceVendorRelease": "1.0",
          "reourceVendorModelNumber": ""
        }
      },
      "CR": {},
      "VFC": {},
      "PNF": {},
      "Service": {},
      "CVFC": {},
      "Service Proxy": {},
      "Configuration": {},
      "AllottedResource": {},
      "VFModule": {
        "Basicclamp..base_ubuntu18..module-0": {
          "vfModuleModelInvariantUUID": "adec072e-7760-47f0-b94e-8e1d52c006c5",
          "vfModuleModelVersion": "1",
          "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
          "vfModuleModelUUID": "01baa4da-bb3b-4349-b288-cfa50805b04a",
          "vfModuleModelCustomizationUUID": "23301e20-0d02-4b61-a906-4f24045a748f",
          "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_e8A",
      "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-21T11:05:29.731516Z",
        "updatedDate": "2021-06-21T11:06:31.935444Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.843150Z",
      "updatedDate": "2021-06-21T14:32:53.843150Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    },
    {
      "name": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_Jci",
      "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-21T11:05:23.729882Z",
        "updatedDate": "2021-06-21T11:06:31.935175Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.980282Z",
      "updatedDate": "2021-06-21T14:32:53.980282Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "microServicePolicies": [
    {
      "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_6Ml",
      "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-21T11:05:46.732852Z",
            "updatedDate": "2021-06-21T11:06:31.937966Z",
            "updatedBy": "Not found",
            "createdBy": "Not found"
          }
        ],
        "createdDate": "2021-06-21T14:29:48.516245Z",
        "updatedDate": "2021-06-21T14:29:48.516245Z",
        "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-21T11:05:46.732852Z",
        "updatedDate": "2021-06-21T11:06:31.937966Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.702087Z",
      "updatedDate": "2021-06-21T14:32:53.702087Z",
      "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-21T14:32:54Z"
    },
    {
      "id": 1,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-21T14:32:53Z"
    }
  ],
  "loopTemplate": {
    "name": "LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice",
    "dcaeBlueprintId": "03147e0b-5710-4851-ba35-01d293cb238e",
    "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-21T11:05:46.732852Z",
              "updatedDate": "2021-06-21T11:06:31.937966Z",
              "updatedBy": "Not found",
              "createdBy": "Not found"
            }
          ],
          "createdDate": "2021-06-21T14:29:48.516245Z",
          "updatedDate": "2021-06-21T14:29:48.516245Z",
          "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": "cfea4bd4-ad4d-4451-af75-6244e1bbbd4d",
        "ecompGeneratedNaming": "true",
        "UUID": "d67440d5-23e8-43db-ba58-a40446b4f3b4",
        "category": "Network Service"
      },
      "resourceDetails": {
        "CP": {},
        "VL": {},
        "VF": {
          "basicclamp 0": {
            "resourceVendor": "basiclamp_vendor",
            "name": "basicclamp",
            "description": "VF",
            "invariantUUID": "5bbf28d2-41db-4c30-987f-ed72da9d6b8f",
            "UUID": "e1169e48-88e5-46ef-8717-4151293a241e",
            "category": "Generic",
            "type": "VF",
            "subcategory": "Abstract",
            "version": "1.0",
            "customizationUUID": "9232ecb3-4dd1-4c45-99be-e2d0674c1c49",
            "resourceVendorRelease": "1.0",
            "reourceVendorModelNumber": ""
          }
        },
        "CR": {},
        "VFC": {},
        "PNF": {},
        "Service": {},
        "CVFC": {},
        "Service Proxy": {},
        "Configuration": {},
        "AllottedResource": {},
        "VFModule": {
          "Basicclamp..base_ubuntu18..module-0": {
            "vfModuleModelInvariantUUID": "adec072e-7760-47f0-b94e-8e1d52c006c5",
            "vfModuleModelVersion": "1",
            "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
            "vfModuleModelUUID": "01baa4da-bb3b-4349-b288-cfa50805b04a",
            "vfModuleModelCustomizationUUID": "23301e20-0d02-4b61-a906-4f24045a748f",
            "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-21T14:29:48.502877Z",
    "updatedDate": "2021-06-21T14:29:48.502877Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-21T14:32:53.682690Z",
  "updatedDate": "2021-06-21T14:32:53.682690Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-21 14:32:54,094 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-21 14:32:54,094 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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o
2021-06-21 14:32:54,095 DEBUG 106:onap_service.py(1) - [None][ADD TCA config] data sent: {
  "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_6Ml",
  "configurationsJson": {
    "tca.policy": {
      "domain": "measurementsForVfScaling",
      "metricsPerEventName": [
        {
          "policyScope": "DCAE",
          "thresholds": [
            {
              "version": "1.0.2",
              "severity": "MAJOR",
              "thresholdValue": 200,
              "closedLoopEventStatus": "ONSET",
              "closedLoopControlName": "LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o",
              "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-21 14:32:54,096 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-21 14:32:54,574 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "POST /restservices/clds/v2/loop/updateMicroservicePolicy/LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o HTTP/1.1" 200 None
2021-06-21 14:32:54,575 INFO 116:onap_service.py(1) - [None][ADD TCA config] response code: 200
2021-06-21 14:32:54,576 DEBUG 120:onap_service.py(1) - [None][ADD TCA config] response: {
  "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_6Ml",
  "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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o",
              "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-21T11:05:46.732852Z",
        "updatedDate": "2021-06-21T11:06:31.937966Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      }
    ],
    "createdDate": "2021-06-21T14:29:48.516245Z",
    "updatedDate": "2021-06-21T14:29:48.516245Z",
    "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-21T11:05:46.732852Z",
    "updatedDate": "2021-06-21T11:06:31.937966Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-21T14:32:53.702087Z",
  "updatedDate": "2021-06-21T14:32:54.551534Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-21 14:32:54,578 INFO 39:instantiate_loop.py(1) - ******** UPDATE OPERATIONAL POLICIES CONFIG *******
2021-06-21 14:32:54,581 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-21 14:32:54,581 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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o
2021-06-21 14:32:54,581 DEBUG 106:onap_service.py(1) - [None][ADD operational policy config] data sent: [
  {
    "name": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_e8A",
    "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-21 14:32:54,582 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-21 14:32:54,786 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "POST /restservices/clds/v2/loop/updateOperationalPolicies/LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o HTTP/1.1" 200 None
2021-06-21 14:32:54,787 INFO 116:onap_service.py(1) - [None][ADD operational policy config] response code: 200
2021-06-21 14:32:54,788 DEBUG 120:onap_service.py(1) - [None][ADD operational policy config] response: {
  "name": "LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o",
  "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_6Ml"
      }
    }
  },
  "modelService": {
    "serviceDetails": {
      "serviceType": "",
      "serviceRole": "",
      "serviceFunction": "",
      "description": "service",
      "type": "Service",
      "instantiationType": "A-la-carte",
      "namingPolicy": "",
      "environmentContext": "General_Revenue-Bearing",
      "name": "basicclamp",
      "invariantUUID": "cfea4bd4-ad4d-4451-af75-6244e1bbbd4d",
      "ecompGeneratedNaming": "true",
      "UUID": "d67440d5-23e8-43db-ba58-a40446b4f3b4",
      "category": "Network Service"
    },
    "resourceDetails": {
      "CP": {},
      "VL": {},
      "VF": {
        "basicclamp 0": {
          "resourceVendor": "basiclamp_vendor",
          "name": "basicclamp",
          "description": "VF",
          "invariantUUID": "5bbf28d2-41db-4c30-987f-ed72da9d6b8f",
          "UUID": "e1169e48-88e5-46ef-8717-4151293a241e",
          "category": "Generic",
          "type": "VF",
          "subcategory": "Abstract",
          "version": "1.0",
          "customizationUUID": "9232ecb3-4dd1-4c45-99be-e2d0674c1c49",
          "resourceVendorRelease": "1.0",
          "reourceVendorModelNumber": ""
        }
      },
      "CR": {},
      "VFC": {},
      "PNF": {},
      "Service": {},
      "CVFC": {},
      "Service Proxy": {},
      "Configuration": {},
      "AllottedResource": {},
      "VFModule": {
        "Basicclamp..base_ubuntu18..module-0": {
          "vfModuleModelInvariantUUID": "adec072e-7760-47f0-b94e-8e1d52c006c5",
          "vfModuleModelVersion": "1",
          "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
          "vfModuleModelUUID": "01baa4da-bb3b-4349-b288-cfa50805b04a",
          "vfModuleModelCustomizationUUID": "23301e20-0d02-4b61-a906-4f24045a748f",
          "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_e8A",
      "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-21T11:05:29.731516Z",
        "updatedDate": "2021-06-21T11:06:31.935444Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.843150Z",
      "updatedDate": "2021-06-21T14:32:54.741330Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "microServicePolicies": [
    {
      "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_6Ml",
      "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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o",
                  "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-21T11:05:46.732852Z",
            "updatedDate": "2021-06-21T11:06:31.937966Z",
            "updatedBy": "Not found",
            "createdBy": "Not found"
          }
        ],
        "createdDate": "2021-06-21T14:29:48.516245Z",
        "updatedDate": "2021-06-21T14:29:48.516245Z",
        "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-21T11:05:46.732852Z",
        "updatedDate": "2021-06-21T11:06:31.937966Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.702087Z",
      "updatedDate": "2021-06-21T14:32:54.551534Z",
      "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-21T14:32:54Z"
    },
    {
      "id": 2,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-21T14:32:54Z"
    },
    {
      "id": 1,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-21T14:32:53Z"
    }
  ],
  "loopTemplate": {
    "name": "LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice",
    "dcaeBlueprintId": "03147e0b-5710-4851-ba35-01d293cb238e",
    "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-21T11:05:46.732852Z",
              "updatedDate": "2021-06-21T11:06:31.937966Z",
              "updatedBy": "Not found",
              "createdBy": "Not found"
            }
          ],
          "createdDate": "2021-06-21T14:29:48.516245Z",
          "updatedDate": "2021-06-21T14:29:48.516245Z",
          "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": "cfea4bd4-ad4d-4451-af75-6244e1bbbd4d",
        "ecompGeneratedNaming": "true",
        "UUID": "d67440d5-23e8-43db-ba58-a40446b4f3b4",
        "category": "Network Service"
      },
      "resourceDetails": {
        "CP": {},
        "VL": {},
        "VF": {
          "basicclamp 0": {
            "resourceVendor": "basiclamp_vendor",
            "name": "basicclamp",
            "description": "VF",
            "invariantUUID": "5bbf28d2-41db-4c30-987f-ed72da9d6b8f",
            "UUID": "e1169e48-88e5-46ef-8717-4151293a241e",
            "category": "Generic",
            "type": "VF",
            "subcategory": "Abstract",
            "version": "1.0",
            "customizationUUID": "9232ecb3-4dd1-4c45-99be-e2d0674c1c49",
            "resourceVendorRelease": "1.0",
            "reourceVendorModelNumber": ""
          }
        },
        "CR": {},
        "VFC": {},
        "PNF": {},
        "Service": {},
        "CVFC": {},
        "Service Proxy": {},
        "Configuration": {},
        "AllottedResource": {},
        "VFModule": {
          "Basicclamp..base_ubuntu18..module-0": {
            "vfModuleModelInvariantUUID": "adec072e-7760-47f0-b94e-8e1d52c006c5",
            "vfModuleModelVersion": "1",
            "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
            "vfModuleModelUUID": "01baa4da-bb3b-4349-b288-cfa50805b04a",
            "vfModuleModelCustomizationUUID": "23301e20-0d02-4b61-a906-4f24045a748f",
            "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-21T14:29:48.502877Z",
    "updatedDate": "2021-06-21T14:29:48.502877Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-21T14:32:53.682690Z",
  "updatedDate": "2021-06-21T14:32:53.682690Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-21 14:32:54,790 INFO 267:loop_instance.py(1) - Files for op policy config LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o have been uploaded to loop'sOp policy
2021-06-21 14:32:54,794 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-21 14:32:54,795 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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o
2021-06-21 14:32:54,795 DEBUG 106:onap_service.py(1) - [None][ADD operational policy config] data sent: [
  {
    "name": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_e8A",
    "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_Jci",
    "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-21 14:32:54,796 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-21 14:32:54,900 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "POST /restservices/clds/v2/loop/updateOperationalPolicies/LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o HTTP/1.1" 200 None
2021-06-21 14:32:54,901 INFO 116:onap_service.py(1) - [None][ADD operational policy config] response code: 200
2021-06-21 14:32:54,902 DEBUG 120:onap_service.py(1) - [None][ADD operational policy config] response: {
  "name": "LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o",
  "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_6Ml"
      }
    }
  },
  "modelService": {
    "serviceDetails": {
      "serviceType": "",
      "serviceRole": "",
      "serviceFunction": "",
      "description": "service",
      "type": "Service",
      "instantiationType": "A-la-carte",
      "namingPolicy": "",
      "environmentContext": "General_Revenue-Bearing",
      "name": "basicclamp",
      "invariantUUID": "cfea4bd4-ad4d-4451-af75-6244e1bbbd4d",
      "ecompGeneratedNaming": "true",
      "UUID": "d67440d5-23e8-43db-ba58-a40446b4f3b4",
      "category": "Network Service"
    },
    "resourceDetails": {
      "CP": {},
      "VL": {},
      "VF": {
        "basicclamp 0": {
          "resourceVendor": "basiclamp_vendor",
          "name": "basicclamp",
          "description": "VF",
          "invariantUUID": "5bbf28d2-41db-4c30-987f-ed72da9d6b8f",
          "UUID": "e1169e48-88e5-46ef-8717-4151293a241e",
          "category": "Generic",
          "type": "VF",
          "subcategory": "Abstract",
          "version": "1.0",
          "customizationUUID": "9232ecb3-4dd1-4c45-99be-e2d0674c1c49",
          "resourceVendorRelease": "1.0",
          "reourceVendorModelNumber": ""
        }
      },
      "CR": {},
      "VFC": {},
      "PNF": {},
      "Service": {},
      "CVFC": {},
      "Service Proxy": {},
      "Configuration": {},
      "AllottedResource": {},
      "VFModule": {
        "Basicclamp..base_ubuntu18..module-0": {
          "vfModuleModelInvariantUUID": "adec072e-7760-47f0-b94e-8e1d52c006c5",
          "vfModuleModelVersion": "1",
          "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
          "vfModuleModelUUID": "01baa4da-bb3b-4349-b288-cfa50805b04a",
          "vfModuleModelCustomizationUUID": "23301e20-0d02-4b61-a906-4f24045a748f",
          "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_e8A",
      "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-21T11:05:29.731516Z",
        "updatedDate": "2021-06-21T11:06:31.935444Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.843150Z",
      "updatedDate": "2021-06-21T14:32:54.741330Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    },
    {
      "name": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_Jci",
      "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-21T11:05:23.729882Z",
        "updatedDate": "2021-06-21T11:06:31.935175Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:54.878039Z",
      "updatedDate": "2021-06-21T14:32:54.878039Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "microServicePolicies": [
    {
      "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_6Ml",
      "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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o",
                  "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-21T11:05:46.732852Z",
            "updatedDate": "2021-06-21T11:06:31.937966Z",
            "updatedBy": "Not found",
            "createdBy": "Not found"
          }
        ],
        "createdDate": "2021-06-21T14:29:48.516245Z",
        "updatedDate": "2021-06-21T14:29:48.516245Z",
        "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-21T11:05:46.732852Z",
        "updatedDate": "2021-06-21T11:06:31.937966Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.702087Z",
      "updatedDate": "2021-06-21T14:32:54.551534Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "loopLogs": [
    {
      "id": 4,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "Operational policies UPDATED",
      "logInstant": "2021-06-21T14:32:54Z"
    },
    {
      "id": 3,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "Micro Service policies UPDATED",
      "logInstant": "2021-06-21T14:32:54Z"
    },
    {
      "id": 2,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-21T14:32:54Z"
    },
    {
      "id": 1,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-21T14:32:53Z"
    }
  ],
  "loopTemplate": {
    "name": "LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice",
    "dcaeBlueprintId": "03147e0b-5710-4851-ba35-01d293cb238e",
    "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-21T11:05:46.732852Z",
              "updatedDate": "2021-06-21T11:06:31.937966Z",
              "updatedBy": "Not found",
              "createdBy": "Not found"
            }
          ],
          "createdDate": "2021-06-21T14:29:48.516245Z",
          "updatedDate": "2021-06-21T14:29:48.516245Z",
          "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": "cfea4bd4-ad4d-4451-af75-6244e1bbbd4d",
        "ecompGeneratedNaming": "true",
        "UUID": "d67440d5-23e8-43db-ba58-a40446b4f3b4",
        "category": "Network Service"
      },
      "resourceDetails": {
        "CP": {},
        "VL": {},
        "VF": {
          "basicclamp 0": {
            "resourceVendor": "basiclamp_vendor",
            "name": "basicclamp",
            "description": "VF",
            "invariantUUID": "5bbf28d2-41db-4c30-987f-ed72da9d6b8f",
            "UUID": "e1169e48-88e5-46ef-8717-4151293a241e",
            "category": "Generic",
            "type": "VF",
            "subcategory": "Abstract",
            "version": "1.0",
            "customizationUUID": "9232ecb3-4dd1-4c45-99be-e2d0674c1c49",
            "resourceVendorRelease": "1.0",
            "reourceVendorModelNumber": ""
          }
        },
        "CR": {},
        "VFC": {},
        "PNF": {},
        "Service": {},
        "CVFC": {},
        "Service Proxy": {},
        "Configuration": {},
        "AllottedResource": {},
        "VFModule": {
          "Basicclamp..base_ubuntu18..module-0": {
            "vfModuleModelInvariantUUID": "adec072e-7760-47f0-b94e-8e1d52c006c5",
            "vfModuleModelVersion": "1",
            "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
            "vfModuleModelUUID": "01baa4da-bb3b-4349-b288-cfa50805b04a",
            "vfModuleModelCustomizationUUID": "23301e20-0d02-4b61-a906-4f24045a748f",
            "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-21T14:29:48.502877Z",
    "updatedDate": "2021-06-21T14:29:48.502877Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-21T14:32:53.682690Z",
  "updatedDate": "2021-06-21T14:32:53.682690Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-21 14:32:54,904 INFO 267:loop_instance.py(1) - Files for op policy config LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o have been uploaded to loop'sOp policy
2021-06-21 14:32:54,904 INFO 49:instantiate_loop.py(1) - Policies are well configured
2021-06-21 14:32:54,904 INFO 53:instantiate_loop.py(1) - ******** SUBMIT POLICIES TO PE *******
2021-06-21 14:32:54,905 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-21 14:32:54,905 DEBUG 105:onap_service.py(1) - [None][submit policy] url used: https://clamp.api.simpledemo.onap.org:30258/restservices/clds/v2/loop/submit/LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o
2021-06-21 14:32:54,905 DEBUG 106:onap_service.py(1) - [None][submit policy] data sent: None
2021-06-21 14:32:54,906 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-21 14:33:14,569 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "PUT /restservices/clds/v2/loop/submit/LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o HTTP/1.1" 202 None
2021-06-21 14:33:14,571 INFO 116:onap_service.py(1) - [None][submit policy] response code: 202
2021-06-21 14:33:14,571 DEBUG 120:onap_service.py(1) - [None][submit policy] response: {}
2021-06-21 14:33:14,574 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-21 14:33:14,574 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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o
2021-06-21 14:33:14,574 DEBUG 198:onap_service.py(1) - [None][Get loop status] data sent: None
2021-06-21 14:33:14,574 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-21 14:33:14,574 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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o
2021-06-21 14:33:14,574 DEBUG 106:onap_service.py(1) - [None][Get loop status] data sent: None
2021-06-21 14:33:14,576 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-21 14:33:25,745 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "GET /restservices/clds/v2/loop/getstatus/LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o HTTP/1.1" 200 None
2021-06-21 14:33:25,746 INFO 116:onap_service.py(1) - [None][Get loop status] response code: 200
2021-06-21 14:33:25,747 DEBUG 120:onap_service.py(1) - [None][Get loop status] response: {
  "name": "LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o",
  "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_6Ml"
      }
    }
  },
  "modelService": {
    "serviceDetails": {
      "serviceType": "",
      "serviceRole": "",
      "serviceFunction": "",
      "description": "service",
      "type": "Service",
      "instantiationType": "A-la-carte",
      "namingPolicy": "",
      "environmentContext": "General_Revenue-Bearing",
      "name": "basicclamp",
      "invariantUUID": "cfea4bd4-ad4d-4451-af75-6244e1bbbd4d",
      "ecompGeneratedNaming": "true",
      "UUID": "d67440d5-23e8-43db-ba58-a40446b4f3b4",
      "category": "Network Service"
    },
    "resourceDetails": {
      "CP": {},
      "VL": {},
      "VF": {
        "basicclamp 0": {
          "resourceVendor": "basiclamp_vendor",
          "name": "basicclamp",
          "description": "VF",
          "invariantUUID": "5bbf28d2-41db-4c30-987f-ed72da9d6b8f",
          "UUID": "e1169e48-88e5-46ef-8717-4151293a241e",
          "category": "Generic",
          "type": "VF",
          "subcategory": "Abstract",
          "version": "1.0",
          "customizationUUID": "9232ecb3-4dd1-4c45-99be-e2d0674c1c49",
          "resourceVendorRelease": "1.0",
          "reourceVendorModelNumber": ""
        }
      },
      "CR": {},
      "VFC": {},
      "PNF": {},
      "Service": {},
      "CVFC": {},
      "Service Proxy": {},
      "Configuration": {},
      "AllottedResource": {},
      "VFModule": {
        "Basicclamp..base_ubuntu18..module-0": {
          "vfModuleModelInvariantUUID": "adec072e-7760-47f0-b94e-8e1d52c006c5",
          "vfModuleModelVersion": "1",
          "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
          "vfModuleModelUUID": "01baa4da-bb3b-4349-b288-cfa50805b04a",
          "vfModuleModelCustomizationUUID": "23301e20-0d02-4b61-a906-4f24045a748f",
          "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_e8A",
      "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-21T11:05:29.731516Z",
        "updatedDate": "2021-06-21T11:06:31.935444Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.843150Z",
      "updatedDate": "2021-06-21T14:32:54.741330Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    },
    {
      "name": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_Jci",
      "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-21T11:05:23.729882Z",
        "updatedDate": "2021-06-21T11:06:31.935175Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:54.878039Z",
      "updatedDate": "2021-06-21T14:32:54.878039Z",
      "updatedBy": "demo@people.osaaf.org",
      "createdBy": "demo@people.osaaf.org"
    }
  ],
  "microServicePolicies": [
    {
      "name": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_6Ml",
      "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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o",
                  "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-21T11:05:46.732852Z",
            "updatedDate": "2021-06-21T11:06:31.937966Z",
            "updatedBy": "Not found",
            "createdBy": "Not found"
          }
        ],
        "createdDate": "2021-06-21T14:29:48.516245Z",
        "updatedDate": "2021-06-21T14:29:48.516245Z",
        "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-21T11:05:46.732852Z",
        "updatedDate": "2021-06-21T11:06:31.937966Z",
        "updatedBy": "Not found",
        "createdBy": "Not found"
      },
      "createdDate": "2021-06-21T14:32:53.702087Z",
      "updatedDate": "2021-06-21T14:32:54.551534Z",
      "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-21T14:33:25Z"
    },
    {
      "id": 25,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "New loop state is: SUBMITTED",
      "logInstant": "2021-06-21T14:33:25Z"
    },
    {
      "id": 24,
      "logType": "INFO",
      "logComponent": "DCAE",
      "message": "DCAE state set to: BLUEPRINT_DEPLOYED - message: ",
      "logInstant": "2021-06-21T14:33:25Z"
    },
    {
      "id": 23,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "Policy state set to: SENT_AND_DEPLOYED",
      "logInstant": "2021-06-21T14:33:25Z"
    },
    {
      "id": 22,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_Jci GET Policy deployment\n                        status - 200 : OK",
      "logInstant": "2021-06-21T14:33:24Z"
    },
    {
      "id": 21,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_Jci GET\n                        Policy status - 200 : OK",
      "logInstant": "2021-06-21T14:33:24Z"
    },
    {
      "id": 20,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_e8A GET Policy deployment\n                        status - 200 : OK",
      "logInstant": "2021-06-21T14:33:21Z"
    },
    {
      "id": 19,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_e8A GET\n                        Policy status - 200 : OK",
      "logInstant": "2021-06-21T14:33:21Z"
    },
    {
      "id": 18,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_6Ml GET Policy deployment\n                        status - 200 : OK",
      "logInstant": "2021-06-21T14:33:18Z"
    },
    {
      "id": 17,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_6Ml GET\n                        Policy status - 200 : OK",
      "logInstant": "2021-06-21T14:33:17Z"
    },
    {
      "id": 16,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "GET STATUS request",
      "logInstant": "2021-06-21T14:33:14Z"
    },
    {
      "id": 15,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "SUBMIT request successfully executed",
      "logInstant": "2021-06-21T14:33:14Z"
    },
    {
      "id": 14,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "PDP Group push ALL status - 202 : Accepted",
      "logInstant": "2021-06-21T14:33:14Z"
    },
    {
      "id": 13,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_Jci creation\n                        status - 200 : OK",
      "logInstant": "2021-06-21T14:33:03Z"
    },
    {
      "id": 12,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_FrequencyLimiter_1_0_0_Jci removal\n                        status - 404 : Not Found",
      "logInstant": "2021-06-21T14:33:02Z"
    },
    {
      "id": 11,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_e8A creation\n                        status - 200 : OK",
      "logInstant": "2021-06-21T14:33:01Z"
    },
    {
      "id": 10,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "OPERATIONAL_basicclamp_v1_0_MinMax_1_0_0_e8A removal\n                        status - 404 : Not Found",
      "logInstant": "2021-06-21T14:33:00Z"
    },
    {
      "id": 9,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_6Ml creation\n                        status - 200 : OK",
      "logInstant": "2021-06-21T14:32:59Z"
    },
    {
      "id": 8,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_6Ml removal\n                        status - 404 : Not Found",
      "logInstant": "2021-06-21T14:32:57Z"
    },
    {
      "id": 7,
      "logType": "INFO",
      "logComponent": "POLICY",
      "message": "PDP Group remove ALL status - 400 : Bad Request",
      "logInstant": "2021-06-21T14:32:56Z"
    },
    {
      "id": 6,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "POLICY SUBMIT request",
      "logInstant": "2021-06-21T14:32:54Z"
    },
    {
      "id": 5,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "Operational policies UPDATED",
      "logInstant": "2021-06-21T14:32:54Z"
    },
    {
      "id": 4,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "Operational policies UPDATED",
      "logInstant": "2021-06-21T14:32:54Z"
    },
    {
      "id": 3,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "Micro Service policies UPDATED",
      "logInstant": "2021-06-21T14:32:54Z"
    },
    {
      "id": 2,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-21T14:32:54Z"
    },
    {
      "id": 1,
      "logType": "INFO",
      "logComponent": "CLAMP",
      "message": "ADD OperationalPolicy request successfully executed",
      "logInstant": "2021-06-21T14:32:53Z"
    }
  ],
  "loopTemplate": {
    "name": "LOOP_TEMPLATE_basicclamp_v1_0_basicclamp0_tca-microservice",
    "dcaeBlueprintId": "03147e0b-5710-4851-ba35-01d293cb238e",
    "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-21T11:05:46.732852Z",
              "updatedDate": "2021-06-21T11:06:31.937966Z",
              "updatedBy": "Not found",
              "createdBy": "Not found"
            }
          ],
          "createdDate": "2021-06-21T14:29:48.516245Z",
          "updatedDate": "2021-06-21T14:29:48.516245Z",
          "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": "cfea4bd4-ad4d-4451-af75-6244e1bbbd4d",
        "ecompGeneratedNaming": "true",
        "UUID": "d67440d5-23e8-43db-ba58-a40446b4f3b4",
        "category": "Network Service"
      },
      "resourceDetails": {
        "CP": {},
        "VL": {},
        "VF": {
          "basicclamp 0": {
            "resourceVendor": "basiclamp_vendor",
            "name": "basicclamp",
            "description": "VF",
            "invariantUUID": "5bbf28d2-41db-4c30-987f-ed72da9d6b8f",
            "UUID": "e1169e48-88e5-46ef-8717-4151293a241e",
            "category": "Generic",
            "type": "VF",
            "subcategory": "Abstract",
            "version": "1.0",
            "customizationUUID": "9232ecb3-4dd1-4c45-99be-e2d0674c1c49",
            "resourceVendorRelease": "1.0",
            "reourceVendorModelNumber": ""
          }
        },
        "CR": {},
        "VFC": {},
        "PNF": {},
        "Service": {},
        "CVFC": {},
        "Service Proxy": {},
        "Configuration": {},
        "AllottedResource": {},
        "VFModule": {
          "Basicclamp..base_ubuntu18..module-0": {
            "vfModuleModelInvariantUUID": "adec072e-7760-47f0-b94e-8e1d52c006c5",
            "vfModuleModelVersion": "1",
            "vfModuleModelName": "Basicclamp..base_ubuntu18..module-0",
            "vfModuleModelUUID": "01baa4da-bb3b-4349-b288-cfa50805b04a",
            "vfModuleModelCustomizationUUID": "23301e20-0d02-4b61-a906-4f24045a748f",
            "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-21T14:29:48.502877Z",
    "updatedDate": "2021-06-21T14:29:48.502877Z",
    "updatedBy": "Not found",
    "createdBy": "Not found"
  },
  "createdDate": "2021-06-21T14:32:53.682690Z",
  "updatedDate": "2021-06-21T14:32:53.682690Z",
  "updatedBy": "demo@people.osaaf.org",
  "createdBy": "demo@people.osaaf.org"
}
2021-06-21 14:33:25,756 INFO 55:instantiate_loop.py(1) - ******** CHECK POLICIES SUBMITION *******
2021-06-21 14:33:25,756 INFO 57:instantiate_loop.py(1) - Policies successfully submited to PE
2021-06-21 14:33:25,756 INFO 62:instantiate_loop.py(1) - ******** DEPLOY LOOP INSTANCE *******
2021-06-21 14:33:25,757 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-21 14:33:25,757 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_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o
2021-06-21 14:33:25,757 DEBUG 106:onap_service.py(1) - [None][Deploy microservice to DCAE] data sent: None
2021-06-21 14:33:25,759 DEBUG 939:connectionpool.py(1) - Starting new HTTPS connection (1): clamp.api.simpledemo.onap.org:30258
2021-06-21 14:33:37,555 DEBUG 433:connectionpool.py(1) - https://clamp.api.simpledemo.onap.org:30258 "PUT /restservices/clds/v2/loop/deploy/LOOP_Zinstance_basicclamp0rinstance_basicclamp0binstance_basicclamp0Iinstance_basicclamp0Kinstance_basicclamp0o HTTP/1.1" 500 None
2021-06-21 14:33:37,556 INFO 116:onap_service.py(1) - [None][Deploy microservice to DCAE] response code: 500
2021-06-21 14:33:37,556 DEBUG 120:onap_service.py(1) - [None][Deploy microservice to DCAE] response: org.apache.camel.ExpressionEvaluationException: Cannot create/evaluate simple expression: DEPLOY request failed, Error reported: ${exception} - Body: ${exception.responseBody} to be bound to parameter at index: 0 on method: public void org.onap.policy.clamp.loop.log.LoopLogService.addLog(java.lang.String,java.lang.String,org.onap.policy.clamp.loop.Loop)
	at org.apache.camel.component.bean.MethodInfo$ParameterExpression.evaluateParameterValue(MethodInfo.java:675)
	at org.apache.camel.component.bean.MethodInfo$ParameterExpression.evaluateParameterExpressions(MethodInfo.java:614)
	at org.apache.camel.component.bean.MethodInfo$ParameterExpression.evaluate(MethodInfo.java:587)
	at org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:263)
	at org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:279)
	at org.apache.camel.component.bean.AbstractBeanProcessor.process(AbstractBeanProcessor.java:125)
	at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:68)
	at org.apache.camel.component.bean.BeanProducer.process(BeanProducer.java:41)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:169)
	at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:312)
	at org.apache.camel.processor.Pipeline$PipelineTask.run(Pipeline.java:90)
	at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:148)
	at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:147)
	at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:312)
	at org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:83)
	at org.apache.camel.support.AsyncProcessorSupport.process(AsyncProcessorSupport.java:41)
	at org.apache.camel.http.common.CamelServlet.doExecute(CamelServlet.java:318)
	at org.apache.camel.http.common.CamelServlet.doService(CamelServlet.java:214)
	at org.onap.policy.clamp.clds.ClampServlet.doService(ClampServlet.java:150)
	at org.apache.camel.http.common.CamelServlet.service(CamelServlet.java:130)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.onap.aaf.cadi.filter.SideChain.doFilter(SideChain.java:70)
	at org.onap.aaf.cadi.filter.CadiFilter.doFilter(CadiFilter.java:283)
	at org.onap.policy.clamp.clds.filter.ClampCadiFilter.doFilter(ClampCadiFilter.java:172)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:764)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1707)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.camel.language.bean.RuntimeBeanExpressionException: Failed to invoke method: responseBody on null due to: org.apache.camel.component.bean.MethodNotFoundException: Method with name: responseBody not found on bean: org.apache.http.conn.ConnectTimeoutException: Connect to deployment-handler.onap/10.96.147.202:8443 timed out of type: org.apache.http.conn.ConnectTimeoutException on the exchange: Exchange[A455C539750117D-00000000000000EA]
	at org.apache.camel.language.bean.BeanExpression.invokeOgnlMethod(BeanExpression.java:453)
	at org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:199)
	at org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:214)
	at org.apache.camel.language.simple.SimpleExpressionBuilder$31.evaluate(SimpleExpressionBuilder.java:883)
	at org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:35)
	at org.apache.camel.support.builder.ExpressionBuilder$51.evaluate(ExpressionBuilder.java:1532)
	at org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:35)
	at org.apache.camel.component.bean.MethodInfo$ParameterExpression.evaluateParameterValue(MethodInfo.java:667)
	... 60 more
Caused by: org.apache.camel.component.bean.MethodNotFoundException: Method with name: responseBody not found on bean: org.apache.http.conn.ConnectTimeoutException: Connect to deployment-handler.onap/10.96.147.202:8443 timed out of type: org.apache.http.conn.ConnectTimeoutException on the exchange: Exchange[A455C539750117D-00000000000000EA]
	at org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:265)
	at org.apache.camel.component.bean.AbstractBeanProcessor.process(AbstractBeanProcessor.java:125)
	at org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:83)
	at org.apache.camel.support.AsyncProcessorSupport.process(AsyncProcessorSupport.java:41)
	at org.apache.camel.language.bean.BeanExpression.invokeBean(BeanExpression.java:347)
	at org.apache.camel.language.bean.BeanExpression.invokeOgnlMethod(BeanExpression.java:449)
	... 67 more

2021-06-21 14:33:37,556 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-21 14:33:37,557 ERROR 44:basic_clamp.py(1) - SDK exception
2021-06-21 14:33:37,557 INFO 176:run_tests.py(1) - Test result:

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

2021-06-21 14:33:37,560 INFO 49:basic_clamp.py(1) - Generate Test report
2021-06-21 14:33:37,644 DEBUG 226:connectionpool.py(1) - Starting new HTTP connection (1): 87.254.212.120:8080
2021-06-21 14:33:38,122 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-21 14:33:38,124 INFO 246:testcase.py(1) - The results were successfully pushed to DB: 

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

2021-06-21 14:33:38,124 ERROR 253:run_tests.py(1) - The test case 'basic_clamp' failed.
2021-06-21 14:33:38,124 INFO 275:run_tests.py(1) - Execution exit value: Result.EX_ERROR