Adding 'name' to yamls and json in model
[policy/models.git] / models-examples / src / main / resources / policies / vDNS.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.scaleout.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.scaleout.tca",
14                     "metadata":
15                     {
16                         "policy-id": "onap.scaleout.tca"
17                     },
18
19                     "properties":
20                     {
21                         "tca_policy":
22                         {
23                             "domain": "measurementsForVfScaling",
24                             "metricsPerEventName":
25                             [
26                                 {
27                                     "eventName": "vLoadBalancer",
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-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
36                                             "closedLoopEventStatus": "ONSET",
37                                             "version": "1.0.2",
38                                             "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
39                                             "thresholdValue": 300,
40                                             "direction": "GREATER_OR_EQUAL",
41                                             "severity": "CRITICAL"
42                                         }
43                                     ]
44                                 }
45                             ]
46                         }
47                     }
48                 }
49             }
50         ]
51     }
52 }