Adding 'name' to yamls and json in model
[policy/models.git] / models-examples / src / main / resources / policies / vCPE.policy.monitoring.input.tosca.json
1 {
2     "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
3     "topology_template": {
4         "policies": [
5             {
6                 "onap.restart.tca": {
7                     "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
8                     "type_version": "1.0.0",
9                     "version": "1.0.0",
10                     "name": "onap.restart.tca",
11                     "metadata": {
12                         "policy-id": "onap.restart.tca",
13                         "policy-version": 1
14                     },
15                     "properties": {
16                         "tca_policy" : {
17                             "domain": "measurementsForVfScaling",
18                             "metricsPerEventName": [
19                                 {
20                                     "eventName": "Measurement_vGMUX",
21                                     "controlLoopSchemaType": "VNF",
22                                     "policyScope": "DCAE",
23                                     "policyName": "DCAE.Config_tca-hi-lo",
24                                     "policyVersion": "v0.0.1",
25                                     "thresholds": [
26                                         {
27                                             "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
28                                             "version": "1.0.2",
29                                             "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
30                                             "thresholdValue": 0,
31                                             "direction": "EQUAL",
32                                             "severity": "MAJOR",
33                                             "closedLoopEventStatus": "ABATED"
34                                         },
35                                         {
36                                             "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
37                                             "version": "1.0.2",
38                                             "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
39                                             "thresholdValue": 0,
40                                             "direction": "GREATER",
41                                             "severity": "CRITICAL",
42                                             "closedLoopEventStatus": "ONSET"
43                                         }
44                                     ]
45                                 }
46                             ]
47                         }
48                     }
49                 }
50             }
51         ]
52     }
53 }