Add support for ABATED alerts within CDAP TCA
[dcaegen2/analytics/tca.git] / dcae-analytics-test / src / main / resources / data / json / policy / tca_policy.json
1 {
2   "domain": "measurementsForVfScaling",
3   "metricsPerEventName": [
4     {
5       "eventName": "Mfvs_eNodeB_RANKPI",
6       "controlLoopSchemaType" : "VNF",
7       "policyScope": "resource=vFirewall;type=configuration",
8       "policyName": "configuration.dcae.microservice.tca.xml",
9       "policyVersion": "v0.0.1",
10       "thresholds": [
11         {
12           "closedLoopControlName": "CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8",
13           "closedLoopEventStatus" : "ONSET",
14           "version": "1.0.2",
15           "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
16           "thresholdValue": 4000,
17           "direction": "LESS_OR_EQUAL",
18           "severity": "MAJOR"
19         },
20         {
21           "closedLoopControlName": "CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09",
22           "closedLoopEventStatus" : "ONSET",
23           "version": "1.0.2",
24           "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
25           "thresholdValue": 20000,
26           "direction": "GREATER_OR_EQUAL",
27           "severity": "CRITICAL"
28         },
29         {
30           "closedLoopControlName": "CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09",
31           "closedLoopEventStatus" : "ABATED",
32           "version": "1.0.2",
33           "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
34           "thresholdValue": 0,
35           "direction": "EQUAL",
36           "severity": "CRITICAL"
37         }
38       ]
39     },
40     {
41       "eventName": "vLoadBalancer",
42       "controlLoopSchemaType" : "VNF",
43       "policyScope": "resource=vLoadBalancer;type=configuration",
44       "policyName": "configuration.dcae.microservice.tca.xml",
45       "policyVersion": "v0.0.1",
46       "thresholds": [
47         {
48           "closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A",
49           "closedLoopEventStatus" : "ONSET",
50           "version": "1.0.2",
51           "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
52           "thresholdValue": 500,
53           "direction": "LESS_OR_EQUAL",
54           "severity": "MAJOR"
55         },
56         {
57           "closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B",
58           "closedLoopEventStatus" : "ONSET",
59           "version": "1.0.2",
60           "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
61           "thresholdValue": 5000,
62           "direction": "GREATER_OR_EQUAL",
63           "severity": "CRITICAL"
64         }
65       ]
66     }
67   ]
68 }