Update the content send to Policy
[clamp.git] / src / test / resources / example / tca-policy-req / tca-policy-expected.json
1 {
2   "service": "tca_policy",
3   "version": "1.0.0",
4   "location": "SampleServiceLocation",
5   "configName": "SampleConfigName",
6   "uuid": "test",
7   "policyScope": "resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
8   "templateVersion": "OpenSource.version.1",
9   "policyName": "DCAE.Config_example_model01.ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_TCA_1jy9to4",
10   "description": "MicroService vCPE Policy",
11   "priority": "1",
12   "riskType": "SampleRiskType",
13   "riskLevel": "1",
14   "guard": "False",
15   "content": {
16     "tca_policy": {
17         "domain": "measurementsForVfScaling",
18         "metricsPerEventName": [
19         {
20           "eventName": "vFirewallBroadcastPackets",
21           "controlLoopSchemaType": "VNF",
22           "policyScope": "DCAE",
23           "policyName": "DCAE.Config_example_model01.ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_TCA_1jy9to4",
24           "policyVersion": "v0.0.1",
25           "thresholds": [
26             {
27               "closedLoopControlName": "ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_null",
28               "version": "1.0.2",
29               "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
30               "thresholdValue": 123,
31               "direction": "GREATER_OR_EQUAL",
32               "severity": "MAJOR",
33               "closedLoopEventStatus": "ONSET"
34             },
35             {
36               "closedLoopControlName": "ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_null",
37               "version": "1.0.2",
38               "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
39               "thresholdValue": 123,
40               "direction": "GREATER_OR_EQUAL",
41               "severity": "MAJOR",
42               "closedLoopEventStatus": "ONSET"
43             }
44           ]
45         }
46       ]
47     }
48   }
49 }