summaryrefslogtreecommitdiffstats
path: root/rest-services/cbs-client/src/test/resources/policies.json
diff options
context:
space:
mode:
authorNiranjana <niranjana.y60@wipro.com>2021-06-01 09:47:36 +0000
committerNiranjana <niranjana.y60@wipro.com>2021-06-03 05:06:27 +0000
commit837f51c82b40d9c251a082768af7a196ff7c901c (patch)
tree2738ddbb27b5e2e96673ef3fb5c3f7e6d3e9928d /rest-services/cbs-client/src/test/resources/policies.json
parent9cf6e91ced584f67d709b985afde0b686e615f94 (diff)
Update CBS-Client to read policy configuration from a file exposed by policy-sidecar container
Issue-ID: DCAEGEN2-2752 Signed-off-by: Niranjana <niranjana.y60@wipro.com> Change-Id: Ib00d1b031021c0342b0845b63d65172333ac4158
Diffstat (limited to 'rest-services/cbs-client/src/test/resources/policies.json')
-rw-r--r--rest-services/cbs-client/src/test/resources/policies.json58
1 files changed, 58 insertions, 0 deletions
diff --git a/rest-services/cbs-client/src/test/resources/policies.json b/rest-services/cbs-client/src/test/resources/policies.json
new file mode 100644
index 00000000..657cdbe9
--- /dev/null
+++ b/rest-services/cbs-client/src/test/resources/policies.json
@@ -0,0 +1,58 @@
+{
+ "policies":{
+ "items":[
+ {
+ "type":"onap.policies.monitoring.tcagen2",
+ "type_version":"1.0.0",
+ "name":"onap.vfirewall.tca",
+ "version":"1.0.0",
+ "metadata":{
+ "policy-id":"onap.vfirewall.tca",
+ "policy-version":"1.0.0"
+ },
+ "policyName":"onap.vfirewall.tca.1-0-0.xml",
+ "policyVersion":"1.0.0",
+ "config":{
+ "tca.policy":{
+ "domain":"measurementsForVfScaling",
+ "metricsPerEventName":[
+ {
+ "eventName":"vFirewallBroadcastPackets",
+ "controlLoopSchemaType":"VM",
+ "policyScope":"DCAE",
+ "policyName":"DCAE.Config_tca-hi-lo",
+ "policyVersion":"v0.0.1",
+ "thresholds":[
+ {
+ "closedLoopControlName":"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
+ "version":"1.0.2",
+ "fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
+ "thresholdValue":300,
+ "direction":"LESS_OR_EQUAL",
+ "severity":"MAJOR",
+ "closedLoopEventStatus":"ONSET"
+ },
+ {
+ "closedLoopControlName":"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
+ "version":"1.0.2",
+ "fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
+ "thresholdValue":700,
+ "direction":"GREATER_OR_EQUAL",
+ "severity":"CRITICAL",
+ "closedLoopEventStatus":"ONSET"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "event":{
+ "action":"gathered",
+ "timestamp":"2021-04-19T23:37:19.709Z",
+ "update_id":"379fb01a-cfe2-4c06-8f6b-d51f3c8504af",
+ "policies_count":1
+ }
+}