Adding 'name' to yamls and json in model
[policy/models.git] / models-examples / src / main / resources / policies / vFirewall.policy.monitoring.input.tosca.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_1_0
2 topology_template:
3   policies:
4     -
5       onap.vfirewall.tca:
6         type: onap.policies.monitoring.cdap.tca.hi.lo.app
7         type_version: 1.0.0
8         version: 1.0.0
9         name: onap.vfirewall.tca
10         metadata:
11            policy-id: onap.vfirewall.tca
12         properties:
13            tca_policy:
14               domain: measurementsForVfScaling
15               metricsPerEventName:
16               -
17                 eventName: vFirewallBroadcastPackets
18                 controlLoopSchemaType: VM
19                 policyScope: "DCAE"
20                 policyName: "DCAE.Config_tca-hi-lo"
21                 policyVersion: "v0.0.1"
22                 thresholds:
23                    -
24                        closedLoopControlName: "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a"
25                        version: "1.0.2"
26                        fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta"
27                        thresholdValue: 300
28                        direction: LESS_OR_EQUAL
29                        severity: MAJOR
30                        closedLoopEventStatus: ONSET
31                    -
32                        closedLoopControlName: "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a"
33                        version: "1.0.2"
34                        fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta"
35                        thresholdValue: 700
36                        direction: GREATER_OR_EQUAL
37                        severity: CRITICAL
38                        closedLoopEventStatus: ONSET