59fcf999d62890fbeaa2ad5f9c96129c0bb5aa12
[policy/models.git] / models-examples / src / main / 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.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: vLoadBalancer
17                 controlLoopSchemaType: VNF
18                 policyScope: "resource=vLoadBalancer;type=configuration"
19                 policyName: "onap.vfirewall.tca"
20                 policyVersion: "v0.0.1"
21                 thresholds:
22                    -
23                        closedLoopControlName: "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a"
24                        closedLoopEventStatus: ONSET
25                        version: "1.0.2"
26                        fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated"
27                        thresholdValue: 500
28                        direction: LESS_OR_EQUAL
29                        severity: MAJOR
30                    -
31                        closedLoopControlName: "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a"
32                        closedLoopEventStatus: ONSET
33                        version: "1.0.2"
34                        fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated"
35                        thresholdValue: 5000
36                        direction: GREATER_OR_EQUAL
37                        severity: CRITICAL