Curl command to send ONSET event to Policy through DMAAP
ubuntu@vm03-robot:~/policy$ curl -X POST -H 'Content-Type: application/json' -d @onset http://10.12.5.5:3904/events/unauthenticated.DCAE_CL_OUTPUT
{
"serverTimeMs": 3,
"count": 1
}ubuntu@vm03-robot:~/policy$
ONSET event
ubuntu@vm03-robot:~/policy$ cat onset
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Menlo; color: #34bd26} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Menlo} span.s1 {font-variant-ligatures: no-common-ligatures} span.s2 {font-variant-ligatures: no-common-ligatures; color: #000000} span.s3 {font-variant-ligatures: no-common-ligatures; color: #5330e1} ubuntu@vm03-robot:~/policy$ cat onset
{
"target": "vserver.vserver-id",
"target_type": "VM",
"AAI": {
"vserver.in-maint": true,
"vserver.is-closed-loop-disabled": true,
"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": "VoLTE",
"version": "1.0.2",
"requestID": "8c1b8bd8-06f7-493f-8ed7-daaa4cc481bc",
"from": "DCAE"
}