Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 1 | .. This work is licensed under a |
| 2 | Creative Commons Attribution 4.0 International License. |
| 3 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 4 | VES-Collector |
Vijay VK | 6b0fa46 | 2019-05-20 16:06:11 +0100 | [diff] [blame] | 5 | ============= |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 6 | |
| 7 | .. toctree:: |
| 8 | :maxdepth: 3 |
| 9 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 10 | Description |
| 11 | ~~~~~~~~~~~ |
| 12 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 13 | Virtual Event Streaming (VES) Collector is RESTful collector for processing |
| 14 | JSON messages. The collector verifies the source and validates the events |
| 15 | against VES schema before distributing to DMAAP MR topics. |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 16 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 17 | .. csv-table:: |
| 18 | :header: "API name", "Swagger JSON", "Swagger YAML" |
| 19 | :widths: 10,5,5 |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 20 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 21 | "VES Collector", ":download:`link <swagger_vescollector.json>`", ":download:`link <swagger_vescollector.yaml>`" |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 22 | |
| 23 | Contact Information |
| 24 | ~~~~~~~~~~~~~~~~~~~ |
| 25 | |
Vijay VK | 6b0fa46 | 2019-05-20 16:06:11 +0100 | [diff] [blame] | 26 | onap-discuss@lists.onap.org |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 27 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 28 | Security |
| 29 | ~~~~~~~~ |
| 30 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 31 | `VES Authentication Types <https://docs.onap.org/en/latest/submodules/dcaegen2.git/docs/sections/services/ves-http/tls-authentication.html>`_ |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 32 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 33 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 34 | VES Specification |
| 35 | ~~~~~~~~~~~~~~~~~ |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 36 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 37 | - `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 Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 39 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 40 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 41 | Response Code |
| 42 | ~~~~~~~~~~~~~ |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 43 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 44 | +-----+--------------+--------------------------------------------------------+ |
| 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 Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 74 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 75 | Sample Request and Response |
| 76 | --------------------------- |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 77 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 78 | Request Example |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 79 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 80 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 81 | .. code-block:: http |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 82 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 83 | POST /eventListener/v7 HTTP/1.1 |
| 84 | Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== |
| 85 | content-type: application/json |
| 86 | content-length: 12345 |
| 87 | X-MinorVersion: 1 |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 88 | |
| 89 | { |
| 90 | "event": { |
| 91 | "commonEventHeader": { |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 92 | "version": "4.1", |
| 93 | "vesEventListenerVersion": "7.1.1", |
Morgan Richomme | 7eff83d | 2017-11-08 10:43:33 +0100 | [diff] [blame] | 94 | "domain": "fault", |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 95 | "eventName": "Fault_Vscf:Acs-Ericcson_PilotNumberPoolExhaustion", |
| 96 | "eventId": "fault0000245", |
Morgan Richomme | 7eff83d | 2017-11-08 10:43:33 +0100 | [diff] [blame] | 97 | "sequence": 1, |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 98 | "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 Richomme | 7eff83d | 2017-11-08 10:43:33 +0100 | [diff] [blame] | 109 | }, |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 110 | "faultFields": { |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 111 | "faultFieldsVersion": 4.0, |
| 112 | "alarmCondition": "PilotNumberPoolExhaustion", |
| 113 | "eventSourceType": "other", |
| 114 | "specificProblem": "Calls cannot complete - pilot numbers are unavailable", |
Morgan Richomme | 7eff83d | 2017-11-08 10:43:33 +0100 | [diff] [blame] | 115 | "eventSeverity": "CRITICAL", |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 116 | "vfStatus": "Active", |
| 117 | "alarmAdditionalInformation": { |
| 118 | "PilotNumberPoolSize": "1000" |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 119 | } |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 120 | } |
| 121 | } |
| 122 | } |
| 123 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 124 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 125 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 126 | Response Example |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 127 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 128 | .. code-block:: http |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 129 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame^] | 130 | HTTPS/1.1 202 Accepted |
| 131 | X-MinorVersion: 1 |
| 132 | X-PatchVersion: 1 |
| 133 | X-LatestVersion: 7.1.1 |