aboutsummaryrefslogtreecommitdiffstats
path: root/docs/usage/usage/ves.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/usage/usage/ves.rst')
-rw-r--r--docs/usage/usage/ves.rst42
1 files changed, 42 insertions, 0 deletions
diff --git a/docs/usage/usage/ves.rst b/docs/usage/usage/ves.rst
new file mode 100644
index 0000000..4712d8b
--- /dev/null
+++ b/docs/usage/usage/ves.rst
@@ -0,0 +1,42 @@
+VES
+###
+
+Preparation for VES tests
+-------------------------
+
+To enable CDS Enrichment in an ONAP Frankfurt environment the NodePort 30449
+for the CDS Blueprint Processor API service needs to be opened
+
+#. Check existing VES Services:
+
+ .. code-block:: sh
+
+ kubectl get service -n onap|grep ves
+ xdcae-ves-collector NodePort 10.43.48.246 <none> 8443:30417/TCP
+
+#. If the port of Ves Service is different than 30417 you can change it corresponding to the installation instruction.
+
+
+Send event to Ves Collector
+---------------------------
+
+.. code:: Python
+
+ from onapsdk.ves.ves import Ves
+ response = Ves.send_event(
+ basic_auth={'username': 'sample1', 'password': 'sample1'},
+ json_event=event,
+ version="v7"
+ )
+
+Send event batch to Ves Collector
+-------------------------
+
+.. code:: Python
+
+ from onapsdk.ves.ves import Ves
+ response = Ves.send_batch_event(
+ basic_auth={'username': 'sample1', 'password': 'sample1'},
+ json_event=event,
+ version="v7"
+ )