/
Get the status of the latest prediction process
Responses
200
Successful operation
application/json
get
GET /strongcourage/MAIP/v1/predict/ HTTP/1.1
Host: virtserver.swaggerhub.com
Accept: */*
200
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
Body
Responses
200
Successful operation
application/json
500
Failed to process a prediction
post
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"
}
}
}
}
{
"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"
}