Get the status of the latest prediction process
/predict/
curl -L \ --url 'https://virtserver.swaggerhub.com/strongcourage/MAIP/v1/predict/'
{ "isRunning": true, "lastPredictedId": "fadfafewfwefwe", "config": { "predictConfig": { "modelId": "6d9aebed-aa34-47c5-be80-b41280c32163.h5", "inputTraffic": { "type": "report", "value": { "reportId": "report-honeypot.pcap-342727c9-e253-4124-85fd-974c2ad60bae", "reportFileName": "1675893004.993760_0_honeypot.pcap.csv" } } } }, "lastPredictedAt": "123243534534" }
Request predicting for an input traffic
curl -L \ --request POST \ --url 'https://virtserver.swaggerhub.com/strongcourage/MAIP/v1/predict/' \ --header 'Content-Type: application/json' \ --data '{ "predictConfig": { "modelId": "6d9aebed-aa34-47c5-be80-b41280c32163.h5", "inputTraffic": { "type": "report", "value": { "reportId": "report-honeypot.pcap-342727c9-e253-4124-85fd-974c2ad60bae", "reportFileName": "1675893004.993760_0_honeypot.pcap.csv" } } } }'