Started with test decision JSON objects.
[policy/xacml-pdp.git] / applications / monitoring / src / test / resources / vDNS.policy.input.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 policies:
3   -
4     onap.scaleout.tca:
5         type: onap.policies.monitoring.cdap.tca.hi.lo.app
6         version: 1.0.0
7         metadata:
8           policy-id: onap.scaleout.tca
9           policy-version: 1
10         properties:
11           tca_policy:
12              domain: measurementsForVfScaling
13              metricsPerEventName:
14                -
15                  eventName: vLoadBalancer
16                  controlLoopSchemaType: VNF
17                  policyScope: "type=configuration"
18                  policyName: "onap.scaleout.tca"
19                  policyVersion: "v0.0.1"
20                  thresholds:
21                    - closedLoopControlName: "CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A"
22                      closedLoopEventStatus: ONSET
23                      version: "1.0.2"
24                      fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated"
25                      thresholdValue: 500
26                      direction: LESS_OR_EQUAL
27                      severity: MAJOR
28                    -
29                      closedLoopControlName: "CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B"
30                      closedLoopEventStatus: ONSET
31                      version: "1.0.2"
32                      fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated"
33                      thresholdValue: 5000
34                      direction: GREATER_OR_EQUAL
35                      severity: CRITICAL