Add Legacy Op Policy Persistence
[policy/models.git] / models-examples / src / main / resources / policies / vDNS.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.scaleout.tca": 
9                 {
10                     "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
11                     "version": "1.0.0",
12                     "metadata": 
13                     {
14                         "policy-id": "onap.scaleout.tca"
15                     },
16
17                     "properties": 
18                     {
19                         "tca_policy": 
20                         {
21                             "domain": "measurementsForVfScaling",
22                             "metricsPerEventName": 
23                             [
24                                 {
25                                     "eventName": "vLoadBalancer",
26                                     "controlLoopSchemaType": "VNF",
27                                     "policyScope": "type=configuration",
28                                     "policyName": "onap.scaleout.tca",
29                                     "policyVersion": "v0.0.1",
30                                     "thresholds": 
31                                     [
32                                         {
33                                             "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
34                                             "closedLoopEventStatus": "ONSET",
35                                             "version": "1.0.2",
36                                             "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
37                                             "thresholdValue": 500,
38                                             "direction": "LESS_OR_EQUAL",
39                                             "severity": "MAJOR"
40                                         },
41
42                                         {
43                                             "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
44                                             "closedLoopEventStatus": "ONSET",
45                                             "version": "1.0.2",
46                                             "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
47                                             "thresholdValue": 5000,
48                                             "direction": "GREATER_OR_EQUAL",
49                                             "severity": "CRITICAL"
50                                         }
51                                     ]
52                                 }
53                             ]
54                         }
55                     }
56                 }
57             }
58         ]
59     }
60 }