Adding 'name' to yamls and json in model
[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             type_version: 1.0.0
8             version: 1.0.0
9             name: onap.scaleout.tca
10             metadata:
11                policy-id: onap.scaleout.tca
12                policy-version: 1
13             properties:
14                tca_policy:
15                   domain: measurementsForVfScaling
16                   metricsPerEventName:
17                      -
18                         eventName: vLoadBalancer
19                         controlLoopSchemaType: VM
20                         policyScope: "DCAE"
21                         policyName: "DCAE.Config_tca-hi-lo"
22                         policyVersion: "v0.0.1"
23                         thresholds:
24                         -
25                            closedLoopControlName: "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3"
26                            closedLoopEventStatus: ONSET
27                            version: "1.0.2"
28                            fieldPath: "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta"
29                            thresholdValue: 300
30                            direction: GREATER_OR_EQUAL
31                            severity: CRITICAL