Update PMSH Frankfurt docs 34/106734/1
authordfarrelly <david.farrelly@est.tech>
Tue, 28 Apr 2020 10:23:38 +0000 (11:23 +0100)
committerdfarrelly <david.farrelly@est.tech>
Tue, 28 Apr 2020 10:24:27 +0000 (11:24 +0100)
*Add example monitoring policy

Issue-ID: DCAEGEN2-1820
Signed-off-by: dfarrelly <david.farrelly@est.tech>
Change-Id: Ibfdfbc2877078815a97971c471b20c1e5cb316a4

docs/sections/services/pm-subscription-handler/installation.rst
docs/sections/services/pm-subscription-handler/resources/monitoring-policy.json [new file with mode: 0644]

index 3865cfb..f858222 100644 (file)
@@ -6,8 +6,8 @@
 Installation
 ============
 
-Due to a bug in the Frankfurt release, the PMSH cannot be deployed through CLAMP. The PMSH can instead be deployed
-using the DCAE Dashboard or via CLI. Steps to deploy using CLI will be shown below.
+In Frankfurt, the PMSH can be deployed using the DCAE Dashboard or via CLI. Steps to deploy using CLI will be shown
+below.
 
 Deployment Prerequisites
 ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -46,6 +46,11 @@ See :ref:`Subscription configuration<Subscription>`
             -H 'Content-Type: application/json' \
             -d @monitoring-policy.json
 
+The following JSON is an example monitoring policy.
+
+.. literalinclude:: resources/monitoring-policy.json
+    :language: json
+
 To deploy the PMSH microservice using the deployment handler API, the ``serviceTypeId`` is needed, this can be retrieved
 using the inventory API
 
diff --git a/docs/sections/services/pm-subscription-handler/resources/monitoring-policy.json b/docs/sections/services/pm-subscription-handler/resources/monitoring-policy.json
new file mode 100644 (file)
index 0000000..da2d263
--- /dev/null
@@ -0,0 +1,58 @@
+{
+  "subscription":{
+    "subscriptionName":"subscriptiona",
+    "administrativeState":"UNLOCKED",
+    "fileBasedGP":15,
+    "fileLocation":"/pm/pm.xml",
+    "nfFilter":{
+      "nfNames":[
+        "^pnf1.*"
+      ],
+      "swVersions":[
+        "1.0.0"
+      ]
+    },
+    "measurementGroups":[
+      {
+        "measurementGroup":{
+          "measurementTypes":[
+            {
+              "measurementType":"countera"
+            },
+            {
+              "measurementType":"counterb"
+            }
+          ],
+          "managedObjectDNsBasic":[
+            {
+              "DN":"dna"
+            },
+            {
+              "DN":"dnb"
+            }
+          ]
+        }
+      },
+      {
+        "measurementGroup":{
+          "measurementTypes":[
+            {
+              "measurementType":"counterc"
+            },
+            {
+              "measurementType":"counterd"
+            }
+          ],
+          "managedObjectDNsBasic":[
+            {
+              "DN":"dnc"
+            },
+            {
+              "DN":"dnd"
+            }
+          ]
+        }
+      }
+    ]
+  }
+}
\ No newline at end of file