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