Add test policytype and policies
[policy/api.git] / main / src / test / resources / policies / vDNS.policy.monitoring.input.tosca.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 topology_template:
3    policies:
4       -
5          onap.scaleout.tca:
6             type: onap.policies.monitoring.cdap.tca.hi.lo.app
7             version: 1.0.0
8             metadata:
9                policy-id: onap.scaleout.tca
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                         - 
22                            closedLoopControlName: "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3"
23                            closedLoopEventStatus: ONSET
24                            version: "1.0.2"
25                            fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated"
26                            thresholdValue: 500
27                            direction: LESS_OR_EQUAL
28                            severity: MAJOR
29                         -
30                            closedLoopControlName: "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3"
31                            closedLoopEventStatus: ONSET
32                            version: "1.0.2"
33                            fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated"
34                            thresholdValue: 5000
35                            direction: GREATER_OR_EQUAL
36                            severity: CRITICAL