blob: 4ddd7b1d368a35853d2b023859befedfbe9e8b2b [file] [log] [blame]
Eric Debeau1af30532019-05-14 17:45:22 +00001.. This work is licensed under a
2 Creative Commons Attribution 4.0 International License.
3
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -04004VES-Collector
Vijay VK6b0fa462019-05-20 16:06:11 +01005=============
Lusheng Ji6553a132017-10-12 02:47:00 +00006
7.. toctree::
8 :maxdepth: 3
9
Lusheng Ji6553a132017-10-12 02:47:00 +000010Description
11~~~~~~~~~~~
12
Eric Debeau1af30532019-05-14 17:45:22 +000013Virtual Event Streaming (VES) Collector is RESTful collector for processing
14JSON messages. The collector verifies the source and validates the events
15against VES schema before distributing to DMAAP MR topics.
Lusheng Ji6553a132017-10-12 02:47:00 +000016
Eric Debeau1af30532019-05-14 17:45:22 +000017.. csv-table::
18 :header: "API name", "Swagger JSON", "Swagger YAML"
19 :widths: 10,5,5
Lusheng Ji6553a132017-10-12 02:47:00 +000020
Eric Debeau1af30532019-05-14 17:45:22 +000021 "VES Collector", ":download:`link <swagger_vescollector.json>`", ":download:`link <swagger_vescollector.yaml>`"
Lusheng Ji6553a132017-10-12 02:47:00 +000022
23Contact Information
24~~~~~~~~~~~~~~~~~~~
25
Vijay VK6b0fa462019-05-20 16:06:11 +010026onap-discuss@lists.onap.org
Lusheng Ji6553a132017-10-12 02:47:00 +000027
Lusheng Ji6553a132017-10-12 02:47:00 +000028Security
29~~~~~~~~
30
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040031`VES Authentication Types <https://docs.onap.org/en/latest/submodules/dcaegen2.git/docs/sections/services/ves-http/tls-authentication.html>`_
Lusheng Ji6553a132017-10-12 02:47:00 +000032
Lusheng Ji6553a132017-10-12 02:47:00 +000033
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040034VES Specification
35~~~~~~~~~~~~~~~~~
Lusheng Ji6553a132017-10-12 02:47:00 +000036
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040037- `VES 7.1.1 Data Model <https://docs.onap.org/en/latest/submodules/vnfrqts/requirements.git/docs/Chapter8/ves7_1spec.html#common-event-format>`_
38- `VES 5.4 Data Model <https://docs.onap.org/en/latest/submodules/vnfrqts/requirements.git/docs/Chapter8/ves_5_4_1/VESEventListener.html#common-event-format>`_
Lusheng Ji6553a132017-10-12 02:47:00 +000039
Lusheng Ji6553a132017-10-12 02:47:00 +000040
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040041Response Code
42~~~~~~~~~~~~~
Lusheng Ji6553a132017-10-12 02:47:00 +000043
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040044+-----+--------------+--------------------------------------------------------+
45| Code| Reason Phrase| Description |
46+=====+==============+========================================================+
47| 202 | Accepted | The request has been accepted for processing |
48+-----+--------------+--------------------------------------------------------+
49| 400 | Bad Request | Many possible reasons not specified by the other codes |
50| | | (e.g., missing required parameters or incorrect format)|
51| | | . The response body may include a further exception |
52| | | code and text. HTTP 400 errors may be mapped to SVC0001|
53| | | (general service error), SVC0002 (bad parameter), |
54| | | SVC2000 (general service error with details) or PO9003 |
55| | | (message content size exceeds the allowable limit). |
56+-----+--------------+--------------------------------------------------------+
57| 401 | Unauthorized | Authentication failed or was not provided. HTTP 401 |
58| | | errors may be mapped to POL0001 (general policy error) |
59| | | or POL2000 (general policy error with details). |
60+-----+--------------+--------------------------------------------------------+
61| 404 | Not Found | The server has not found anything matching the |
62| | | Request-URI. No indication is given of whether the |
63| | | condition is temporary or permanent. |
64+-----+--------------+--------------------------------------------------------+
65| 405 | Method Not | A request was made of a resource using a request method|
66| | Allowed | not supported by that resource (e.g., using PUT on a |
67| | | REST resource that only supports POST). |
68+-----+--------------+--------------------------------------------------------+
69| 500 | Internal | The server encountered an internal error or timed out; |
70| | Server Error | please retry (general catch-all server-side error).HTTP|
71| | | 500 errors may be mapped to SVC1000 (no server |
72| | | resources). |
73+-----+--------------+--------------------------------------------------------+
Lusheng Ji6553a132017-10-12 02:47:00 +000074
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040075Sample Request and Response
76---------------------------
Lusheng Ji6553a132017-10-12 02:47:00 +000077
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040078Request Example
Lusheng Ji6553a132017-10-12 02:47:00 +000079
Lusheng Ji6553a132017-10-12 02:47:00 +000080
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040081.. code-block:: http
Lusheng Ji6553a132017-10-12 02:47:00 +000082
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040083 POST /eventListener/v7 HTTP/1.1
84 Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
85 content-type: application/json
86 content-length: 12345
87 X-MinorVersion: 1
Lusheng Ji6553a132017-10-12 02:47:00 +000088
89 {
90 "event": {
91 "commonEventHeader": {
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040092 "version": "4.1",
93 "vesEventListenerVersion": "7.1.1",
Morgan Richomme7eff83d2017-11-08 10:43:33 +010094 "domain": "fault",
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040095 "eventName": "Fault_Vscf:Acs-Ericcson_PilotNumberPoolExhaustion",
96 "eventId": "fault0000245",
Morgan Richomme7eff83d2017-11-08 10:43:33 +010097 "sequence": 1,
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040098 "priority": "High",
99 "reportingEntityId": "cc305d54-75b4-431b-adb2-eb6b9e541234",
100 "reportingEntityName": "ibcx0001vm002oam001",
101 "sourceId": "de305d54-75b4-431b-adb2-eb6b9e546014",
102 "sourceName": "scfx0001vm002cap001",
103 "nfVendorName": "Ericsson",
104 "nfNamingCode": "scfx",
105 "nfcNamingCode": "ssc",
106 "startEpochMicrosec": 1413378172000000,
107 "lastEpochMicrosec": 1413378172000000,
108 "timeZoneOffset": "UTC-05:30"
Morgan Richomme7eff83d2017-11-08 10:43:33 +0100109 },
Lusheng Ji6553a132017-10-12 02:47:00 +0000110 "faultFields": {
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -0400111 "faultFieldsVersion": 4.0,
112 "alarmCondition": "PilotNumberPoolExhaustion",
113 "eventSourceType": "other",
114 "specificProblem": "Calls cannot complete - pilot numbers are unavailable",
Morgan Richomme7eff83d2017-11-08 10:43:33 +0100115 "eventSeverity": "CRITICAL",
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -0400116 "vfStatus": "Active",
117 "alarmAdditionalInformation": {
118 "PilotNumberPoolSize": "1000"
Lusheng Ji6553a132017-10-12 02:47:00 +0000119 }
Lusheng Ji6553a132017-10-12 02:47:00 +0000120 }
121 }
122 }
123
Lusheng Ji6553a132017-10-12 02:47:00 +0000124
Lusheng Ji6553a132017-10-12 02:47:00 +0000125
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -0400126Response Example
Lusheng Ji6553a132017-10-12 02:47:00 +0000127
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -0400128.. code-block:: http
Lusheng Ji6553a132017-10-12 02:47:00 +0000129
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -0400130 HTTPS/1.1 202 Accepted
131 X-MinorVersion: 1
132 X-PatchVersion: 1
133 X-LatestVersion: 7.1.1