b247672eb0e7d06fb7219e69f85032c73e1cbaaa
[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     {
5         "policies":
6         [
7             {
8                 "onap.vfirewall.tca":
9                 {
10                     "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
11                     "type_version": "1.0.0",
12                     "version": "1.0.0",
13                     "metadata":
14                     {
15                         "policy-id": "onap.vfirewall.tca"
16                     },
17
18                     "properties":
19                     {
20                         "tca_policy":
21                         {
22                             "domain": "measurementsForVfScaling",
23                             "metricsPerEventName":
24                             [
25                                 {
26                                     "eventName": "vLoadBalancer",
27                                     "controlLoopSchemaType": "VNF",
28                                     "policyScope": "resource=vLoadBalancer;type=configuration",
29                                     "policyName": "onap.vfirewall.tca",
30                                     "policyVersion": "v0.0.1",
31                                     "thresholds":
32                                     [
33                                         {
34                                             "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
35                                             "closedLoopEventStatus": "ONSET",
36                                             "version": "1.0.2",
37                                             "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
38                                             "thresholdValue": 500,
39                                             "direction": "LESS_OR_EQUAL",
40                                             "severity": "MAJOR"
41                                         },
42
43                                         {
44                                             "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
45                                             "closedLoopEventStatus": "ONSET",
46                                             "version": "1.0.2",
47                                             "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
48                                             "thresholdValue": 5000,
49                                             "direction": "GREATER_OR_EQUAL",
50                                             "severity": "CRITICAL"
51                                         }
52                                     ]
53                                 }
54                             ]
55                         }
56                     }
57                 }
58             }
59         ]
60     }
61 }