Add serialization for Tosca Model
[policy/models.git] / models-tosca / 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                     "domain": "measurementsForVfScaling",
10                     "metricsPerEventName": [
11                         {
12                             "eventName": "vLoadBalancer",
13                             "controlLoopSchemaType": "VNF",
14                             "policyScope": "resource=vLoadBalancer;type=configuration",
15                             "policyName": "onap.vfirewall.tca",
16                             "policyVersion": "v0.0.1",
17                             "thresholds": [
18                                 {
19                                     "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
20                                     "closedLoopEventStatus": "ONSET",
21                                     "version": "1.0.2",
22                                     "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
23                                     "thresholdValue": 500,
24                                     "direction": "LESS_OR_EQUAL",
25                                     "severity": "MAJOR"
26                                 },
27                                 {
28                                     "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
29                                     "closedLoopEventStatus": "ONSET",
30                                     "version": "1.0.2",
31                                     "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
32                                     "thresholdValue": 5000,
33                                     "direction": "GREATER_OR_EQUAL",
34                                     "severity": "CRITICAL"
35                                 }
36                             ]
37                         }
38                     ]
39                 }
40             }
41         }
42     ]
43 }