Merge "Add persistence test for all policy examples"
[policy/models.git] / models-examples / src / main / resources / policies / vFirewall.policy.monitoring.input.tosca.json
1 {
2         "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
3         "topology_template": {
4                 "policies": [
5                         {
6                                 "onap.vfirewall.tca": {
7                                         "type": "onap.policy.monitoring.cdap.tca.hi.lo.app",
8                                         "version": "1.0.0",
9                     "metadata": {
10                         "policy-id": "onap.vfirewall.tca"
11                     },
12                                         "properties": {
13                                                 "tca_policy": {
14                                                         "domain": "measurementsForVfScaling",
15                                                         "metricsPerEventName": [
16                                                                 {
17                                                                         "eventName": "vLoadBalancer",
18                                                                         "controlLoopSchemaType": "VNF",
19                                                                         "policyScope": "resource=vLoadBalancer;type=configuration",
20                                                                         "policyName": "onap.vfirewall.tca",
21                                                                         "policyVersion": "v0.0.1",
22                                                                         "thresholds": [
23                                                                                 {
24                                                                                         "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
25                                                                                         "closedLoopEventStatus": "ONSET",
26                                                                                         "version": "1.0.2",
27                                                                                         "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
28                                                                                         "thresholdValue": 500,
29                                                                                         "direction": "LESS_OR_EQUAL",
30                                                                                         "severity": "MAJOR"
31                                                                                 },
32                                                                                 {
33                                                                                         "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
34                                                                                         "closedLoopEventStatus": "ONSET",
35                                                                                         "version": "1.0.2",
36                                                                                         "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
37                                                                                         "thresholdValue": 5000,
38                                                                                         "direction": "GREATER_OR_EQUAL",
39                                                                                         "severity": "CRITICAL"
40                                                                                 }
41                                                                         ]
42                                                                 }
43                                                         ]
44                                                 }
45                                         }
46                                 }
47                         }
48                 ]
49         }
50 }