sebdet | 0cb5798 | 2019-04-03 17:07:34 +0200 | [diff] [blame] | 1 | { |
| 2 | "tosca_definitions_version": "tosca_simple_yaml_1_0_0", |
| 3 | "topology_template": { |
| 4 | "policies": [ |
| 5 | { |
| 6 | "testPolicy": { |
sebdet | 12700b0 | 2019-04-25 12:24:45 +0200 | [diff] [blame] | 7 | "type": "onap.policies.monitoring.cdap.tca.hi.lo.app", |
sebdet | 0cb5798 | 2019-04-03 17:07:34 +0200 | [diff] [blame] | 8 | "version": "1.0.0", |
| 9 | "metadata": { |
| 10 | "policy-id": "testPolicy" |
| 11 | }, |
| 12 | "properties": { |
| 13 | "tca_policy": { |
| 14 | "domain": "measurementsForVfScaling", |
| 15 | "metricsPerEventName": [ |
| 16 | { |
| 17 | "policyVersion": "1.0.0", |
| 18 | "thresholds": [ |
| 19 | { |
| 20 | "severity": "CRITICAL", |
| 21 | "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta", |
| 22 | "thresholdValue": 1, |
| 23 | "closedLoopEventStatus": "ONSET", |
| 24 | "closedLoopControlName": "test", |
| 25 | "version": "1.0.0", |
| 26 | "direction": "LESS" |
| 27 | } |
| 28 | ], |
| 29 | "policyName": "test", |
| 30 | "controlLoopSchemaType": "VM", |
| 31 | "policyScope": "test", |
| 32 | "eventName": "test" |
| 33 | } |
| 34 | ] |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | ] |
| 40 | } |
| 41 | } |