Release image version 1.12.2
[testsuite.git] / robot / assets / templates / policy / vFirewall_policy_monitoring_input_tosca.jinja
1 {
2     "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
3     "topology_template": {
4         "policies": [
5             {
6                 "onap.vfirewall.tca": {
7                     "type": "onap.policies.monitoring.tcagen2",
8                     "type_version": "1.0.0",
9                     "version": "1.0.0",
10                     "metadata": {
11                         "policy-id": "onap.vfirewall.tca"
12                     },
13                     "properties": {
14                         "tca.policy": {
15                             "domain": "measurementsForVfScaling",
16                             "metricsPerEventName": [
17                                 {
18                                     "eventName": "vFirewallBroadcastPackets",
19                                     "controlLoopSchemaType": "VM",
20                                     "policyScope": "DCAE",
21                                     "policyName": "DCAE.Config_tca-hi-lo",
22                                     "policyVersion": "1.0.0",
23                                     "thresholds": [
24                                         {
25                                             "closedLoopControlName": "ControlLoop-vFirewall-{{RESOURCE_ID}}",
26                                             "closedLoopEventStatus": "ONSET",
27                                             "version": "1.0.2",
28                                             "fieldPath": "$$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
29                                             "thresholdValue": 300,
30                                             "direction": "LESS_OR_EQUAL",
31                                             "severity": "MAJOR"
32                                         },
33                                         {
34                                             "closedLoopControlName": "ControlLoop-vFirewall-{{RESOURCE_ID}}",
35                                             "closedLoopEventStatus": "ONSET",
36                                             "version": "1.0.2",
37                                             "fieldPath": "$$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
38                                             "thresholdValue": 700,
39                                             "direction": "GREATER_OR_EQUAL",
40                                             "severity": "CRITICAL"
41                                         }
42                                     ]
43                                 }
44                             ]
45                         }
46                     }
47                 }
48             }
49         ]
50     }
51 }