Versions Compared

Key

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

...

Curl command to send ONSET event to Policy through DMAAP

Code Block
languagebash
titleCurl to Send DMAAP ONSET Event to Policy
ubuntu@vm03-robot:~/

...

policy$ curl -X POST -H 'Content-Type: application/json' -d @onset http://

...

{{dmaap_ip}}:3904/events/unauthenticated.DCAE_CL_OUTPUT

...

{

...


{
    "serverTimeMs":

...

 2,
    "count": 1

...


}


ONSET event from Holmes

Code Block
languagebash
titleONSET Event Posted by Holmes
linenumberstrue
collapsetrue
{
       "target": "vserver.vserver-name",
       "target_type": "VM",
       "AAI": {
           "vserver.in-maint": true,
           "vserver.is-closed-loop-disabled": false,
           "vserver.prov-status": "example-prov-status-val-2",
           "vserver.resource-version": "1504912891060",
           "vserver.vserver-id": "example-vserver-id-val-2",
           "vserver.vserver-name": "example-vserver-name-val-2",
           "vserver.vserver-name2": "example-vserver-name2-val-2",
           "vserver.vserver-selflink": "example-vserver-selflink-val-2",
           "generic-vnf.vnf-id": "5e49ca06-2972-4532-9ed4-6d071588d792",
           "service-instance.service-instance-id": "USUCP0PCOIL0110UJZZ01"
       },
       "closedLoopAlarmStart": 1484855291527925,
       "closedLoopEventStatus": "ONSET",
       "closedLoopControlName": "ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b",
       "version": "1.0.2",
       "requestID": "8c1b8bd8-06f7-493f-8ed7-daaa4cc481bc",
       "from": "DCAE"
}

...