Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleDecision API for getting single TCA policy
linenumberstrue
collapsetrue
http:{url}:{port}/decision/v1/ POST

Content-Type: application/yaml
Accepts: application/json
subject: DCAE
action: configure
resource:
    policy_id: onap.scaleout.tca

#
# Return Output
#

HTTP/1.1 200 OK
Content-Type: application/json
{
	"onap.vfirewall.tca": {
		"type": "onap.policy.monitoring.cdap.tca.hi.lo.app",
		"properties": {
			"domain": "measurementsForVfScaling",
			"metricsPerEventName": [
				{
					"eventName": "vLoadBalancer",
					"controlLoopSchemaType": "VNF",
					"policyScope": "resource=vLoadBalancer;type=configuration",
					"policyName": "onap.scaleoutvfirewall.tca",
					"policyVersion": "v0.0.1",
					"thresholds": [
						{
							"closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A",
							"closedLoopEventStatus": "ONSET",
							"version": "1.0.2",
							"fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
							"thresholdValue": 500,
							"direction": "LESS_OR_EQUAL",
							"severity": "MAJOR"
						},
						{
							"closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B",
							"closedLoopEventStatus": "ONSET",
							"version": "1.0.2",
							"fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
							"thresholdValue": 5000,
							"direction": "GREATER_OR_EQUAL",
							"severity": "CRITICAL"
						}
					]
				}
			]
		}
	}
}