Monitoring policy creation foundation
[policy/xacml-pdp.git] / applications / monitoring / src / test / resources / vDNS.policy.input.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 policies:
3   -
4     onap.scaleout.tca:
5         type: onap.policies.monitoring.cdap.tca.hi.lo.app
6         version: 1.0.0
7         metadata:
8           policy-id: onap.scaleout.tca
9           policy-version: 1
10         properties:
11           domain: measurementsForVfScaling
12           metricsPerEventName:
13             -
14               eventName: vLoadBalancer
15               controlLoopSchemaType: VNF
16               policyScope: "type=configuration"
17               policyName: "onap.scaleout.tca"
18               policyVersion: "v0.0.1"
19               thresholds:
20                 - closedLoopControlName: "CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A"
21                   closedLoopEventStatus: ONSET
22                   version: "1.0.2"
23                   fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated"
24                   thresholdValue: 500
25                   direction: LESS_OR_EQUAL
26                   severity: MAJOR
27                 -
28                   closedLoopControlName: "CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B"
29                   closedLoopEventStatus: ONSET
30                   version: "1.0.2"
31                   fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated"
32                   thresholdValue: 5000
33                   direction: GREATER_OR_EQUAL
34                   severity: CRITICAL