Details
-
Bug
-
Resolution: Done
-
Medium
-
None
Description
As part of CHOMP, the final processing is a push to an Elasticsearch API, “upload”, that stores the KPI results. This API was provided by DEVARAJ, LAKSHMINARAYANA.
Please see the Akraino Rest API below that should be called using a curl command (also provided below) to post the CHOMP data into Akraino. Validate if this is still valid of if the new Regional Controller API needs to be enhanced.
API Spec:
URL: http://<regional-node-ip>:8080/AECPortalMgmt/chomp/upload
Request attributes:
originSrc: chomp
file: json file that contains chomp output
interval: 3 ( for e.g. json file sent over has 3 minutes snapshot)
timeStamp: date-time when the API call was made (current system time where chomp is running)
Sample CURL command:
curl -X POST -F "file=@/file-path/chomp.json
" -F "origin=chomp" -F "interval=<interval>" -F "timeStamp=<date-time-stamp>" http:// <regional-node-ip>:8080/AECPortalMgmt/chomp/upload