Update to new tcagen2 policy type
[integration/csit.git] / tests / policy / api / data / vCPE.policy.monitoring.input.tosca.v1_2.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.tcagen2",
8                     "version": "1.0.0",
9                     "type_version": "1.0.0",
10                     "description": "monitoring policy",
11                     "metadata": {
12                         "policy-id": "onap.restart.tca"
13                     },
14                     "properties": {
15                         "tca.policy" : {
16                             "domain": "measurementsForVfScaling",
17                             "metricsPerEventName": [
18                                 {
19                                     "eventName": "Measurement_vGMUX",
20                                     "controlLoopSchemaType": "VNF",
21                                     "policyScope": "DCAE",
22                                     "policyName": "DCAE.Config_tca-hi-lo",
23                                     "policyVersion": "v0.0.1",
24                                     "thresholds": [
25                                         {
26                                             "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
27                                             "version": "1.0.2",
28                                             "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
29                                             "thresholdValue": 0,
30                                             "direction": "EQUAL",
31                                             "severity": "MAJOR",
32                                             "closedLoopEventStatus": "ABATED"
33                                         },
34                                         {
35                                             "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
36                                             "version": "1.0.2",
37                                             "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
38                                             "thresholdValue": 0,
39                                             "direction": "GREATER",
40                                             "severity": "CRITICAL",
41                                             "closedLoopEventStatus": "ONSET"
42                                         }
43                                     ]
44                                 }
45                             ]
46                         }
47                     }
48                 }
49             }
50         ]
51     }
52 }