Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

Expand
titleLCM Event Details

Current LCM Event Object

FieldTypeDescriptionKafka HeaderEvent Payload FieldNotes (M=Mandatory, O=Optional)CloudEvents Mapping
eventIDstringThe unique id identifying the eventx
Mstandard (id)
eventCorrelationIdstringThe id identifying the event.  In LCMEvent this is always a cmhandleIdx
extension(correlationid)
eventTimestringThe timestamp when original event occurredx
Mstandard
eventSourcestringThe source of the eventx
M
eventTypestringThe type of the eventx
M
eventSchemastringThe schema that this event adheres to. x

M
E.g. cps:org.onap.ncmp.cmhandle.lcm-event

standard (dataschema)
eventSchemaVersionstring

The version of the schema that this event adheres to

x

M

e.g v1.0

N/A included in 'datascema'
eventEventThe payload of an event

M

Type:Event (cps:org.onap.ncmp.cmhandle.lcm-event:v1)

FieldTypeDescriptionKafka HeaderEvent Payload FieldNotes
cmHandleIdstringcmHandle id
x
oldValuesValues

Values that represents the state of a cmHandle


xDefined by values object below
newValuesValuesValues that represents the state of a cmHandle
xDefined by values object below

Type:Values

FieldTypeDescriptionKafka HeaderEvent Payload FieldNotes
dataSyncEnabledstringcmHandle id
x
cmHandleStatestring

State of cmHandle


xEnum: 

["ADVISED", "READY", "LOCKED", "DELETING", "DELETED"]

cmHandlePropertiesobjectcmHandle properties
xList of Java <String, String> Maps


...

Before

After

CloudeEvent builder methodExample ValueNotes

eventId

id

.withId()
Mandatory

eventSource

source



Mandatory

N/A

specversion  (default 1.0)


1.0Mandatory  - This is the version of the cloud events

eventType

type



Mandatory

eventTime

time



Optional

eventSchema

dataschema



Optional  includes the version of the schema


datacontenttype
application/jsonOptional
eventCorrelationIdcorrelationid.withExtension

( O ) This will be part of the extensions field in the cloud events and all the restrictions of the attribute field naming applies to it.

i.e these fields will be in the small case.

This is marked as optional as it applies to the event which has this field.

eventdata.withData(json TBC)
( M ) actual event/payload now would be under "data" field.

...