Get the status of the latest prediction process
GET /strongcourage/MAIP/v1/predict/ HTTP/1.1 Host: virtserver.swaggerhub.com Accept: */*
Successful operation
{ "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
POST /strongcourage/MAIP/v1/predict/ HTTP/1.1 Host: virtserver.swaggerhub.com Content-Type: application/json Accept: */* Content-Length: 242 { "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" } } } }