Versions Compared

Key

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

...

Info
iconfalse
titleDMI Event sent to NCMP

{

  "eventId"                    : "9999",                                                                      # some generic event uuid generated by DMI Plugin
  “eventCorrelationId” : “request-009995”,                                                      # for event correlation - acts as the request Id when
                                                                                                                        # eventType=org.onap.ncmp.async-request-response-event
  "eventTime"             : "2021-11-16T16:42:25-04:00", (kieran mccarthy is this format agreed?)
  "eventSource"          : "org.onap.ncmp",                                                        # ??? Is this needed?
   Joseph Keenan will use dmiAsyncRequestResponseEvent.setEventSource(Application.class.getPackageName());  

  "eventType"             : "org.onap.ncmp.async-request-response-event",       # event type for async request response events (kieran mccarthy Who owns this schema? How do the schemas relate?)
  ”eventSchema”        : “org.onap.ncmp:async-request-response-event:v1",  # event schema for async request response events  (who owns this? table with owner, repo, color coded)
  “eventTarget”            : “topic:client-application-topic”,                                 # indicates where to route the event - ‘topic’ is default target type (kieran mccarthy will it be in format of topic:<topic> always or could it be extended e.g. ip:<ip-address>?)


  "event": {
     “response-data-schema” : “org.onap.cps.yang-patch-json:v1”,
     “response-status” : “SUCCESS”,
     “response-code”   : “201”,
     “response-data” : {
            …
           <response-data-payload>
           …
     }
  }
}

...

Code Block
languageyml
titleDMI -> NCMP EVENT(DmiAsyncRequestResponseEvent)
linenumberstrue
collapsetrue
{
  "eventId": "b2f629ae-ee90-44d9-97f9-500c8a595b6a",
  "eventCorrelationId": "2243bbcd-b0b3-4aa5-9d53-41dc88a525a5",
  "eventTime": "2022-05-10T08:39:37.597+0000",
  "eventSource": "org.onap.ncmp",
  "eventSchema": "urn:cps:org.onap.cps:async-request-response-event-schema:v1",
  "eventTarget": "my-topic-999",
  "eventContent": {
    "response-data-schema": "urn:cps:org.onap.cps:async-request-response-event-schema:v1",
    "response-status": "SUCCESS",
    "response-code": "200",
    "response-data": {
      "ietf-netconf-monitoring:netconf-state": {
        "schemas": {
          "schema": [
            {
              "identifier": "ietf-tls-server",
              "version": "2016-11-02",
              "format": "ietf-netconf-monitoring:yang",
              "namespace": "urn:ietf:params:xml:ns:yang:ietf-tls-server",
              "location": [
                "NETCONF"
              ]
            },
            {
              "identifier": "nc-notifications",
              "version": "2008-07-14",
              "format": "ietf-netconf-monitoring:yang",
              "namespace": "urn:ietf:params:xml:ns:netmod:notification",
              "location": [
                "NETCONF"
              ]
            }
        }
      }
    }
  }
}

...

Code Block
languageyml
titleNCMP -> Client Topic(NcmpAsyncRequestResponseEvent)
linenumberstrue
collapsetrue
{
  "eventId": "699da452-4131-4e55-b49a-50e0c5f0d641",
  "eventCorrelationId": "efc17123-902a-4f50-8294-178a782b9102",
  "eventTarget": "test-env-1",
  "eventTime": "2022-05-10T11:16:27.427+0000",
  "forwardedEvent": {
    "eventId": "0f574dfa-9c05-4899-9ae1-e6741f53c6d9",
    "eventCorrelationId": "efc17123-902a-4f50-8294-178a782b9102",
    "eventTime": "2022-05-10T11:16:27.374+0000",
    "eventSource": "org.onap.ncmp",
    "eventSchema": "urn:cps:org.onap.cps:async-request-response-event-schema:v1",
    "eventTarget": "test-env-1",
    "response-data-schema": "urn:cps:org.onap.cps:async-request-response-event-schema:v1",
    "response-status": "SUCCESS",
    "response-code": "200",
    "response-data": {
      "ietf-netconf-monitoring:netconf-state": {
        "schemas": {
          "schema": [
            {
              "identifier": "ietf-tls-server",
              "version": "2016-11-02",
              "format": "ietf-netconf-monitoring:yang",
              "namespace": "urn:ietf:params:xml:ns:yang:ietf-tls-server",
              "location": [
                "NETCONF"
              ]
            },
            {
              "identifier": "nc-notifications",
              "version": "2008-07-14",
              "format": "ietf-netconf-monitoring:yang",
              "namespace": "urn:ietf:params:xml:ns:netmod:notification",
              "location": [
                "NETCONF"
              ]
            }
          ]
        }
      }
    }
  }
}

...