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