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