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