diff options
author | Chenfei Gao <cgao@research.att.com> | 2019-05-21 17:40:21 -0400 |
---|---|---|
committer | Chenfei Gao <cgao@research.att.com> | 2019-05-21 23:01:25 -0400 |
commit | af35b6a245e1587a3f149746c043fc4520daecaa (patch) | |
tree | 9fc292df0b58bd0625d55f2474c4d2a4c9b79fcc /docs/api/policies/vCPE.policy.monitoring.input.tosca.json | |
parent | 55e1f559eb898e470bb7af9f83fb0ac23069bf34 (diff) |
Add more textual explanation in api doc
Added more textual explanation and tables for
downloading sample policies and preloaded policy types.
Also added sample curl commands for api calls.
Issue-ID: POLICY-1680
Change-Id: Ia98e37679ae8e632da9d1f7308e156f722648faf
Signed-off-by: Chenfei Gao <cgao@research.att.com>
Diffstat (limited to 'docs/api/policies/vCPE.policy.monitoring.input.tosca.json')
-rw-r--r-- | docs/api/policies/vCPE.policy.monitoring.input.tosca.json | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/docs/api/policies/vCPE.policy.monitoring.input.tosca.json b/docs/api/policies/vCPE.policy.monitoring.input.tosca.json new file mode 100644 index 00000000..7a63f658 --- /dev/null +++ b/docs/api/policies/vCPE.policy.monitoring.input.tosca.json @@ -0,0 +1,51 @@ +{ + "tosca_definitions_version": "tosca_simple_yaml_1_0_0", + "topology_template": { + "policies": [ + { + "onap.restart.tca": { + "type": "onap.policies.monitoring.cdap.tca.hi.lo.app", + "version": "1.0.0", + "type_version": "1.0.0", + "metadata": { + "policy-id": "onap.restart.tca" + }, + "properties": { + "tca_policy" : { + "domain": "measurementsForVfScaling", + "metricsPerEventName": [ + { + "eventName": "Measurement_vGMUX", + "controlLoopSchemaType": "VNF", + "policyScope": "DCAE", + "policyName": "DCAE.Config_tca-hi-lo", + "policyVersion": "v0.0.1", + "thresholds": [ + { + "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", + "version": "1.0.2", + "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", + "thresholdValue": 0, + "direction": "EQUAL", + "severity": "MAJOR", + "closedLoopEventStatus": "ABATED" + }, + { + "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", + "version": "1.0.2", + "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", + "thresholdValue": 0, + "direction": "GREATER", + "severity": "CRITICAL", + "closedLoopEventStatus": "ONSET" + } + ] + } + ] + } + } + } + } + ] + } +}
\ No newline at end of file |