diff options
author | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2018-10-05 10:56:38 +0200 |
---|---|---|
committer | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2018-10-05 10:59:06 +0200 |
commit | 2df4b8cac0edf477f4ae62ea3ea2ce8b4d3eaa20 (patch) | |
tree | d0c3a6fa1e8e27f6879f89f633722dddf01b44bd /docs | |
parent | 7d44c2f04a89bc638370f5f27b25c56fe94e6d2a (diff) |
Update API section with WTP definition
Change-Id: I611602ad52df6b954fda2b3217534472c2270cb2
Issue-ID: DCAEGEN2-858
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/sections/apis/ves-hv/VesEvent.proto (renamed from docs/sections/apis/VesEvent.proto) | 21 | ||||
-rw-r--r-- | docs/sections/apis/ves-hv/WTP.asn | 17 | ||||
-rw-r--r-- | docs/sections/apis/ves-hv/index.rst (renamed from docs/sections/apis/ves-hv.rst) | 9 | ||||
-rw-r--r-- | docs/sections/offeredapis.rst | 2 |
4 files changed, 36 insertions, 13 deletions
diff --git a/docs/sections/apis/VesEvent.proto b/docs/sections/apis/ves-hv/VesEvent.proto index 0f9e5e1f..dbe0aa3f 100644 --- a/docs/sections/apis/VesEvent.proto +++ b/docs/sections/apis/ves-hv/VesEvent.proto @@ -20,25 +20,26 @@ syntax = "proto3"; package org.onap.ves; -message VesEvent { +message VesEvent // top-level message, currently the maximum event size supported by the HV-VES Collector is 1 MiB +{ CommonEventHeader commonEventHeader=1; // required bytes eventFields=2; // required, payload - // this field contains a domain-specific GPB message - // the field being opaque (bytes), the decoding of the payload occurs in a separate step - // the name of the GPB message for domain XYZ is XYZFields - // e.g. for domain==HVMEAS, the GPB message is HVMEASFields + // this field contains a domain-specific GPB message + // the field being opaque (bytes), the decoding of the payload occurs in a separate step + // the name of the GPB message for domain XYZ is XyzFields + // e.g. for domain==perf3gpp, the GPB message is Perf3gppFields } // VES CommonEventHeader adapted to GPB (Google Protocol Buffers) -// Aligned with VES 7.0.1 schema, and extending to hvMeas Domain. +// Aligned with VES 7.0.1 schema, and extending to Performance Domain. message CommonEventHeader { - string version = 1; // required, "version of the gpb common event header" + string version = 1; // required, "version of the gpb common event header", current value "1.0" string domain = 2; // required, "the eventing domain associated with the event", allowed values: - // FAULT, HEARTBEAT, MEASUREMENT, MOBILE_FLOW, OTHER, PNFREGISTRATION, SIP_SIGNALING, - // STATE_CHANGE, SYSLOG, THRESHOLD_CROSSING_ALERT, VOICE_QUALITY, HVMEAS + // fault, heartbeat, measurement, mobileFlow, other, pnfRegistration, sipSignaling, + // stateChange, syslog, thresholdCrossingAlert, voiceQuality, perf3gpp uint32 sequence = 3; // required, "ordering of events communicated by an event source instance or 0 if not needed" @@ -68,7 +69,7 @@ message CommonEventHeader bytes sourceId = 15; // "UUID identifying the entity experiencing the event issue; must be populated by the ATT enrichment process" string sourceName = 16; // required, "name of the entity experiencing the event issued use A&AI entry" string timeZoneOffset = 17; // "Offset to GMT to indicate local time zone for the device" - string vesEventListenerVersion = 18; // required, "Version of the VesEvent Listener" + string vesEventListenerVersion = 18; // required, "Version of the VesEvent Listener", current value "7.0.2" reserved "InternalHeaderFields"; // "enrichment fields for internal VES Event Listener service use only, not supplied by event sources" reserved 100; diff --git a/docs/sections/apis/ves-hv/WTP.asn b/docs/sections/apis/ves-hv/WTP.asn new file mode 100644 index 00000000..3c0178d4 --- /dev/null +++ b/docs/sections/apis/ves-hv/WTP.asn @@ -0,0 +1,17 @@ +-- Wire Transfer Protocol (binary, defined using ASN.1 notation) +-- Encoding: use "direct encoding" to the number of octets indicated in the comment [n], using network byte order. + +WTP DEFINITIONS ::= BEGIN + +-- Used to sent data from the data provider +WtpData ::= SEQUENCE { + magic INTEGER (0..255), -- [1] always 0xAA + versionMajor INTEGER (0..255), -- [1] major interface version, forward incompatible with previous major version, current value: 1 + versionMinor INTEGER (0..255), -- [1] minor interface version, forward compatible with previous minor version, current value: 0 + reserved OCTET STRING (SIZE (3)), -- [3] reserved for future use (ignored, but use 0) + payloadId INTEGER (0..65535), -- [2] payload type: 0x0000=undefined, 0x0001=ONAP VesEvent (protobuf) + payloadLength INTEGER (0..4294967295). -- [4] payload length in octets + payload OCTET STRING -- [length as per payloadLength] +} + +END diff --git a/docs/sections/apis/ves-hv.rst b/docs/sections/apis/ves-hv/index.rst index 2045b6ba..799f92d4 100644 --- a/docs/sections/apis/ves-hv.rst +++ b/docs/sections/apis/ves-hv/index.rst @@ -5,7 +5,7 @@ HV-VES (High Volume VES) ======================== -:Date: 2018-09-24 +:Date: 2018-10-05 .. contents:: :depth: 3 @@ -16,7 +16,7 @@ Overview Component description can be found under `HV-VES Collector`_. -.. _HV-VES Collector: ../services/ves-hv/index.html +.. _HV-VES Collector: ../../services/ves-hv/index.html TCP Endpoint @@ -27,6 +27,11 @@ It uses plain TCP connections tunneled in SSL/TLS or can be run in insecure mann Without TLS client authentication/authorization is not possible. Connections are stream-based (as opposed to request-based) and long running. +Communication is wrapped with thin Wire Transfer Protocol, which mainly provides delimitation. + +.. literalinclude:: WTP.asn + :language: asn + Payload is binary-encoded, currently using Google Protocol Buffers representation of the VES Common Header. .. literalinclude:: VesEvent.proto diff --git a/docs/sections/offeredapis.rst b/docs/sections/offeredapis.rst index 937cc8fa..c5c652eb 100644 --- a/docs/sections/offeredapis.rst +++ b/docs/sections/offeredapis.rst @@ -9,7 +9,7 @@ DCAEGEN2 Components Offered APIs apis/deployment-handler.rst apis/inventory.rst apis/ves.rst - apis/ves-hv.rst + apis/ves-hv/index.rst apis/dcaecdap.rst apis/PRH.rst |