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