Update API for changes in TOSCA provider
[policy/api.git] / main / src / test / resources / policies / vDNS.policy.monitoring.input.tosca.v2.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 topology_template:
3    policies:
4    -  onap.scaleout.tca:
5          type: onap.policies.monitoring.cdap.tca.hi.lo.app
6          type_version: 1.0.0
7          version: 2.0.0
8          metadata:
9             policy-id: onap.scaleout.tca
10          properties:
11             tca_policy:
12                domain: measurementsForVfScaling
13                metricsPerEventName:
14                -  eventName: vLoadBalancer
15                   controlLoopSchemaType: VNF
16                   policyScope: type=configuration
17                   policyName: onap.scaleout.tca
18                   policyVersion: v0.0.1
19                   thresholds:
20                   -  closedLoopControlName: ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
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                   -  closedLoopControlName: ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
28                      closedLoopEventStatus: ONSET
29                      version: 1.0.2
30                      fieldPath: $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated
31                      thresholdValue: 5000
32                      direction: GREATER_OR_EQUAL
33                      severity: CRITICAL