Versions Compared

Key

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

...

Code Block
languagejs
titleDecision Response - Single Policy ID query
linenumberstrue
{
	"onap.scaleout.tca": {
    	    "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
        	"version": "1.0.0",
	        "metadata": {
    	        "policy-id": "onap.scaleout.tca",
        	    "policy-version": 1
	        },
    	    "properties": {
        	    "domain": "measurementsForVfScaling"
        	}
	      }
}


This example below shows the JSON body of a query for a multiple policy-id's

Code Block
titleDecision API Call - Policy ID
linenumberstrue
{
  "ONAPName": "DCAE",
  "ONAPInstance": "policy-handler-0",
  "action": "configure",
  "resource": {
      "policy-id": [
		"onap.scaleout",
		"onap.modifyconfig",
		"onap.restart"
		]
  }
}


Code Block
languagejs
titleDecision Response - Single Policy ID query
linenumberstrue
{
	"onap.scaleout.tca": {
    	    "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
        	"version": "1.0.0",
	        "metadata": {
    	        "policy-id": "onap.scaleout.tca",
        	    "policy-version": 1
	        },
    	    "properties": {
        	    "domain": "measurementsForVfScaling"
        	}
	      }
}



T





The simple draft example below shows the JSON body of a query in which all the deployed policies for a specific policy type are returned.

...