Document PAP policy notifications 78/99178/2
authorSaryu Shah <ss3917@att.com>
Wed, 4 Dec 2019 23:17:41 +0000 (23:17 +0000)
committerSaryu Shah <ss3917@att.com>
Thu, 5 Dec 2019 19:37:59 +0000 (19:37 +0000)
Document PAP policy notifications

Issue-ID: POLICY-2270

Signed-off-by: Saryu Shah <ss3917@att.com>
Change-Id: Ia2106165c3fa30951c36d1050e4db07835458589

docs/design/design.rst
docs/pap/notification/dmaap-pap-notif.json [new file with mode: 0644]
docs/pap/pap.rst

index 84beb9e..6f32894 100644 (file)
@@ -396,9 +396,9 @@ pdp_subgroups                R       M        N/A        A list of PDP subgroups
 ->pdp_type                   R       M        N/A        The PDP type of this PDP subgroup, currently xacml, drools, or
                                                          apex
 ->supported_policy_types     R       N/A      N/A        A list of the policy types supported by the PDPs in this PDP
-                                                         subgroup.  A trailing “.*” can be used to specify multiple 
-                                                         policy types; for example, “onap.policies.monitoring.*” 
-                                                         would match any policy type beginning with 
+                                                         subgroup.  A trailing “.*” can be used to specify multiple
+                                                         policy types; for example, “onap.policies.monitoring.*”
+                                                         would match any policy type beginning with
                                                          “onap.policies.monitoring.”
 ->policies                   R       M        N/A        The list of policies running on the PDPs in this PDP subgroup
 ->->(name)                   R       M        N/A        The name of a TOSCA policy running in this PDP subgroup
diff --git a/docs/pap/notification/dmaap-pap-notif.json b/docs/pap/notification/dmaap-pap-notif.json
new file mode 100644 (file)
index 0000000..bfe9162
--- /dev/null
@@ -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
+        }
+    ]
+}
+
index 97bcb82..d061c81 100644 (file)
@@ -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
 ======================