eba46b00668761a56b72abcf028d65a51f3ea967
[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                     "metadata":
14                     {
15                         "policy-id": "onap.scaleout.tca"
16                     },
17
18                     "properties":
19                     {
20                         "tca_policy":
21                         {
22                             "domain": "measurementsForVfScaling",
23                             "metricsPerEventName":
24                             [
25                                 {
26                                     "eventName": "vLoadBalancer",
27                                     "controlLoopSchemaType": "VM",
28                                     "policyScope": "DCAE",
29                                     "policyName": "DCAE.Config_tca-hi-lo",
30                                     "policyVersion": "v0.0.1",
31                                     "thresholds":
32                                     [
33                                         {
34                                             "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
35                                             "closedLoopEventStatus": "ONSET",
36                                             "version": "1.0.2",
37                                             "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
38                                             "thresholdValue": 300,
39                                             "direction": "GREATER_OR_EQUAL",
40                                             "severity": "CRITICAL"
41                                         }
42                                     ]
43                                 }
44                             ]
45                         }
46                     }
47                 }
48             }
49         ]
50     }
51 }