aboutsummaryrefslogtreecommitdiffstats
path: root/hv-collector-domain/src
diff options
context:
space:
mode:
authorPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2018-10-03 10:33:40 +0200
committerPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2018-10-03 13:23:36 +0200
commitde8e834e2bfc714e7a588f7470fe2ef7ba368275 (patch)
tree91c8f15bb5e4c5817a78c966da16a7717675b6c0 /hv-collector-domain/src
parentfd44b433ac9825be6cc654e8a566f9d0bfc70166 (diff)
Change domain to lower case
Change-Id: I097def2ba720fafe0a1e1a88e87f8c03663627c9 Issue-ID: DCAEGEN2-847 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Diffstat (limited to 'hv-collector-domain/src')
-rw-r--r--hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/VesEventDomain.kt26
-rw-r--r--hv-collector-domain/src/main/proto/event/VesEvent.proto6
2 files changed, 16 insertions, 16 deletions
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"