c47c0f30102f26d1902ea6973414a441ac5d32c3
[policy/models.git] / models-examples / src / main / resources / policies / vDNS.policy.monitoring.input.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             type_version: 1.0.0
8             version: 1.0.0
9             metadata:
10                policy-id: onap.scaleout.tca
11             properties:
12                tca_policy:
13                   domain: measurementsForVfScaling
14                   metricsPerEventName:
15                      -
16                         eventName: vLoadBalancer
17                         controlLoopSchemaType: VM
18                         policyScope: "DCAE"
19                         policyName: "DCAE.Config_tca-hi-lo"
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[*].receivedTotalPacketsDelta"
27                            thresholdValue: 300
28                            direction: GREATER_OR_EQUAL
29                            severity: CRITICAL