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