From de8e834e2bfc714e7a588f7470fe2ef7ba368275 Mon Sep 17 00:00:00 2001 From: Piotr Jaszczyk Date: Wed, 3 Oct 2018 10:33:40 +0200 Subject: Change domain to lower case Change-Id: I097def2ba720fafe0a1e1a88e87f8c03663627c9 Issue-ID: DCAEGEN2-847 Signed-off-by: Piotr Jaszczyk --- .../dcae/collectors/veshv/domain/VesEventDomain.kt | 26 +++++++++++----------- .../src/main/proto/event/VesEvent.proto | 6 ++--- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'hv-collector-domain') diff --git a/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/VesEventDomain.kt b/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/VesEventDomain.kt index 322260c6..0b18337d 100644 --- a/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/VesEventDomain.kt +++ b/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/VesEventDomain.kt @@ -19,17 +19,17 @@ */ package org.onap.dcae.collectors.veshv.domain -enum class VesEventDomain { - FAULT, - HEARTBEAT, - MEASUREMENT, - MOBILE_FLOW, - OTHER, - PNFREGISTRATION, - SIP_SIGNALING, - STATE_CHANGE, - SYSLOG, - THRESHOLD_CROSSING_ALERT, - VOICE_QUALITY, - PERF3GPP +enum class VesEventDomain(val domainName: String) { + FAULT("fault"), + HEARTBEAT("heartbeat"), + MEASUREMENT("measurement"), + MOBILE_FLOW("mobileFlow"), + OTHER("other"), + PNF_REGISTRATION("pnfRegistration"), + SIP_SIGNALING("sipSignaling"), + STATE_CHANGE("stateChange"), + SYSLOG("syslog"), + THRESHOLD_CROSSING_ALERT("thresholdCrossingAlert"), + VOICE_QUALITY("voiceQuality"), + PERF3GPP("perf3gpp"); } diff --git a/hv-collector-domain/src/main/proto/event/VesEvent.proto b/hv-collector-domain/src/main/proto/event/VesEvent.proto index f7822425..dcd54640 100644 --- a/hv-collector-domain/src/main/proto/event/VesEvent.proto +++ b/hv-collector-domain/src/main/proto/event/VesEvent.proto @@ -28,7 +28,7 @@ message VesEvent // top-level message // 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 + // e.g. for domain==perf3gpp, the GPB message is Perf3GPPFields } // VES CommonEventHeader adapted to GPB (Google Protocol Buffers) @@ -38,8 +38,8 @@ message CommonEventHeader { string version = 1; // required, "version of the gpb common event header" 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, PERF3GPP + // fault, heartbeat, measurement, mobile_flow, other, pnfregistration, sip_signaling, + // state_change, syslog, threshold_crossing_alert, voice_quality, perf3gpp uint32 sequence = 3; // required, "ordering of events communicated by an event source instance or 0 if not needed" -- cgit 1.2.3-korg