diff options
author | Saryu Shah <ss3917@att.com> | 2019-12-04 23:17:41 +0000 |
---|---|---|
committer | Saryu Shah <ss3917@att.com> | 2019-12-05 19:37:59 +0000 |
commit | 3c711d14e242c18a9d58215224fd40374f7018e6 (patch) | |
tree | 7f919ac81f44707127eac8d093ad15fd92bca1f7 /docs/pap | |
parent | feac4e1beee77ed2ae026efa6803d720a1e799df (diff) |
Document PAP policy notifications
Document PAP policy notifications
Issue-ID: POLICY-2270
Signed-off-by: Saryu Shah <ss3917@att.com>
Change-Id: Ia2106165c3fa30951c36d1050e4db07835458589
Diffstat (limited to 'docs/pap')
-rw-r--r-- | docs/pap/notification/dmaap-pap-notif.json | 23 | ||||
-rw-r--r-- | docs/pap/pap.rst | 8 |
2 files changed, 31 insertions, 0 deletions
diff --git a/docs/pap/notification/dmaap-pap-notif.json b/docs/pap/notification/dmaap-pap-notif.json new file mode 100644 index 00000000..bfe9162b --- /dev/null +++ b/docs/pap/notification/dmaap-pap-notif.json @@ -0,0 +1,23 @@ +{ + "deployed-policies": [ + { + "policy-type": "onap.policies.monitoring.cdap.tca.hi.lo.app", + "policy-type-version": "1.0.0", + "policy-id": "onap.scaleout.tca", + "policy-version": "2.0.0", + "success-count": 3, + "failure-count": 0 + } + ], + "undeployed-policies": [ + { + "policy-type": "onap.policies.firewall", + "policy-type-version": "1.0.0", + "policy-id": "onap.firewall.tca", + "policy-version": "6.0.0", + "success-count": 3, + "failure-count": 0 + } + ] +} + diff --git a/docs/pap/pap.rst b/docs/pap/pap.rst index 97bcb825..d061c815 100644 --- a/docs/pap/pap.rst +++ b/docs/pap/pap.rst @@ -81,6 +81,14 @@ in the following table are transmitted via DMaaP: "PDP update", "Outgoing", "Assigns a PDP to a PDP Group and Subgroup; also deploys or undeploys policies from the PDP" "PDP state change", "Outgoing", "Changes the state of a PDP or all PDPs within a PDP Group or Subgroup" +In addition, PAP generates notifications via the DMaaP Message Router when policies are successfully or unsuccessfully +deployed (or undeployed) from all relevant PDPs. + +Here is a sample notification: + +.. literalinclude:: notification/dmaap-pap-notif.json + :language: json + 2 PAP REST API Swagger ====================== |