Add test policytype and policies
[policy/api.git] / main / src / test / resources / policies / vFirewall.policy.monitoring.input.tosca.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 topology_template:
3   policies:
4     -
5       onap.vfirewall.tca:
6         type: onap.policy.monitoring.cdap.tca.hi.lo.app
7         version: 1.0.0
8         metadata:
9            policy-id: onap.vfirewall.tca
10         properties:
11            tca_policy:
12               domain: measurementsForVfScaling
13               metricsPerEventName:
14               -
15                 eventName: vLoadBalancer
16                 controlLoopSchemaType: VNF
17                 policyScope: "resource=vLoadBalancer;type=configuration"
18                 policyName: "onap.vfirewall.tca"
19                 policyVersion: "v0.0.1"
20                 thresholds:
21                    -
22                        closedLoopControlName: "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a"
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-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a"
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