Add serialization for Tosca Model
[policy/models.git] / models-tosca / 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            domain: measurementsForVfScaling
12            metricsPerEventName:
13            -
14              eventName: vLoadBalancer
15              controlLoopSchemaType: VNF
16              policyScope: "resource=vLoadBalancer;type=configuration"
17              policyName: "onap.vfirewall.tca"
18              policyVersion: "v0.0.1"
19              thresholds:
20                 -
21                     closedLoopControlName: "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a"
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: "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a"
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