new method for policy client
[clamp.git] / src / test / resources / expected / tca.json
1 {
2     "service": "MThresholdCrossingConfiguration",
3     "location": "Edge",
4     "uuid": "TestUUID",
5     "policyName": "example_model06.ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_TCA_",
6     "description": "from clds",
7     "configName": "MThresholdCrossingConfiguration",
8     "templateVersion": "5.2.0.1",
9     "priority": "4",
10     "version": "5.2.0.1",
11     "policyScope": "resource=F5,service=vSCP,type=configuration,closedLoopControlName=vSCP_F5_Firewall_d925ed73-8231-4d02-9545-db4e101f88f8",
12     "content": 
13     {
14         "$class": "com.att.ecomp.dcae.clamp.common.MThresholdCrossingConfiguration",
15         "domain": "measurementsForVfScaling",
16         "policyScope": "pnf=eNodeB;type=configuration",
17         "policyName": "policy.dcae.configuration",
18         "policyVersion": "1.0.0",
19         "subscriberContentType": "application/json",
20         "subscriberConsumerId": "c13",
21         "subscriberConsumerGroup": "OpenDCAE-c13",
22         "subscriberTimeoutMS": "-1",
23         "subscriberMessageLimit": "-1",
24         "subscriberPollingInterval": "20000",
25         "publisherContentType": "application/json",
26         "publisherMaxBatchSize": "10",
27         "publisherMaxRecoveryQueueSize": "100000",
28         "publisherPollingInterval": "20000",
29         "publisherAlertWindowingTime": "86400",
30         "signatures": 
31         [
32             {
33                 "nfNamingCode": "ENBE",
34                 "target": "common_id",
35                 "targetType": "eNodeB",
36                 "useCaseName": "Narra",
37                 "signatureName": "Narra_886be8da-14fe-tca1-d04b-d13b55d58df9",
38                 "signatureUuid": "886be8da-14fe-tca1-d04b-d13b55d58df9",
39                 "closedLoopControlName": "ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_1",
40                 "severity": "Warning",
41                 "version": "1.0.2",
42                 "maxInterval": 2,
43                 "minMessageViolations": 3,
44                 "thresholds": 
45                 [
46                     {
47                         "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRRCCONNESTABFAILCELLLATENCY')].Value",
48                         "thresholdName": "PMRRCCONNESTABFAILCELLLATENCY",
49                         "thresholdValue": 4,
50                         "direction": "LESS"
51                     },
52
53                     {
54                         "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRAATTCBRA')].Value",
55                         "thresholdName": "PMRAATTCBRA",
56                         "thresholdValue": 30,
57                         "direction": "GREATER"
58                     }
59                 ]
60             },
61
62             {
63                 "nfNamingCode": "ENBE",
64                 "target": "common_id",
65                 "targetType": "eNodeB",
66                 "useCaseName": "Srini",
67                 "signatureName": "Srini_8b5ba88d-f4b4-tf0e-50b1-78a5a7dd412d",
68                 "signatureUuid": "8b5ba88d-f4b4-tf0e-50b1-78a5a7dd412d",
69                 "closedLoopControlName": "ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_2",
70                 "severity": "Critical",
71                 "version": "1.0.2",
72                 "maxInterval": 10,
73                 "minMessageViolations": 5,
74                 "thresholds": 
75                 [
76                     {
77                         "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRRCCONNESTABFAILCELLLATENCY')].Value",
78                         "thresholdName": "PMRRCCONNESTABFAILCELLLATENCY",
79                         "thresholdValue": 3,
80                         "direction": "EQUAL"
81                     },
82
83                     {
84                         "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRAATTCBRA')].Value",
85                         "thresholdName": "PMRAATTCBRA",
86                         "thresholdValue": 30,
87                         "direction": "GREATER"
88                     }
89                 ]
90             }
91         ]
92     }
93 }