TOSCA Compliant Guard Policies
[policy/models.git] / models-examples / src / main / resources / policies / vDNS.policy.monitoring.output.tosca.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_1_0
2 topology_template:
3    policies:
4       -
5          onap.scaleout.tca:
6             type: onap.policies.monitoring.cdap.tca.hi.lo.app
7             version: 1.0.0
8             metadata:
9                policy-id: onap.scaleout.tca
10                policy-version: 1
11             properties:
12                tca_policy:
13                   domain: measurementsForVfScaling
14                   metricsPerEventName:
15                      -
16                         eventName: vLoadBalancer
17                         controlLoopSchemaType: VNF
18                         policyScope: "type=configuration"
19                         policyName: "onap.scaleout.tca"
20                         policyVersion: "v0.0.1"
21                         thresholds:
22                         - 
23                            closedLoopControlName: "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3"
24                            closedLoopEventStatus: ONSET
25                            version: "1.0.2"
26                            fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated"
27                            thresholdValue: 500
28                            direction: LESS_OR_EQUAL
29                            severity: MAJOR
30                         -
31                            closedLoopControlName: "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3"
32                            closedLoopEventStatus: ONSET
33                            version: "1.0.2"
34                            fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated"
35                            thresholdValue: 5000
36                            direction: GREATER_OR_EQUAL
37                            severity: CRITICAL