Support 7.2.1 VES in TCAGEN2
[dcaegen2/analytics/tca-gen2.git] / dcae-analytics / dcae-analytics-test / src / main / resources / data / json / policy / tca_policy.json
1 [{
2   "domain": "measurementsForVfScaling",
3   "metricsPerEventName": [
4     {
5       "eventName": "Mfvs_eNodeB_RANKPI",
6       "controlLoopSchemaType": "VNF",
7       "policyScope": "resource=vFirewall;type=configuration",
8       "policyName": "configuration.dcae.microservice.tca.xml",
9       "policyVersion": "v0.0.1",
10       "thresholds": [
11         {
12           "closedLoopControlName": "CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8",
13           "closedLoopEventStatus": "ONSET",
14           "version": "1.0.2",
15           "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
16           "thresholdValue": 4000,
17           "direction": "LESS_OR_EQUAL",
18           "severity": "MAJOR"
19         },
20         {
21           "closedLoopControlName": "CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09",
22           "closedLoopEventStatus": "ONSET",
23           "version": "1.0.2",
24           "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
25           "thresholdValue": 20000,
26           "direction": "GREATER_OR_EQUAL",
27           "severity": "CRITICAL"
28         },
29         {
30           "closedLoopControlName": "CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09",
31           "closedLoopEventStatus": "ABATED",
32           "version": "1.0.2",
33           "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
34           "thresholdValue": 0,
35           "direction": "EQUAL",
36           "severity": "CRITICAL"
37         }
38       ]
39     },
40     {
41       "eventName": "vLoadBalancer",
42       "controlLoopSchemaType": "VNF",
43       "policyScope": "resource=vLoadBalancer;type=configuration",
44       "policyName": "configuration.dcae.microservice.tca.xml",
45       "policyVersion": "v0.0.1",
46       "thresholds": [
47         {
48           "closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A",
49           "closedLoopEventStatus": "ONSET",
50           "version": "1.0.2",
51           "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
52           "thresholdValue": 500,
53           "direction": "LESS_OR_EQUAL",
54           "severity": "MAJOR"
55         },
56         {
57           "closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B",
58           "closedLoopEventStatus": "ONSET",
59           "version": "1.0.2",
60           "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
61           "thresholdValue": 5000,
62           "direction": "GREATER_OR_EQUAL",
63           "severity": "CRITICAL"
64         }
65       ]
66     },
67     {
68       "eventName": "virtualVMEventName",
69       "controlLoopSchemaType": "VM",
70       "policyScope": "resource=virtualVM;type=configuration",
71       "policyName": "configuration.dcae.microservice.tca.xml",
72       "policyVersion": "v0.0.1",
73       "thresholds": [
74         {
75           "closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A",
76           "closedLoopEventStatus": "ONSET",
77           "version": "1.0.2",
78           "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
79           "thresholdValue": 500,
80           "direction": "LESS_OR_EQUAL",
81           "severity": "MAJOR"
82         }
83       ]
84     }
85   ]},
86   {
87      "domain": "measurement",
88      "metricsPerEventName": [
89      {
90        "eventName": "vFirewallBroadcastPackets",
91        "controlLoopSchemaType": "VM",
92        "policyScope": "DCAE",
93        "policyName": "DCAE.Config_tca-hi-lo",
94        "policyVersion": "v0.0.1",
95        "thresholds": [
96        {
97            "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
98            "version": "1.0.2",
99            "fieldPath": "$.event.measurementFields.nicPerformanceArray[*].receivedTotalPacketsDelta",
100            "thresholdValue": 300,
101            "direction": "LESS_OR_EQUAL",
102            "severity": "MAJOR",
103            "closedLoopEventStatus": "ABATED"
104        },
105        {                         
106            "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
107            "version": "1.0.2",
108            "fieldPath": "$.event.measurementFields.nicPerformanceArray[*].receivedTotalPacketsDelta",
109            "thresholdValue": 700,
110            "direction": "GREATER_OR_EQUAL",
111            "severity": "CRITICAL",
112            "closedLoopEventStatus": "ONSET"
113        }
114        ]
115      },
116      {
117        "eventName": "vLoadBalancer",
118        "controlLoopSchemaType": "VM",
119        "policyScope": "DCAE",
120        "policyName": "DCAE.Config_tca-hi-lo",
121        "policyVersion": "v0.0.1",
122        "thresholds": [
123        {
124           "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
125           "version": "1.0.2",
126           "fieldPath": "$.event.measurementFields.nicPerformanceArray[*].receivedTotalPacketsDelta",
127           "thresholdValue": 300,
128           "direction": "GREATER_OR_EQUAL",
129           "severity": "CRITICAL",
130           "closedLoopEventStatus": "ONSET"
131        }
132        ]
133      },
134      {
135        "eventName": "Measurement_vGMUX",
136        "controlLoopSchemaType": "VNF",
137        "policyScope": "DCAE",
138        "policyName": "DCAE.Config_tca-hi-lo",
139        "policyVersion": "v0.0.1",
140        "thresholds": [
141        {
142          "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
143          "version": "1.0.2",
144          "fieldPath": "$.event.measurementFields.additionalMeasurements[*].arrayOfFields[0].value",
145          "thresholdValue": 0,
146          "direction": "EQUAL",
147          "severity": "MAJOR",
148          "closedLoopEventStatus": "ABATED"
149        },
150        {
151          "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
152          "version": "1.0.2",
153          "fieldPath": "$.event.measurementFields.additionalMeasurements[*].arrayOfFields[0].value",
154          "thresholdValue": 0,
155          "direction": "GREATER",
156          "severity": "CRITICAL",
157          "closedLoopEventStatus": "ONSET"
158        }
159        ]
160      }
161      ]
162   }
163 ]