1468d75eeb1bc3a8272f180872247793225345f9
[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         metadata:
10            policy-id: onap.vfirewall.tca
11         properties:
12            tca_policy:
13               domain: measurementsForVfScaling
14               metricsPerEventName:
15               -
16                 eventName: vFirewallBroadcastPackets
17                 controlLoopSchemaType: VM
18                 policyScope: "DCAE"
19                 policyName: "DCAE.Config_tca-hi-lo"
20                 policyVersion: "v0.0.1"
21                 thresholds:
22                    -
23                        closedLoopControlName: "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a"
24                        version: "1.0.2"
25                        fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta"
26                        thresholdValue: 300
27                        direction: LESS_OR_EQUAL
28                        severity: MAJOR
29                        closedLoopEventStatus: ONSET
30                    -
31                        closedLoopControlName: "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a"
32                        version: "1.0.2"
33                        fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta"
34                        thresholdValue: 700
35                        direction: GREATER_OR_EQUAL
36                        severity: CRITICAL
37                        closedLoopEventStatus: ONSET